Is it possible? How would I go about doing this? I have func.cgi on one server, and a script that uses functions from it on another server. I do not wish to place them both on the same server so any suggestions? Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada...
Yes I noticed that going back over the program this morning. I shouldn't be writing programs past 1am:) I make stupid mistakes and then stay up hours trying to figure out what they are. Thanks. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you...
Thanks, that makes sense. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. - programmer's motto.
I don't know what @ARGV does but here's what I do when passing information through with the query string.
$query_string = $ENV{'QUERY_STRING'};
then you have id=val1 inside query string and you can split it at the equals sign or do whatever it is you want to do with it. Age: 17
School...
What does my do? Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. - programmer's motto.
Okay there is something badly wrong with this script. I don't know what dev/null does exactly, but without it I get a 500 error, with it the script prints out the Confirmation message but doesn't send any e-mail. I'm not sure what I did wrong but you guys will probably spot it right away...
Thanks guys it turns out the error was simply a spelling mistake on my part. Thanks to Piti for the mysql_error() function which told me where the mistake was. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. -...
I have a mysql insert command that is rather lengthy since it inserts 52 columns of data. Since it won't all fit on one line i have something like the following.
$query = "insert into table_name (col1, col2, col3,".
etc) values ('$col1', '$col2', '$col3',".
etc)"...
Well its not trouble using DBI that stumped me, its installing the bloody thing. The instructions are not very detailed. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you dont't succeed, try, try again. - programmer's motto.
Ok I think preg_match_all is the thing to use. However I can't figure out how to make it work.
Here's my script:
<?
$spy = "testing 123 testing";
preg_match_all ("/\d+/","$spy", $spy_pieces);
foreach ($spy_pieces as $piece) {
echo "$piece";
}
?>
Heres...
Ok lets think here. Split involves splitting a string around a certain item or section. But how do you extract all of the occurances of a certain type of item from a string? If I have a user inputted string with a lot of html and occasionally some numbers ($ values and regular numbers). Is there...
Well I'm glad to know that its not because PHP has serious problems associated with it. For my current application it is well suited to the task. And besides which I never did figure out how to install that wretched DBI module. Age: 17
School: Alberta Distance Learning Center
Location: British...
It strikes me that PHP is easier to use at taking input from forms and interfacing with mysql. The fact that it fits right into your html page makes it even better. Whats the downside to php? why is perl the industry standard? Age: 17
School: Alberta Distance Learning Center
Location: British...
Does anybody know some really excellent PHP book or tutorials out there? I'm new to PHP, but I'm finding it simpler and more powerful than Perl in some aspects. Any recomended tutorials or books are welcome. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If...
come on this can't be that hard! Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you can't succeed, try, try again. - programmer's motto.
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.