[PHP] Re: Supplied argument is not a valid MySQL result

2001-11-15 Thread Richard Lynch
Dan McCullough wrote: > Warning: Supplied argument is not a valid MySQL result resource in > /home/sites/projects.heathermccullough.com/web/copeland/product.php on > line 61 > > Here is the code, I fixed it once, and I cant figure out why it keeps > returning. > > if ($submit) { > $sql = ("SELE

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread The Big Roach
I think a better strategy would be to introduce them to the basics of databases in general as opposed to trying to "teach" MySQL to them. A good primer on DB's would be "Databases for mere mortals" by ... ? some guy! But the cover is orange/brown and not very thick. Can't find it here... where did

RE: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Mark Saunders
That would be by Michael Hernandez -Original Message- From: The Big Roach [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 4:32 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Books for PHP and MySQL Class I think a better strategy would be to introduce them to the basics of dat

[PHP] Re: executing another php.script

2001-11-15 Thread Richard Lynch
David Tod Sigafoos wrote: >>> From one script I wish to 'execute' another script. How is this done? >>> >>> Setting a link and clicking is not the answer .. one script loops >>> through all the 'selected' rows and I want to 'execute' another script >>> for each row .. can this be done? >From wh

Re: [PHP] Re: executing another php.script

2001-11-15 Thread Andrew Brampton
How about you do readfile('http://server.com/yourPHP.php'); That just opens that file, ie the same as clicking it... Andrew - Original Message - From: "David Tod Sigafoos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 8:42 PM Subject: [PHP] Re: executi

Re: [PHP] Books for PHP and MySQL Class

2001-11-15 Thread Chris Lott
On 15 Nov 2001, [EMAIL PROTECTED] (The Big Roach) spake thusly: >I think a better strategy would be to introduce them to the basics of >databases in general as opposed to trying to "teach" MySQL to them. A >good primer on DB's would be "Databases for mere mortals" by ... ? some >guy! But the cov

[PHP] What version did $PHP_SELF still work?

2001-11-15 Thread John Steele
Hello, I'm trying this again with a different header. After installing PHP4.0.6 $PHP_SELF is set (empty), and this is breaking many scripts of mine (and others). I can't seem to find any mention of this in the commented manual, or anywhere else for that matter. I can try and install an e

Re: [PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread John Steele
Hi Richard, _PHP4 A Beginner's Guide_ is geared especially to first-time programmers... John >Chris Lott wrote: > >> I'll be teaching a web development class in the Spring in which I plan to >> focus on PHP and MySQL as primary tools. These will be students who have >> experience with HTML An

Re: [PHP] Re: Supplied argument is not a valid MySQL result

2001-11-15 Thread Dan McCullough
Got it to work. I had made a change that deleted something, not sure what, but when I went back a revision it worked, and I just added back in the html that I needed to use, but I was more careful. --- Richard Lynch <[EMAIL PROTECTED]> wrote: > Dan McCullough wrote: > > > Warning: Supplied arg

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Jim Lucas
try using $GLOBALS[PHP_SELF] no matter where you are at (ie out of a function, in a function, in an array(), etc... ), you will get the correct value Jim - Original Message - From: "John Steele" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2

[PHP] PEAR Syntax

2001-11-15 Thread Mike Eheler
Hi There, I'm just exploring PEAR a bit, and am confused. Many examples cite calling functions such as: RFC822_Mail::parseAddressList(...); But when I call the function like that, I get a parse error. Any ideas anyone? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread John Steele
Hi Mike and Jim, From my earlier message [Re: PHP 4.0.6 $PHP_SELF empty?]: > No, I updated my php.ini manually (just to change the zend optimizer and >add the DBG debugger. These two lines from php.ini haven't changed for sure: > >variables_order = "EGPCS"; >register_globals = On; > Accord

RE: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Johnson, Kirk
Have you looked at what is in $HTTP_SERVER_VARS['PHP_SELF']? Does this array element even exist? I am wondering if there is an Apache setting that affects this, but I sure don't know. Kirk > -Original Message- > From: John Steele [mailto:[EMAIL PROTECTED]] > Sent: Thursday, November 15,

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Mike Eheler
Hrm. Well if you want quick fix: $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; Mike John Steele wrote: >Hi Mike and Jim, > > From my earlier message [Re: PHP 4.0.6 $PHP_SELF empty?]: > >> No, I updated my php.ini manually (just to change the zend optimizer and >>add the DBG debugger. These two

Re: [PHP] EREG_REPLACE?

2001-11-15 Thread Mark
On Thu, 15 Nov 2001 20:09:08 +0100, Oosten, Sjoerd van wrote: > >> Hello, ive got a problem >> >> I want to replace this string: >> this must also be variable >> >> by: >> >> this must also be variable try: ereg_replace("(.*)", "\\1",$string); >> So the two tags should be placed before and after

RE: [PHP] PEAR Syntax

2001-11-15 Thread Richard Heyes
> I'm just exploring PEAR a bit, and am confused. > > Many examples cite calling functions such as: > > RFC822_Mail::parseAddressList(...); > > But when I call the function like that, I get a parse error. Any ideas > anyone? Well you need to be using php4, :: won't work in php3. Oh and it's Mail_

[PHP] Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Jeff Bearer
I'm getting this error with my php installation, I first assumed that it was because I didn't have GD and friends installed. So I configured and installed PHP with these options and I'm still getting the same error. ./configure --enable-apc --with-mysql --with-apache=../apache_1.3.22 --enable-i

[PHP] Sybase Segfault

2001-11-15 Thread Richard Lynch
Any Sybase/Mandrake gurus want to help me out?... http://bugs.php.net/?id=14074 -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adm

[PHP] HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
Hey List- Working on a program and I seem to have run into a problem with HTTP_POST_VARS. Are the HTTP_VARS considered "special"? Here is what I am doing, reading in from a file into an array and then grabbing each line and looking for ]string[ and replacing that with $HTTP_POST_VARS["stri

Re: [PHP] Newsgroup?

2001-11-15 Thread Christopher Raymond
Hmm: It must be my client then. Christopher Raymond -- O A S I S N E T W O R K S -- INTERACTIVE FLASH MEDIA PRODUCTION HTML, JAVASCRIPT, PHP & E-COMMERCE DEVELOPMENT

[PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Richard Lynch
Henrik Hudson wrote: > So, its having problems doing an eval on the HTTP_POST? If I replace the > HTTP_POST stuff with just$\\1 and then define $string = > $HTTP_POST_VARS["string"] it works just fine, but I can't do this since I > don't know what string is going to be, just that it is betwe

[PHP] Reading a web page as a text string

2001-11-15 Thread Michael J. Seely
HI Folks, How can I read a html page as a text file? I saw a demo of someone doing this on a Mac using AppleScript. The example sent a zip code as a variable attached to the remote site url. This resulted in a web page being sent back with the city and state info included. He then read the

Re: [PHP] Reading a web page as a text string

2001-11-15 Thread Richard Baskett
Well a person could do something like this: http://www.php.net/support.php";; $fcontents = htmlspecialchars(implode('', file ("$file"))); echo "$fcontents"; ?> All this will do is return the webpage as text so that you can read it in your browser. Rick > HI Folks, > > How can I read a ht

[PHP] Re: Fatal error: Call to undefined function: imagecreate()

2001-11-15 Thread Johan Holst Nielsen
> I know it's probabally overkill but in the configure messages, it says > yes for everything gd, jpeg, png, and zlib. Any suggestions? If anybody > wants to see the configure messages let me know. What do PHP tells you about the GD lib extension. Try making a phpinfo() file and send the output

[PHP] FREE Non Surgical Face Lift in A Bottle

2001-11-15 Thread creatingwealth_
Removal Instructions are at the end of this letter. Thank you. FREE Non-Surgical "Face Lift in a Bottle!" You Can Look 5-10 Years Younger with One 30 Minute Application in the Comfort of Your Own Home! AND YOU CAN... Become Rich through Giving Away Free Samples of Our Life Enhancing Non-Surg

[PHP] Re: Reading a web page as a text string

2001-11-15 Thread Gaylen Fraley
You could do something like this: $ip = "10.030.88.24"; //example $url = "http://www.arin.net/cgi-bin/whois.pl?queryinput=$ip";; $fp = @fopen($url, 'r') or die("Cannot Open"); Then, parse the $fp with fgets, or something to find the string you are after. -- Gaylen [EMAIL PROTECTED] Home http:

[PHP] Re: Including declare statements that contain variables

2001-11-15 Thread Fred
> Well you have an interestingly different approach! Glad I could entertain you! > Personally I kind of like either having the SQL statements in-line with the rest > of the code or functions that retrieve data for that particular query e.g. > function get_students($class) { The problem with

Re: [PHP] Re: HTTP_POST_VARS and eval?

2001-11-15 Thread Henrik Hudson
Thanks for the help on this. The file it's reading in: - An example form has been submitted. Name: ]name[ Email: ]email[ The user made the following comments: ]comments[ Just in case we forget, the users name is ]name[ and their email is ]email[

[PHP] Re: Books for PHP and MySQL Class

2001-11-15 Thread Fred
I agree with Chris and Richard, "PHP and MySQL Web Development" by Welling and Thomson, from SAMS. ISBN 0-672-31784-2 is a great book which contains primers for both PHP and MYSQL and then many chapters on how to use them together in real world environments. Chris Lott <[EMAIL PROTECTED]> wrote

[PHP] SESSION &

2001-11-15 Thread jtjohnston
HTH. I have solved the problem with this code: "; } elseif($submit=="Send") { echo" "; } elseif($submit=="Display") { if($name) { header("Content-type: image/png"); $image = imagecreate(100, 100); $white = ImageColorAllocate ($image, 255, 255, 255);//Set this first as the backgr

[PHP] test

2001-11-15 Thread Mike Gifford
Sorry, I've been having troulbe sending messages to newsgroups.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] JPG Images from database to filename.jpg

2001-11-15 Thread Mike Gifford
Hello, I've got a number of images in a database.. Ultimately what I would like to do is be able to resize the image that is already in the database and then insert that image into another field. Uploading the files generally inserts these both at the same time, however I need to create a nu

[PHP] Re: PHP versus all other languages

2001-11-15 Thread Manuel Lemos
Hello, Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I mi

[PHP] Re: PHP versus all other languages

2001-11-15 Thread Manuel Lemos
Hello, Pat Hanna wrote: > > I'm doing my senior exit project on database languages online. I'm asking > for help from anyone who can provide any information on the comparison > between the different languages. I'm comparing languages such as PHP, ASP, > ColdFussion, perl and any others that I mi

[PHP] Re: JPG Images from database to filename.jpg

2001-11-15 Thread Johan Holst Nielsen
> Header("Content-type: image/jpeg"); > echo $Images; > > I can't figure out how to create the header. There's lots of examples > of how to do the above, but I have yet to stumble across an example > which allows you to write the header into a file You could make a PHP script that generate

[PHP] strpos

2001-11-15 Thread jtjohnston
I suppose I'm doing this right? I want to know if the user entered "\.jpeg" or "\.jpg". If he didn't, it should error. It errors anyways? What do I have to do add slashes in my ??? :o) // if((!strpos($yourimage, "\.jpg")) || (!strpos($yourimage, "\.jpeg"))) \\ <--- tried both! if((!strpos

[PHP] url exist?

2001-11-15 Thread jtjohnston
Any way of finding out if this exists? http://www.somewhere.com/image.jpg if yes {} else {}; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTEC

[PHP] Re: strpos

2001-11-15 Thread Martin Thoma
strpos return false if the search fails. You have therefore to test for: if (strpos(...,...) === false) or if (strpos(...,...) !== false) Martin Jtjohnston wrote: > I suppose I'm doing this right? I want to know if the user entered > "\.jpeg" or "\.jpg". If he didn't, it should error. > > I

RE: [PHP] url exist?

2001-11-15 Thread Andrew Kirilenko
Hello! The simpliest way: $f = @fopen("http://foobar.baz/somefile.ext";, "r"); if ($f) { fclose($f); echo "exists!" } else { echo "no exists!" } Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Friday, Nov

[PHP] Regular expressions?

2001-11-15 Thread Martin Thoma
Hello! I need to search for strings between html-tags. For example, I need to know if the String "Searchstring" is between "" and "" (case-insensitive). How is it done? I think I need regular expressions, but I have no idea about it. I'm not getting to clever out of the php-documentaion. Where

Re: [PHP] url exist?

2001-11-15 Thread Chris Hobbs
Looks like you might be able to use the cURL extensions - there's a function called curl_getinfo which returns an array which includes http_code - you could check the value of that to see whether the file was available (http_code == 200), not found (

RE: [PHP] Re: strpos

2001-11-15 Thread Andrew Kirilenko
Hello! if (!strpos(...)) will be better... Best regards, Andrew Kirilenko. > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:28 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: strpos > > > strpos return false if the search fails.

Re: [PHP] Re: strpos

2001-11-15 Thread Martin Thoma
> if (!strpos(...)) > will be better... Why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

RE: [PHP] Regular expressions?

2001-11-15 Thread Andrew Kirilenko
Hello! You should write something like this: if (preg_match("/(.*)<\/H2>/Ui", $str, $matches)) echo $matches[1]; U modufier - ungreedy match i modifier - case insentensive >Where can I start to learn reg-exp? If you want to get more abot regexp - read php manual at least.Or try to fi

RE: [PHP] Re: strpos

2001-11-15 Thread Andrew Kirilenko
Oops. Forgot about 0 return ;( > -Original Message- > From: Martin Thoma [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 9:42 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] Re: strpos > > > > if (!strpos(...)) > > will be better... > > Why? > > > > -- > PHP General Ma

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Thanks. Andrew Kirilenko wrote: > Hello! > > The simpliest way: > $f = @fopen("http://foobar.baz/somefile.ext";, "r"); > if ($f) > { > fclose($f); > echo "exists!" > } > else > { > echo "no exists!" > } > > Best regards, > Andrew Kirilenko. > > > -Original Message

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Yeah ... but you have to install the package. Thanks for the thought though. :) I'd looove to ask my admin ... but I know what his answer is/was/will be/would be :) always is. Chris Hobbs wrote: > Looks like you might be able to use the cURL extensions >

[PHP] 5760 Melt away extra5891 pounds and inches today! 4372028

2001-11-15 Thread 2843720weigh_out
My name is Linda Gillie. I am 31 years old. A mother of three, a wife of 13 years to a wonderful man, Michael My heart told me to share my story with you, so you don't give up hope. I have found a weight loss product that really works. It gets rid of fat fast and keeps it off, FOR GOOD! T

Re: [PHP] multiple include

2001-11-15 Thread Papp Gyozo
if (!defined('_SYS_TYPES.H')) { include('sys/types.h'); } - Original Message - From: "Briet Vincent" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 15, 2001 10:31 AM Subject: [PHP] multiple include > Hi all, > > I would like to do som

<    1   2