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.
I'd have to say optiperl, it has built in ftp, you can use perl pattern matches to search your script, it has a code explorer, debugger, and a sytax checker, not to mention a built in browser that lets you run your scripts from your computer. It is also quite inexpensive ($60 USD with debugging...
I'm using a unix system. It is a virtual host, however, so I do not have access to everything on the machine. Right now I'm not even sure if I have telnet access or not. Age: 17
School: Alberta Distance Learning Center
Location: British Columbia, Canada
If at first you can't succeed, try, try...
...files, the cookie was set correctly:[\B]
testing
test
www.helpmygame.com/cgi-bin/setcookie.cgi
1024
3656104960
29489240
3228825824
29453031
*
here's the script:
#!/usr/local/bin/perl
use CGI;
$cgiobject = new CGI;
$cookie_data=$cgiobject->cookie("testing");
print...
Whoa okay looking at that almost makes me want to quit this stuff. Am I really supposed to be able to look at that someday AND understand it? I thought I was getting the hang of this stuff until I saw that! Why can't it be something nice and simple like heres 5 files upload em to your cgi-bin...
I'm on linux, virtual hosting package. Now i read that in the readme but you have to understand I'm very new to this. I have no clue what that means, perl Makefile.pl? sounds like something typed into a command line. What command line? There are tons of files in the DBI::mysql archive and tons...
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.