Services webmasters
Partenaires
Jeux concours gratuits
 
When I try to use authentication with IIS I get 'No Input file specified'.
<<<
My PHP script works on IE and Lynx, but on Netscape some of my output is missing. When I do a "View Source" I see the content in IE but not in Netscape. How am I supposed to mix XML and PHP? It complains about my <?xml tags!
>>>

10.7 Using PHP
10 FAQ : Foire Aux Questions
 Manuel PHP

I would like to write a generic PHP script that can handle data coming from any form. How do I know which POST method variables are available?
I need to convert all single-quotes (') to a backslash followed by a single-quote (\'). How can I do this with a regular expression? I'd also like to convert " to \" and \ to \\.
All my " turn into \" and my ' turn into \', how do I get rid of all these unwanted backslashes? How and why did they get there?
When I do the following, the output is printed in the wrong order:
Hey, what happened to my newlines?
I get the message 'Warning: Cannot send session cookie - headers already sent...' or 'Cannot add header information - headers already sent...'.
I need to access information in the request header directly. How can I do this?
When I try to use authentication with IIS I get 'No Input file specified'.
-> My PHP script works on IE and Lynx, but on Netscape some of my output is missing. When I do a "View Source" I see the content in IE but not in Netscape.
How am I supposed to mix XML and PHP? It complains about my <?xml tags!
How can I use PHP with FrontPage or some other HTML editor that insists on moving my code around?
Where can I find a complete list of variables are available to me in PHP?
How can I generate PDF files without using the non-free and commercial libraries
I'm trying to access one of the standard CGI variables (such as $DOCUMENT_ROOT or $HTTP_REFERER) in a user-defined function, and it can't seem to find it. What's wrong?

10.7.9 My PHP script works on IE and Lynx, but on Netscape some of my output is missing. When I do a "View Source" I see the content in IE but not in Netscape.

Netscape is more strict regarding html tags (such as tables) then IE. Running your html output through a html validator, such as validator.w3.org , might be helpful. For example, a missing </table> might cause this.

Also, both IE and Lynx ignore any NULs ( \0 ) in the HTML stream, Netscape does not. The best way to check for this is to compile the command line version of PHP (also known as the CGI version) and run your script from the command line. In *nix, pipe it through od -c and look for any \0 characters. If you are on Windows you need to find an editor or some other program that lets you look at binary files. When Netscape sees a NUL in a file it will typically not output anything else on that line whereas both IE and Lynx will.

<< My PHP script works on IE and Lynx, but on Netscape some of my output is missing. When I do a "View Source" I see the content in IE but not in Netscape. >>
When I try to use authentication with IIS I get 'No Input file specified'. Using PHP How am I supposed to mix XML and PHP? It complains about my <?xml tags!
Services webmasters
Les manuels
 
CoursPHP.com - Reproduction interdite -