Okay if this were Java I would be done by now. But PHP just seems really cumbersome at times. The REQUEST_URI element in the _SERVER array returns the relative document server path, including the filename. So instead of /dir/dir2, it gives me /dir/dir2/file.ext . How can I get rid of the...
Hello All,
What I want to do is make a conditional action (IF) based on the current URL of where the user is on my website. If possible I would like it to be based on the relative web URL, for example /dir1/ , and not a server path. Also, I need the condition to be true in any other...
Holy crap it worked! And then I used fread() to read the contents. I have been searching forever for a solution to this problem!
Do I need to close the file after I am done with it? Are there any risks in not closing? Do we even close files in PHP (I am a Java person).
I suppose I should have mentioned this: The URL I am calling contains data in the URL. Error:
Warning: fopen(./cgi-bin/coranto/viewnews.cgi?id=EEEpplAFEZaVeFkzzX&tmpl=getfullname): failed to open stream: No such file or directory
That happened when I tried to include or require that URL...
Hello Folks,
What I am trying to do here, is store the results of a virtual() include in to a variable. I am using virtual, as opposed to require or include, because the file must run through apache first, as it has perl code. But the file returns simple one string of text, a name. Is there...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.