User Profile

Collapse

Profile Sidebar

Collapse
pladdypants
pladdypants
Last Activity: Nov 13 '08, 01:20 AM
Joined: Nov 5 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • pladdypants
    replied to Cannot send parameters
    in PHP
    It was a setup error in the php.ini file. I was placing the php files in the cgi-bin folder of my server rather than htdocs folder. Once the scripts are moved to htdocs they work fine. Thanks all for helping me look in the right direction.

    -pladdy
    See more | Go to post

    Leave a comment:


  • It was a php.ini setup error. I was placing the php scripts in the cgi-bin rather than htdocs (which is what was setup in the php.ini). Thanks for the help Pladdy!

    -Pladdy
    See more | Go to post

    Leave a comment:


  • pladdypants
    started a topic Apache config, php won't pass parameters

    Apache config, php won't pass parameters

    Hey there,

    I originally posted on the PHP forum and was told by a moderator that my Apache setup seems to be off. The problem is I can run a simple php script in my cgi-bin, however it doesn't pass any parameters. The goal of the script is to show a form, get the users name, and then call the script again and print "Hello, $_GET['user']". When a name is entered though, the script is called with no parameter passed, and...
    See more | Go to post

  • pladdypants
    replied to Cannot send parameters
    in PHP
    Adding in PHP/Apache versions

    Hey everyone,

    I read posting guidelines, thank you for changing the title. I made the changes suggested by Atli. Code Green, I am running this as localhost. Unfortunately I'm still not getting any parameters passed. I think the consensus is it has to do with the Apache setup. Unless anyone has other suggestions, perhaps I should post on the Apache forum?

    I installed Apache...
    See more | Go to post
    Last edited by pladdypants; Nov 6 '08, 01:06 PM. Reason: Left out answer to previous post

    Leave a comment:


  • pladdypants
    replied to Cannot send parameters
    in PHP
    Hey again,

    I tried it twice, here are the error outputs from error log:

    [Wed Nov 05 22:13:01 2008] [error] [client 127.0.0.1] (9)Bad file descriptor: don't know how to spawn child process: C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin/Text1.php

    ...added a shebang line and got this error:
    [Wed Nov 05 22:13:45 2008] [error] [client 127.0.0.1] malformed header from script. Bad header=Array:...
    See more | Go to post

    Leave a comment:


  • pladdypants
    replied to Cannot send parameters
    in PHP
    Hey there,

    Line #1.
    I removed the shebang but then it won't run, so i put it back.

    Line #8.
    I tried removing this and just putting the following code:

    [PHP]
    #!C:/Program Files/PHP/PHP.exe
    <?php
    error_reporting (E_ALL);
    ini_set('displa y_errors', true);
    ?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    ...
    See more | Go to post

    Leave a comment:


  • pladdypants
    replied to Cannot send parameters
    in PHP
    Hi again,
    1) By 'runs fine' i mean it actually runs without critical errors that kill it.
    2) I'm trying to write the end result (Hello, 'name') to the browser just using
    [PHP]
    print "Hello, " . $_GET['name'];
    [/PHP]
    So, i either want the browser to show my simple form, using the here document (HTML), or if it has a value from the form, to just print "Hello, " $_GET['name'].
    ...
    See more | Go to post

    Leave a comment:


  • pladdypants
    replied to Cannot send parameters
    in PHP
    Also, here's the readout i get for the line that should set $name = to $_GET['name']
    "Notice: Undefined index: name in C:\Program Files\Apache Software Foundation\Apac he2.2\cgi-bin\ch6ex.php on line 9"

    So i see it being passed in the url, but it's like it's not ending up in $_GET...
    -pladdy...
    See more | Go to post

    Leave a comment:


  • pladdypants
    replied to Cannot send parameters
    in PHP
    Hey, I saw that error in the code and fixed it right before you responded. However even when i use
    [PHP]
    $name = $_GET['name'];
    print $name;
    [/PHP]>

    I still get nothing...

    -pladdy
    See more | Go to post

    Leave a comment:


  • pladdypants
    started a topic Cannot send parameters
    in PHP

    Cannot send parameters

    Hey all,

    I'm new to PHP and i'm just trying to test out a simple script as follows:

    [PHP]
    #!C:/Program Files/PHP/PHP.exe
    <?php
    error_reporting (E_ALL);
    ini_set('displa y_errors', true);

    //import_request_ variables("gpc" ,"mvar_");

    print "Content-type: text/html\n\n";

    if (isset($_GET['name'])) {
    print "Hello,...
    See more | Go to post
No activity results to display
Show More
Working...