Hi,
I have the same problem, and can't figure out :(
The only difference is that I built PHP 4.0.2 as a stand alone cgi, not as Apache module.
When I run php in a shell whith a test.php containing <? PHPINFO(); ?> everything's fine: the output is "Content-type: text/html" followed by...
There is some security related issues I can't figure out how to fix or solve.
The facts:
1. I will start a freeweb service, which will offer the runing of cgi and php scripts.
2. I will use my own php scripts to manipulate MySQL database on the same server.
The questions:
1. How to protect...
To run a PERL script use <FONT FACE=monospace><b>system( 'script.cgi')</b></font>. It runs the the executable specified in the parameter and shows (sends back to the browser) its output.<br>You can use <FONT FACE=monospace><b>exec</b></font> (no output) and <FONT...
Thanks for the tips, but I needed something else than you thought.<br><br>I wanted to create a php what calls a cgi, and sends back the cgi's output to the browser. The output of the cgi is ready to the browser: first it contains the headers, then the binary data. And it's ok, when you call the...
I have to run a UNIX program and pass its raw output back to the browser. Is this what the PassThru is for?<br><br>I've tried to use this:<br> <b><FONT FACE=monospace>passthru( 'some.cgi');</font></b><br><br>But I got back the raw output in the browser as text, so the PHP...
Hi<br><br>I've an other question: how can I specify that the wildcards not to be so hungry.<br><br>ereg("(.*)X","abXcdX",$regs);<br>$regs[1] will be: "abXcd", but I would need "ab"<br><br>Thanks in advance!
Is the PHP fast enough to write MySQL database management script in it or it is better to make things like this in C? <br>The script I have to make would run 50+ times during a second. How will work the Apache in this two cases, I mean what is the difference between running PHP script and C cgi...
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.