Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by bandi

  1. bandi

    Premature end of script headers <- what is this?

    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 &quot;Content-type: text/html&quot; followed by...
  2. bandi

    How to protect world readable files from being cated?

    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...
  3. bandi

    How to execute a CGI/Perl script inside a php script

    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...
  4. bandi

    PassThru... I'm stuck

    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...
  5. bandi

    How to send a file by e-mail?

    I`ve a trivial question. How to send a file by e-mail from a script?<br><br>Thanks in advance,<br>bandi.
  6. bandi

    PassThru... I'm stuck

    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>&nbsp;&nbsp;&nbsp;&nbsp;<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...
  7. bandi

    Regular Expressions

    Hi<br><br>I've an other question: how can I specify that the wildcards not to be so hungry.<br><br>ereg(&quot;(.*)X&quot;,&quot;abXcdX&quot;,$regs);<br>$regs[1] will be: &quot;abXcd&quot;, but I would need &quot;ab&quot;<br><br>Thanks in advance!
  8. bandi

    How fast is the PHP?

    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...

Part and Inventory Search

Back
Top