User Profile

Collapse

Profile Sidebar

Collapse
vilks123
vilks123
Last Activity: Nov 13 '06, 10:05 PM
Joined: Oct 20 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • vilks123
    replied to Please help, php file function problem
    in PHP
    I guess every string will get corrupted if i am going to submit it in this window. The point is there is no spaces anywhere in the string as they have been replaced by %20 character.
    See more | Go to post

    Leave a comment:


  • vilks123
    replied to Please help, php file function problem
    in PHP
    previous string got corrupted a little bit:

    string used in file() function:

    http://www.m-w.com/cgi-bin/dictionary%3Fhd wd%3Danother%26 listword%3Danot her%26jump%3Dan other%5B1%2Cadj ective%5D%26lis t%3Danother%5B1 %2Cadjective%5D %3D42705%3Banot her%5B2%2Cprono un%5D%3D42730%3 Banother-guess%3D42749%3 Bone%20another% 3D799389%26book %3DDi ctionary
    See more | Go to post

    Leave a comment:


  • vilks123
    replied to Please help, php file function problem
    in PHP
    Thanks,

    urlencode or rawurlencode does solve the problem with error code 400. However , the newly formated string cannot be found. Here is what i get :

    The requested URL /cgi-bin/dictionary?hdwd =another&listwo rd=another&jump =another[1,adjective]&list=anothe r[1,adjective]=42705;another[2,pronoun]=42730;another-guess=42749;one another=799389& book=Dictionary

    was not found on this...
    See more | Go to post

    Leave a comment:


  • vilks123
    replied to Please help, php file function problem
    in PHP
    Gives an answer of 1 , Enabled i guess

    Btw, i can open a typical url like www.yahoo.com or www.m-w.com using file function no problem , it's the particular string that gives me problem for some reason.

    thanks anyway,...
    See more | Go to post

    Leave a comment:


  • vilks123
    started a topic Please help, php file function problem
    in PHP

    Please help, php file function problem

    Hi,
    I am using PHP 5.0 file() function to get content of a web page

    here is the string i use with the file function:

    $str="http://www.m-w.com/cgi-bin/dictionary?hdwd =another&listwo rd=another&jump =another[2,pronoun]&list=anothe r[1,adjective]=42705;another[2,pronoun]=42730;another-guess=42749;one another=799389& book=Dictionary ";

    file($str)

    I get an error:...
    See more | Go to post
No activity results to display
Show More
Working...