php-general Digest 7 Feb 2001 04:14:56 -0000 Issue 497 Topics (messages 38394 through 38486): Re: I wish: IIS and ISAPI $PHP_AUTH_USER 38394 by: Phil Driscoll 38457 by: Shane McBride 38458 by: Shane McBride Re: GD 38395 by: Web Admin Re: Parse error on blank line... 38396 by: Toby Butzon Re: [newbie] Array form values. 38397 by: Toby Butzon 38398 by: April 38399 by: Faisal Nasim Re: Mixing PHP code with phplib templates... possible? 38400 by: derek fong Passing an array as an argument. 38401 by: April 38403 by: Web Admin 38409 by: Ryan Gaul GD, TTF, and Anit-Alias 38402 by: Brandon Orther 38410 by: Web Admin Com 38404 by: Vora Vor Re: 20 Million Fresh E-mail Addresses 38405 by: Benjamin Munoz COM? 38406 by: Conover, Ryan Graphics Library 38407 by: Brandon Orther Sessions and Objects 38408 by: Conover, Ryan Help w/ PHP2 install 38411 by: Doug Taylor The meaning of myurl.myurl2.com 38412 by: Todd Cary 38417 by: Kurth Bemis 38419 by: John Huggins How to use phpIRC and question about HTML streaming! 38413 by: Zenith 38453 by: Alexander Wagner binmode() in php? 38414 by: Joel Alan Chornik undefined symbol: __dn_expand ??? 38415 by: Jeffrey Dyer 38421 by: Steve Smith Re: OCILogOn and OCILogOff 38416 by: Reuben D Budiardja Blur text using GD and TTF 38418 by: Brandon Orther PHP/Majordomo web interface 38420 by: Jaguwar 38429 by: Martin A. Marques 38433 by: Jaguwar 38436 by: Martin A. Marques porting a php3 module/patch to php4 38422 by: Benjamin Elijah Griffin Outline text using GD 38423 by: Brandon Orther software development qu 38424 by: Dean Hall Dear Friends & Future Millionaire: 38425 by: Hi Tech Services 38430 by: Duncan Hill Is there a way to call php functions in perl? and vice versa 38426 by: david klein usort Issues and Classes 38427 by: Jason Mowat Error with Cookies and SSI 38428 by: Ben Wiechman 38431 by: DanO 38447 by: Ben Wiechman Re: [PHP-DB] PHP, MySQL and XML 38432 by: Ryan Gaul Re: Change Password script 38434 by: enthalpy Re: framing search results 38435 by: Jason Dulberg Name of Class' instance 38437 by: Boget, Chris Questions about simple php problems 38438 by: Jericho Barimen 38440 by: Thor M. Steindorsson 38451 by: David VanHorn 38456 by: David VanHorn Just a thanks 38439 by: Josh G Questions 38441 by: Josh G 38455 by: Jericho Barimen MD5 / crypt 38442 by: Dan Harrington 38443 by: David VanHorn 38446 by: James Atkinson 38449 by: Alexander Wagner 38454 by: David VanHorn 38465 by: Dan Harrington Date Formatting 38444 by: Richard Scott Crawford 38461 by: Steve Edberg Indexing Engine 38445 by: Diego Fulgueira Re: Java Servlet Support 38448 by: Alex Akilov Re: Is PHP integrated with LDAP? 38450 by: Alex Akilov Odd question regarding creating a php file 38452 by: Dusten 38460 by: Chris Lee Io Ports? 38459 by: Chris MANY GREAT THANKS!!! 38462 by: Jericho Barimen passing array to function? 38463 by: Jaxon 38472 by: David Robley Retrieve item from table at random 38464 by: enthalpy 38473 by: David Robley breaking up images to sets of 5 38466 by: enthalpy 38467 by: Mark Green 38468 by: Mark Green 38469 by: enthalpy XSLT problems.... 38470 by: Chris Lee 38486 by: Javier Muniz Getting referrer page 38471 by: Dennis Gearon sending mail with PHP from web 38474 by: Yamin Prabudy File upload - ascii format 38475 by: Shane McBride 38479 by: David Robley 38481 by: David Robley Can I do this to write out html file using fopen 38476 by: Jacky.lilst Alarm/Timer in PHP?? 38477 by: GAYTAN BAHAMONDEZ DANIEL EDUARDO 38483 by: Michael Kimsal which template? 38478 by: Thomas Jaske [newbie] minor trouble with "while, list and explode" from a text-file 38480 by: SED 38484 by: David Robley Header Location Question 38482 by: Jeff Oien parent constructor 38485 by: Aaron Tuller Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] ----------------------------------------------------------------------
Shane I can't do any testing for you at my end as I just can't get php to work as an ISAPI module on my setup without causing 500 internal server errors. It would be helpful if you could echo $PHP_AUTH_USER if it is set, just so we can see what it is set to, and echo something else (eg 'auth not set') if it is not set, then we'll have a better idea of where it's going wrong. Cheers -- Phil Driscoll Dial Solutions +44 (0)113 294 5112 http://www.dialsolutions.com http://www.dtonline.org
Phil, Did you happen to copy the php4ts.dll into the winnt directory? I am not sure of the error you are getting, but it may help????? ----- Original Message ----- From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 11:14 AM Subject: Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER > Shane > > I can't do any testing for you at my end as I just can't get php to work as > an ISAPI module on my setup without causing 500 internal server errors. > > It would be helpful if you could echo $PHP_AUTH_USER if it is set, just so > we can see what it is set to, and echo something else (eg 'auth not set') if > it is not set, then we'll have a better idea of where it's going wrong. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org >
Phil, Hey check out this thread: http://www.phpbuilder.com/forum/read.php3?num=3&id=100242&thread=100047 ----- Original Message ----- From: "Phil Driscoll" <[EMAIL PROTECTED]> To: "Shane McBride" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 11:14 AM Subject: Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER > Shane > > I can't do any testing for you at my end as I just can't get php to work as > an ISAPI module on my setup without causing 500 internal server errors. > > It would be helpful if you could echo $PHP_AUTH_USER if it is set, just so > we can see what it is set to, and echo something else (eg 'auth not set') if > it is not set, then we'll have a better idea of where it's going wrong. > > Cheers > -- > Phil Driscoll > Dial Solutions > +44 (0)113 294 5112 > http://www.dialsolutions.com > http://www.dtonline.org >
Hi, Consider using ImageCreateFromGif will help you. Then use ImageTTFText to write some text on the loaded gif and ImageGIF it to output the image as gif :) Ahmad Anvari ----- Original Message ----- From: Brandon Orther To: PHP User Group Sent: Tuesday, February 06, 2001 7:50 PM Subject: [PHP] GD Hello, Hello I am starting to work with GD a little bit more lately and was looking for some more advanced stuff than just printing text on blue background. I was wondering if there is a way to load an image into GD to use as the background image of a image I want to create. Does anyone know where I can get a couple good GD tutorials, other than making graphs. Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -------------------------------------------- -- 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]
I gotta agree here. It happens every once in a while and it usually turns out to be something like that... also check to see if you have any here-docs in there that aren't terminated correctly (the ending signal must appear at the first column of a line and be followed by a semicolon). I don't know what else to suggest, but try commenting out some blocks of code systematically and see when it goes away... the thing's got to quit erroring out at some point. --Toby April wrote: > > No, I have the same thing happen all the time. It happens after a > combination of }'s and ;'s where either a } or a ; is missing. Seriously. > > ----- Original Message ----- > From: "Jackson, Michael" <[EMAIL PROTECTED]> > To: "'johnny p.'" <[EMAIL PROTECTED]>; "April" <[EMAIL PROTECTED]>; > "Jackson, Michael" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Monday, February 05, 2001 4:48 PM > Subject: RE: [PHP] Parse error on blank line... > > > Even if I was missing a brace, doesn't it seem odd that it would > always > > give me a syntax error on the same line? It's as if it's arbitrarily > > deciding to break there... If I add a new line after <?php, it still > gives > > the exact same line number... And again, I can comment it out, and it > will > > still give me an error on the same line number. Again, this is the same > > line NUMBER - It apparently doesn't matter what snippet of code exists > > there. > > > > -----Original Message----- > > From: johnny p. [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 05, 2001 05:38 PM > > To: April; Jackson, Michael; [EMAIL PROTECTED] > > Subject: RE: [PHP] Parse error on blank line... > > > > > > I'm not sure where it is, but I agree that you are missing a curly brace > > somewhere. Take a break from your code for a bit, come back to it, and > > start matching braces. I suggest getting a coffee or some tea. > > > > johnny p. > > > > > -----Original Message----- > > > From: April [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, February 05, 2001 4:31 PM > > > To: Jackson, Michael; [EMAIL PROTECTED] > > > Subject: Re: [PHP] Parse error on blank line... > > > > > > > > > You missed a } in there. Inside of that else, you have an > > > if, but you never > > > close the else. > > > > > > > 190 showmainscreen(); > > > > 191 } > > > > 192 > > > > > > should be > > > > > > > 190 showmainscreen(); > > > > 191 } > > > > 192 } > > > > > > ----- Original Message ----- > > > From: "Jackson, Michael" <[EMAIL PROTECTED]> > > > To: <[EMAIL PROTECTED]> > > > Sent: Monday, February 05, 2001 4:23 PM > > > Subject: [PHP] Parse error on blank line... > > > > > > > > > > Hello all, > > > > > > > > I hope this doesn't turn out to be a stupid question, > > > but we will > > > > see... I am getting parse errors on blank lines. Not > > > commented, but > > > > totally blank. And seemingly no matter how I manipulate > > > the text, it > > > turns > > > > out to always be on the same line. I'm using vim with > > > syntax tags to help > > > > me check my basic syntax, and everything seems to be closed > > > - I am at a > > > > total loss as to what could be wrong! Let me try to > > > clarify: Take the > > > > following snippet of code - It errors out on line 193. I > > > have no idea > > > why. > > > > I added blank lines to shift the code around - and if I > > > eliminated all of > > > > the blank lines, I still error out on 193. > > > > > > > > 001 <?php > > > > > > > > ..... > > > > > > > > > > > > 181 ############## > > > > 182 # BEGIN CODE # > > > > 183 ############## > > > > 184 > > > > 185 if ($goodtogo != "yes") { > > > > 186 sanitize_session(); > > > > 187 } > > > > 188 else { > > > > 189 if ($state == "main") { > > > > 190 showmainscreen(); > > > > 191 } > > > > 192 > > > > > 193 > > > > 194 > > > > 195 > > > > 196 elseif ($state == "add") { > > > > 197 adduser($product,$username); > > > > 198 } > > > > 199 elseif ($state == "search") { > > > > 200 searchuser($username); > > > > 201 } > > > > 202 else { > > > > 203 doh(); > > > > 204 } > > > > 205 } > > > > 206 > > > > 207 ############ > > > > 208 # END CODE # > > > > 209 ############ > > > > 210 ?> > > > > > > > > Any help is greatly appreciated! > > > > > > > > -- > > > > 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 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 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]
Or you might try a foreach($array as $element)... about the same but it doesn't give you they key - just the value (as $element). foreach ($email as $current) { // process this email addr } // move on to the next one until the whole arr of them has been proc'd Good luck- --Toby David Robley wrote: > > On Tue, 6 Feb 2001 08:57, April wrote: > > I have a form that is an extended version of this: > > > > <form> > > <input type="text" name="email[1]"> > > <input type="text" name="email[2]"> > > <input type="text" name="email[3]"> > > </form> > > > > Unfortunately, the email[1] part was generated using a variable in a > > loop. I have no idea how many of these fields there really will be each > > time this is done. > > > > I then need to turn around and, while processing the form, extract the > > values for each field in another loop. > > Trying to do echo $email[$i] doesn't seem to work, though. > > > > Is my entire logical approach wrong? Could it be something wrong with > > syntax? Is it not possible to use a variable as the inner part of an > > array like that? ooo, or best one to answer: does someone have a > > snippet of code doing what I want to do here, that I could learn from? > > Have a look at the functions list and each - there are code snippets in the > manual which should give you some ideas for getting the values and keys > from an array. You might also be interested in count and sizeof for > determining the number of elements in the array. > > -- > David Robley | WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ > AusEinet | http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > > -- > 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]
Well, I'd need the key - I don't want to have a system that breaks if someone deletes a record while someone else is mulling over the form, before they submit it. So I'm going to need the id number for each record changed. Also, my real form is going to have more than one field doing this - email, rank, and name, that I know of so far. ----- Original Message ----- From: "Toby Butzon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "April" <[EMAIL PROTECTED]>; "PHP General" <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 10:36 AM Subject: Re: [PHP] [newbie] Array form values. > Or you might try a foreach($array as $element)... about the same but it > doesn't give you they key - just the value (as $element). > > foreach ($email as $current) { > // process this email addr > } // move on to the next one until the whole arr of them has been proc'd > > Good luck- > > --Toby > > David Robley wrote: > > > > On Tue, 6 Feb 2001 08:57, April wrote: > > > I have a form that is an extended version of this: > > > > > > <form> > > > <input type="text" name="email[1]"> > > > <input type="text" name="email[2]"> > > > <input type="text" name="email[3]"> > > > </form> > > > > > > Unfortunately, the email[1] part was generated using a variable in a > > > loop. I have no idea how many of these fields there really will be each > > > time this is done. > > > > > > I then need to turn around and, while processing the form, extract the > > > values for each field in another loop. > > > Trying to do echo $email[$i] doesn't seem to work, though. > > > > > > Is my entire logical approach wrong? Could it be something wrong with > > > syntax? Is it not possible to use a variable as the inner part of an > > > array like that? ooo, or best one to answer: does someone have a > > > snippet of code doing what I want to do here, that I could learn from? > > > > Have a look at the functions list and each - there are code snippets in the > > manual which should give you some ideas for getting the values and keys > > from an array. You might also be interested in count and sizeof for > > determining the number of elements in the array. > > > > -- > > David Robley | WEBMASTER & Mail List Admin > > RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ > > AusEinet | http://auseinet.flinders.edu.au/ > > Flinders University, ADELAIDE, SOUTH AUSTRALIA > > > > -- > > 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 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] >
At 11:36 AM 2/6/2001 -0500, Toby Butzon wrote: >Or you might try a foreach($array as $element)... about the same but it >doesn't give you they key - just the value (as $element). > >foreach ($email as $current) { > // process this email addr >} // move on to the next one until the whole arr of them has been proc'd Or perhaps: foreach ( $email as $key => $val ) { // .... } for both. Enjoy! Faisal
At 11:16 am +0300 2.6.01, Max A. Derkachev wrote: >df> I need >df> to run all hyperlinks through a function in order to maintain state >df> and pass other variables from script to script. I figure this must >df> be possible, but I'm new at using phplib, so I'm not all that clear >df> on it... > >Set the links as template variables and then substitute them with >values using Template's set_var(). Hi Max, Thanks for the reply. Unfortunately, the solution you suggest means that I would have to do a set_var on all hyperlinks (i.e., define all hyperlinks everywhere on the site), which is a huge amount of maintenance. What I thought about yesterday was creating some sort of token (e.g., {@@@@@}) that could be tacked onto the end of hyperlinks that I want to add session info to. Maybe there's a better way... I don't know! :( --- Derek Fong web://developer Zero-Knowledge Systems [http://www.zeroknowledge.com/] PGP Fingerprint >> 2D4F 89F0 EAC1 FBFB 97B5 0B94 FA05 C29E D23B 0A4E
How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } } ######### This will display fine. ######### while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } ######### Doing the same thing with the function here returns this error, though. ######## // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email);
Hi April, I suggest you code your array into one string (it depends to the size) then decode it at the other end using your own code. It's the easiest trick to pass the array, compress it into one variable, then extract it at the other end. Any other ideas? ;-) Ahmad ----- Original Message ----- From: April To: PHP General Sent: Tuesday, February 06, 2001 8:48 PM Subject: [PHP] Passing an array as an argument. How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } } ######### This will display fine. ######### while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } ######### Doing the same thing with the function here returns this error, though. ######## // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email); -- 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]
try: function process_members($asker_rank, $total_members, $email=array()) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } } process_members($asker_rank, $total_members, $email); Your original function declaration only has two variables passed to it. You are passing three variables when you call the function. What's happening is this: function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } } process_members($asker_rank, $total_members, $email); step one: php sets $asker_rank (in function declaration) equal to $asker_rank step two: php sets $email (in function declaration) equal to $total_members step three: php ignores $email array passed to process_members() step four: php passes $email to each(). $email is set to the value of $total_members, which is not an array, and chokes. Using : function process_members($asker_rank, $total_members, $email=array()) { ... } allows you to have a default value for $email. So you can either pass it or not. -----Original Message----- From: April [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:18 PM To: PHP General Subject: [PHP] Passing an array as an argument. How do you pass an array as an argument to a function? My code (or at least the important parts): function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } } ######### This will display fine. ######### while (list ($key, $val) = each ($email)) { echo "$key => $val<br>"; } ######### Doing the same thing with the function here returns this error, though. ######## // Warning: Variable passed to each() is not an array or object in lib.inc on line 447 process_members($asker_rank, $total_members, $email); -- 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]
Hello I am making a php script that make an image with the text that I send to the script. What I was wondering is if there was an anti-alias function in GD for my test. Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
Hi Brandon, You asked me in a private e-mail about anti-aliasing. As far as I know if ImageTTFText function, if you use negative color reference [such as -1, -2], It turns off the anti aliasing. I think the text is automatically antialiased using a positive number. Anyone, with a sharp idea? ;-) Ahmad Anvari ----- Original Message ----- From: Brandon Orther To: PHP User Group Sent: Tuesday, February 06, 2001 9:07 PM Subject: [PHP] GD, TTF, and Anit-Alias Hello I am making a php script that make an image with the text that I send to the script. What I was wondering is if there was an anti-alias function in GD for my test. Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com -------------------------------------------- -- 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]
"Fatal error: Cannot instantiate non-existent class: com in /var/www/html/version2/file.php on line 8" is the result of running the following code: <? $word=new COM("word.application") or die("Cannot start word"); print "Loaded word version ($word->Version)\n"; $word-visible =1 ; ?> Why?
On replying to SPAM: Most of you already know this, but replying to SPAM (even if they tell you that you can remove yourself) usually leads to more SPAM, b/c you've just given the SPAMMERS your email address confirmed. http://www.chugach.net/~techtips/spam3.htm Just a warning. -Ben -----Original Message----- From: Luke [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 6:14 PM To: [EMAIL PROTECTED] Subject: [PHP] 20 Million Fresh E-mail Addresses TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT. 20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included** Many Call This "The "Perfect E-Mail List" Over 20-Million Of The Best E-Mail Addresses Available _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Our research has found that many people have tried one or more of the following... Free Classifieds? (Don't work anymore) Web Site? (Takes thousands of visitors) Banners? (Expensive and losing their punch) E-Zine? (Hope they have a *huge* subscriber list) Search Engines? (Forget it, unless you're in the top 20) S O W H A T W I L L W O R K ? Although often misunderstood, there is one method that has proven to succeed time-after-time. E - M A I L M A R K E T I N G ! ! IT'S A FACT... If you're not using your computer to generate income, GOOD income, you're leaving money on the table. Here's what the experts have to say about E-Mail Marketing: "E-mail is an incredible lead generation tool" -Crains Magazine "A gold mine for those who can take advantage of bulk e-mail programs" - The New York Times "Blows away traditional Mailing" - Advertising Age Here's an example of your potential earnings if you have a product or service that brings you a profit of around $30. Remember, on the Internet, you can make money 7 days a week, 24 hours a day... even while you sleep, orders come from all over the world! Orders Per Day Weekly Monthly Yearly 1 $ 210 $ 840 $ 10,080 2 420 1,680 20,160 3 630 2,520 30,240 5 1,050 4,200 50,400 10 2,100 8,400 100,000 15 3,150 12,600 151,200 THE QUESTION IS... how do you generate those orders? The least expensive and fastest way is through E-Mail Marketing. You want to make some money? I can put you in touch with over 20 million people at virtually no cost. Can you make one cent from each of theses names? If you can you have a profit of over $200,000.00 That's right, I have over 20 Million Fresh email addresses that I will sell for only $249. These are all fresh addresses that include almost every English person on the Internet today, with no duplications. They are all sorted and ready to be mailed. That is the best deal anywhere today! Don't believe it? People are making that kind of money right now by doing the same thing, that is why you get so much email from people selling you their product....it works! These 20 Million email addresses are yours to keep, so you can use them over and over. This offer is not for everyone. If you can not see just how excellent the risk / reward ratio in this offer is then there is nothing I can do for you. To make money you must stop dreaming and TAKE ACTION. Over the past 2 years, we have gained a reputation for having the cleanest, most responsive e-mail address lists in the industry. No one has gone to the work it takes to produce an e-mail address list of this quality. Here's how we prepare our e-mail lists: 1. We clean and eliminate all duplicates. 2. Next, we use a filter list of 400+ words/phrases to clean even more. No address with inappropriate or profane wording survives! 3. Then we use our private database of thousands of known Internet "extremists", those opposed to any kind of commercial e-mail, and kicked off every one we could find. 4. All domains were verified to insure they're valid. 5. And finally, we sorted the list into easy-to-manage packets of 20,000 addresses in simple text (.txt) format that will work with any computer operating system. ****************************************** It is time to order! Shipping is not an issue. ******FedEx next day world wide shipping included******** As soon as we receive payment we will FedEx your e-mail list via CD straight to your door anywhere in the world FedEx next day guaranteed. ******International Orders Welcome********* US funds paid via paypal.com welcomed PayPal is now available in the following countries: Australia Austria Belgium Brazil Canada Denmark France Germany Hong Kong Ireland Israel Italy Japan Mexico Netherlands New Zealand Norway Portugal Singapore South Africa South Korea Spain Sweden Switzerland United Kingdom PayPal.com is very easy to sign up to. They accept wire transfers, checks and credit cards from any of the countries listed above. This payment process is in your own interest of safety. Paypal.com processes all transactions and keeps all your personal information secret. After signing up please send the U.S. equivalent of $249 to [EMAIL PROTECTED] last name Smith. If there is another way you would like to pay please e-mail me at [EMAIL PROTECTED] and I will get back to you. *******Wondering out how to send 20 million E-mails******** I will tell you how/where to download the softwhere you need for free Please NOTE: Congress shall make no law respecting an establishment of religion, or prohibiting the free exercise thereof, or abridging the freedom of speech or of the press; or the right of the people peaceably to assemble, and to petition the Government for a redress of grievances. Amendment I, The US Constitution -- 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]
Does Anyone know what needs to be installed on the server other than php 4.0.4 and IIS to instantiate COM Objects like Excel and word. Ryan
Hello, A couple weeks ago there was a listing for a new release of an image editing library that worked with GD and php, if you can remember what it was please e-mail me with the URL Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
If I save an object as a session var. will I still have access to its methods. Ryan
Hello, I posted a message a few days back about a compile error I was getting on a Apache install w/ PHP2, PHP4, msql, mysql, and ssl. I haven't had any response, so I decided to try and simplify and isolate the problem by eliminating PHP4, mysql, and ssl. Basically, I've prepped PHP2 as an Apache module with msql support (msql is already installed on my system), and now I'm just trying to compile PHP2 into Apache, via the following commands: [root@machine apache_1.3.14]# ./configure --activate-module=src/modules/extra/libphp.a --enable-module=php --prefix=/usr/local/apache ... configuration output... blah blah blah ... [root@machine apache_1.3.14]# make it goes through several directories compiling successfully, then I get the following error: gcc -DLINUX=2 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite -DNO_DL_NEEDED `./apaci` \ -o httpd buildmark.o modules.o modules/standard/libstandard.a modules/extra/libextra.a main/libmain.a ./os/unix/libos.a ap/lib ap.a regex/libregex.a lib/expat-lite/libexpat.a -lm -lcrypt modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one collect2: ld returned 1 exit status make[2]: *** [target_static] Error 1 make[2]: Leaving directory `/usr/local/source/apache_1.3.14/src' make[1]: *** [build-std] Error 2 make[1]: Leaving directory `/usr/local/source/apache_1.3.14' make: *** [build] Error 2 [root@machine apache_1.3.14]# I've searched the web and found references to this error (modules/extra/libextra.a: could not read symbols: Archive has no index; run ranlib to add one)... but no solution. Any assistance would be appreciated, and yes, I have tried the obvious: ranlib /path/to/modules/extra/libextra.a libextra.a is an archive which contains libphp.a (which was created by the PHP2 module compile), so I suppose it's possible that the error is actually in libphp.a. libextra.a is created by the command "ar cr libextra.a libphp.a" in the apache compile. I ran ar --help and found that the s option creates an index, so I tried ar crs libextra.a libphp.a, but still met with the same error when I tried running make again. FWIW, I have ranlib version "GNU ranlib 2.9.5", and I'm running under Yellow Dog Linux (supported on iMac hardware, which is unfortunately the only box I can use right now) D
What is the meaning of a URL that has two periods in it? For example http://www.myloc.aristesoftware.com Where does that take the sufer relative to the root of aristesoftware.com? Todd -- Todd Cary Ariste Software [EMAIL PROTECTED]
At 02:08 PM 2/6/2001, Todd Cary wrote: nop.. its another server beneath the aristesoftware.com TLD. for instance www.aristesoftware.com refers to the machine named "www" on the domain aristesoftware.com. I'd advise that you read about the structure of the Internet and how everything on the internet works. ~kurth >What is the meaning of a URL that has two periods in it? For example > >http://www.myloc.aristesoftware.com > >Where does that take the sufer relative to the root of >aristesoftware.com? > >Todd > >-- >Todd Cary >Ariste Software >[EMAIL PROTECTED] > > > >-- >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]
> What is the meaning of a URL that has two periods in it? For example > > http://www.myloc.aristesoftware.com > > Where does that take the sufer relative to the root of > aristesoftware.com? > > Todd Somewhere the above host name resolves to an IP address. It is just a different host. In the world of domain names , arietesoftware is a subnet of ".com" and "myloc" is a subnet of "aristesoftware.com" with "www" finally being a host in the subnet "myloc.aristesoftware.com." Also, com = root domain aristesoftware = 2nd level domain myloc = 3rd level domain www = host in the 3rd level domain This could go on forever. John
I have readying "web application develoment with PHP4.0" by Tabias Ratschiller and Till Gerken at these days! In chapter 3, I have talk about creating a IRC client with phpIRC and HTML streaming, but it hasn't talk too much about the implementation, also, it haven't talk much about HTML streaming. He just say HTML streaming can create a interface which can let the process (running php script) continously output something to the HTTP client, without close a connection and establish again... Right, my question is, anyone can give me more info, or pointer for this two topic? Especially, the web site which provide the info i need and what type of browser support HTML streaming? Thanks!
Zenith wrote: > I have readying "web application develoment with PHP4.0" by Tabias > Ratschiller and Till Gerken at these days! > In chapter 3, I have talk about creating a IRC client with phpIRC and > HTML streaming, > but it hasn't talk too much about the implementation, also, it > haven't talk much about HTML streaming. Complete source is on the CD-ROM that comes with the book or available from http://www.phpwizard.net/projects/ > He just say HTML streaming > can create a interface which can let the process (running php script) > continously output something to the HTTP client, without close a > connection and establish again... > > Right, my question is, anyone can give me more info, or pointer for > this two topic? > Especially, the web site which provide the info i need and what type > of browser support HTML streaming? I can't point you to any further information, but this is what I know: -HTTP-streaming is done by just continously outputting HTML and flush() after each chunk, so it is sended to the browser and displayed. -This works with most browsers, because these are designed to begin displayig parts of the page before the complete page has been recieved. -It doesn't work well when the client uses a HTTP-proxy. Some proxies don't do streaming. Some are picky about the headers you send (connection type, for example). -Occasionally send some whitespace to prevent a connection reset by the browser and make it "hold the line". -You should be careful about the structur or your HTML-Code because streaming only works well when the HTML-code can be send in chunks and nicely be desplayed after each chunk has been sent. No nested tables. regards Wagner -- Three may keep a secret, if two of them are dead.
is there an equivalent in PHP to Perl´s binmode() function? does anyone know? thanks, Joel.
Hey, I'm on Mandrake 7.1. I installed PHP 4.0 without any errors, using the following: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gnu-ld make make install It seemed to go fine -- no errors during installation, however, when I try to start apache I get the following error: Syntax error on line 207 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: __dn_expand ./apachectl start: httpd could not be started I've searched the internet all day, I can't find much reference on __dn_expand... I'm out of ideas so if anyone has any ideas on what might be wrong, please reply. Thanks for your time, -Jeff
On Tue, 6 Feb 2001, Jeffrey Dyer wrote: > Hey, I'm on Mandrake 7.1. I installed PHP 4.0 without any errors, using > the following: ./configure --with-mysql=/usr/local/mysql > --with-apxs=/usr/local/apache/bin/apxs --with-gnu-ld make make install > > It seemed to go fine -- no errors during installation, however, when I > try to start apache I get the following error: Syntax error on line 207 > of /usr/local/apache/conf/httpd.conf: Cannot load > /usr/local/apache/libexec/libphp4.so into server: > /usr/local/apache/libexec/libphp4.so: undefined symbol: __dn_expand > ./apachectl start: httpd could not be started __dn_expand is a reslover function. The fix is almost certain to be to add -lresolv to the LIBS= line in your php makefile. --Steve
I have looked at the comment there, even before I send message to the list. But I'm still wondering how can I disconnect from the Oracle db then? is it actually doing anything? When I developed our own API using ora_*, I never called ora_logoff at the end of every session, because ora_logoff did not return anything (before php 4.0.3). I didn't know where the problem exactly, but our database kept crashing because too many connection were opened (at least that was said by my DBA). I then called ora_logoff eventhough it did not return anything, just for the heck of it, and everything went better. It could be the problem with the DB itself, but I really don't want something like that to happen again using OCI*. Any ideas? Thanks a lot. Reuben D. Budiardja At 08:05 AM 2/6/01 -0600, you wrote: >See the comments here. http://www.php.net/manual/en/function.ocilogoff.php > > >"Reuben D Budiardja" <[EMAIL PROTECTED]> wrote: >Hi, >It seems to me that OCILogOff does not return anything. Evenif I do >something like this: > >$conn = OCILogOn("user", "passwd", "db"); >$logoff = OCILogOff($conn); > >$logoff is always empty. Does anyone know about this? any help? > >Thanks. >Reuben D. Budiardja
Hello, is there a way to blur text at all, I am trying to make a drop shadow effect. Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
I'm wondering if such a thing already exists as a "package". I'd like to be able not only to manage a mailing list, but also to view message archives, have users subscribe and so on. A bit like eGroups. Thanks. Michelle (Jag)
El Mar 06 Feb 2001 16:38, Jaguwar escribió: > I'm wondering if such a thing already exists as a "package". I'd like to > be able not only to manage a mailing list, but also to view message > archives, have users subscribe and so on. A bit like eGroups. I have been looking for something that those this the past few weeks, and found non. So at this moment I started a proyect with the local LUG, which will store mails from any mailling list into a database and have a search engine. Pretty cool, no? :-) -- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
Oh bother! What you are doing sounds like it's on the way to what I'm looking for, at the very least! I guess it will take me longer than I'd thought, though. On the other hand, it'll be one heck of a learning ground! :-) Gracìas, Martin! Michelle ----- Original Message ----- From: "Martin A. Marques" <[EMAIL PROTECTED]> To: "Jaguwar" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, February 06, 2001 3:58 PM Subject: Re: [PHP] PHP/Majordomo web interface El Mar 06 Feb 2001 16:38, Jaguwar escribió: > I'm wondering if such a thing already exists as a "package". I'd like to > be able not only to manage a mailing list, but also to view message > archives, have users subscribe and so on. A bit like eGroups. I have been looking for something that those this the past few weeks, and found non. So at this moment I started a proyect with the local LUG, which will store mails from any mailling list into a database and have a search engine. Pretty cool, no? :-) -- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar ----------------------------------------------------------------- -- 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]
El Mar 06 Feb 2001 18:39, Jaguwar escribió: > Oh bother! What you are doing sounds like it's on the way to what I'm > looking for, at the very least! I guess it will take me longer than I'd > thought, though. On the other hand, it'll be one heck of a learning > ground! Well, when I sent the mail to the mailling list we have here in our LUG, I got a responce from Roberto Alsina (KDE developer) that said he was working on something like that, with C++ and it was 80% compete. So lets see what comes out of all this. > Gracìas, Martin! De nada. ;-) -- System Administration: It's a dirty job, but someone told I had to do it. ----------------------------------------------------------------- Martín Marqués email: [EMAIL PROTECTED] Santa Fe - Argentina http://math.unl.edu.ar/~martin/ Administrador de sistemas en math.unl.edu.ar -----------------------------------------------------------------
Having seen Richard Lynch write recently on this list: : There really were very, very, very few changes from PHP3 to PHP4, : considering it was a complete re-write of the engine. I think I am going to break down and ask for tips, tricks, etc, porting a php3 module to php4. This thing was written by someone else to be part of php-3.0.6 (!) and adds a few functions for accessing a specialized database to PHP. It was intended to live in the dl/ directory. What is it going to take to get this to work in ext/ or where- ever it should be for php4? Benjamin
Hello, Does anyone know how to outline text in GD? Thank you, -------------------------------------------- Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com --------------------------------------------
Hope this isn't too off-topic. [Background:] I'm developing a enterprise web development platform of sorts; the details aren't too important, but I'm looking for a way to keep this as general as possible. PHP is my embedded language of choice, and I'll develop the software in PHP first, but I'd first like to come up with a standardized API of sorts to interface with the database and provide (web developer) user functionality. This way, when I (or someone else) port the application to say, Perl or JSP (ColdFusion is just out! I think I'll make it a part of my license that it can never be ported to CF. :-) ), each implementation has a common interface. [Real question:] So, I've looked into using IDL (Java - CORBA) as a standardized way to define my API. This seems to be a decent way to do it -- although I have no need to use the CORBA functionality that it provides. I just need a standardized way to DEFINE my API . . . for reference mostly. Has anyone dealt with this? What do you use to do this? Or is there a standard technique used in the industry? Thanks in advance. Dean.
AS SEEN ON NATIONAL TV: Making over half million dollars every 4 to 5 months from your home for an investment of only $25 U.S. Dollars expense one time THANK'S TO THE COMPUTER AGE AND THE INTERNET ! ================================================== BE A MILLIONAIRE LIKE OTHERS WITHIN A YEAR!!! Before you say ''Bull'', please read the following. This is the letter you have been hearing about on the news lately. Due to the popularity of this letter on the Internet, a national weekly news program recently devoted an entire show to the investigation of this program described below, to see if it really can make people money. The show also investigated whether or not the program was legal. Their findings proved once and for all that there are ''absolutely NO Laws prohibiting the participation in the program and if people can -follow the simple instructions, they are bound to make some mega bucks with only $25 out of pocket cost''. DUE TO THE RECENT INCREASE OF POPULARITY & RESPECT THIS PROGRAM HAS ATTAINED, IT IS CURRENTLY WORKING BETTER THAN EVER. This is what one had to say: ''Thanks to this profitable opportunity. I was approached many times before but each time I passed on it. I am so gladI finally joined just to see what one could expect in return for the minimal effort and money required. To my astonishment, I received total $ 610,470.00 in 21 weeks, with money still coming in." Pam Hedland, Fort Lee, New Jersey. =================================================== Here is another testimonial: "This program has been around for a long time but I never believed in it. But one day when I received this again in the mail I decided to gamble my $25 on it. I followed the simple instructions and walaa ..... 3 weeks later the money started to come in. First month I only made $240.00 but the next 2 months after that I made a total of $290,000.00. So far, in the past 8 months by re-entering the program, I have made over $710,000.00 and I am playing it again. The key to success in this program is to follow the simple steps and NOT change anything.'' More testimonials later but first, ===== PRINT THIS NOW FOR YOUR FUTUREREFERENCE ====== $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ If you would like to make at least $500,000 every 4 to 5 months easily and comfortably, please read the following...THEN READ IT AGAIN and AGAIN!!! $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ FOLLOW THE SIMPLE INSTRUCTION BELOW AND YOUR FINANCIAL DREAMS WILL COME TRUE, GUARANTEED! INSTRUCTIONS: =====Order all 5 reports shown on the list below ===== For each report, send $5 CASH, THE NAME & NUMBER OF THE REPORT YOU ARE ORDERING and YOUR E-MAIL ADDRESS to the person whose name appears ON THAT LIST next to the report. MAKE SURE YOUR RETURN ADDRESS IS ON YOUR ENVELOPE TOP LEFT CORNER in case of any mail problems. === When you place your order, make sure you order each of the 5 reports. You will need all 5 reports so that you can save them on your computer and resell them. YOUR TOTAL COST $5 X 5=$25.00. Within a few days you will receive, vie e-mail, each of the 5 reports from these 5 different individuals. Save them on your computer so they will be accessible for you to send to the 1,000's of people who will order them from you. Also make a floppy of these reports and keep it on your desk in case something happen to your computer. IMPORTANT - DO NOT alter the names of the people who are listed next to each report, or their sequence on the list, in any way other than what is instructed below in step '' 1 through 6 '' or you will loose out on majority of your profits. Once you understand the way this works, you will also see how it does not work if you change it. Remember, this method has been tested, and if you alter, it will NOT work !!! People have tried to put their friends/relatives names on all five thinking they could get all the money. But it does not work this way. Believe us, we all have tried to be greedy and then nothing happened. So Do Not try to change anything other than what is instructed. Because if you do, it will not work for you. Remember, honesty reaps the reward!!! 1.... After you have ordered all 5 reports, take this advertisement and REMOVE the name & address of the person in REPORT # 5. This person has made it through the cycle and is no doubt counting their fortune. 2.... Move the name & address in REPORT # 4 down TO REPORT # 5. 3.... Move the name & address in REPORT # 3 down TO REPORT # 4. 4.... Move the name & address in REPORT # 2 down TO REPORT # 3. 5.... Move the name & address in REPORT # 1 down TO REPORT # 2 6.... Insert YOUR name & address in the REPORT # 1 Position. PLEASE MAKE SURE you copy every name & address ACCURATELY! ========================================================== **** Take this entire letter, with the modified list of names, and save it on your computer. DO NOT MAKE ANY OTHER CHANGES. Save this on a disk as well just in case if you loose any data. To assist you with marketing your business on the internet, the 5 reports you purchase will provide you with invaluable marketing information which includes how to send bulk e-mails legally, where to find thousands of free classified ads and much more. There are 2 Primary methods to get this venture going: METHOD # 1: BY SENDING BULK E-MAIL LEGALLY ========================================================== Let's say that you decide to start small, just to see how it goes, and we will assume You and those involved send out only 5,000 e-mails each. Let's also assume that the mailing receive only a 0.2% response (the response could be much better but lets just say it is only 0.2%. Also many people will send out hundreds of thousands e-mails instead of only 5,000 each). Continuing with this example, you send out only 5,000 e-mails. With a 0.2% response, that is only 10 orders for report # 1. Those 10 people responded by sending out 5,000 e-mail each for a total of 50,000. Out of those 50,000 e-mails only 0.2% responded with orders. That's=100 people responded and ordered Report # 2. Those 100 people mail out 5,000 e-mails each for a total of 500,000 e-mails. The 0.2% response to that is 1000 orders for Report # 3. Those 1000 people send out 5,000 e-mails each for a total of 5 million e-mails sent out. The 0.2% response to that is 10,000 orders for Report # 4. Those 10,000 people send out 5,000 e-mails each for a total of 50,000,000 (50 million) e-mails. The 0.2% response to that is 100,000 orders for Report # 5 THAT'S 100,000 ORDERS TIMES $5 EACH=$500,000.00 (half million). Your total income in this example is: 1..... $50 + 2..... $500 + 3..... $5,000 + 4 ... $50,000 + 5..... $500,000 ........ Grand Total=$555,550.00 NUMBERS DO NOT LIE. GET A PENCIL & PAPER AND FIGUREOUT THE WORST POSSIBLE RESPONSES AND NO MATTER HOW YOU CALCULATE IT, YOU WILL STILL MAKE A LOT OF MONEY ! ========================================================= REMEMBER FRIEND, THIS IS ASSUMING ONLY 10 PEOPLE ORDERING OUT OF 5,000 YOU MAILED TO. Dare to think for a moment what would happen if everyone or half or even one 4th of those people mailed 100,000e-mails each or more? There are over 150 million people on the Internet worldwide and counting. Believe me, many people will do just that, and more! METHOD # 2 : BY PLACING FREE ADS ON THE INTERNET ======================================================= Advertising on the net is very very inexpensive and there are hundreds of FREE places to advertise. Placing a lot of free ads on the Internet will easily get a larger response. We strongly suggest you start with Method # 1 and dd METHOD # 2 as you go along. For every $5 you receive, all you must do is e-mail them the Report they ordered. That's it. Always provide same day service on all orders. This will guarantee that the e-mail they send out, with your name and address on it, will be prompt because they can not advertise until they receivethe report. =========== AVAILABLE REPORTS ==================== ORDER EACH REPORT BY ITS NUMBER & NAME ONLY. Notes: Always send $5 cash (U.S. CURRENCY) for each Report. Checks NOT accepted. Make sure the cash is concealed by wrapping it in at least 2 sheets of paper. On one of those sheets of paper, Write the NUMBER & the NAME of the Report you are ordering, YOUR E-MAIL ADDRESS and your name and postal address. PLACE YOUR ORDER FOR THESE REPORTS NOW : ==================================================== REPORT# 1: The Insider's Guide to Advertising for Free on the Net Order Report #1 from: Ron Kidd P.O. Box 1833 West Chester, Oh 45071 USA ________________________________________________________ REPORT # 2: The Insider's Guide to Sending Bulk e-mail on the Net Order Report # 2 from: R. Gabriele PO Box 812 Holbrook, NY 11741 _________________________________________________________________ REPORT # 3: Secret to Multilevel marketing on the net Order Report # 3 from : Aaron Joseph P.O. BOX 21155 Columbia Heights, MN 55421 USA ____________________________________________________________ REPORT # 4: "How to Become a Millionaire Utilizing MLM & the Net" Order Report # 4 from: C.J. Kalata P.O. Box 130157 Roseville, MN 55113-0002 USA ____________________________________________________________ REPORT #5: "How to Send Out 0ne Million e-mails for Free" Order Report # 5 from: B. Taylor P.O.Box 26001 Fredericton, N.B. E3A 5V8 ____________________________________________________________ $$$$$$$$$ YOUR SUCCESS GUIDELINES $$$$$$$$$$$ Follow these guidelines to guarantee your success: === If you do not receive at least 10 orders for Report #1 within 2 weeks, continue sending e-mails until you do. === After you have received 10 orders, 2 to 3 weeks after that you should receive 100 orders or more for REPORT # 2. If you did not, continue advertising or sending e-mails until you do. === Once you have received 100 or more orders for Report # 2, YOU CAN RELAX, because the system is already working for you, and the cash will continue to roll in ! THIS IS IMPORTANT TO REMEMBER: Every time your name is moved down on the list, you are placed in front of a Different report. You can KEEP TRACK of your PROGRESS by watching which report people are ordering from you. IF YOU WANT TO GENERATE MORE INCOME SEND ANOTHER BATCH OF E-MAILS AND START THE WHOLE PROCESS AGAIN. There is NO LIMIT to the income you can generate from this business !!! ====================================================== FOLLOWING IS A NOTE FROM THE ORIGINATOR OF THIS PROGRAM: You have just received information that can give you financial freedom for the rest of your life, with NO RISK and JUST A LITTLE BIT OF EFFORT. You can make more money in the next few weeks and months than you have ever imagined. Follow the program EXACTLY AS INSTRUCTED. Do Not change it in any way. It works exceedingly well as it is now. Remember to e-mail a copy of this exciting report after you have put your name and address in Report #1 and moved others to #2 ...........# 5 as instructed above. One of the people you send this to may send out 100,000 or more e-mails and your name will be on every one of them. Remember though, the more you send out the more potential customers you will reach. So my friend, I have given you the ideas, information, materials and opportunity to become financially independent. IT IS UP TO YOU NOW ! ============ MORE TESTIMONIALS ================ "My name is Mitchell. My wife, Jody and I live in Chicago. I am an accountant with a major U.S. Corporation and I make pretty good money. When I received this program I grumbled to Jodyaboutreceiving ''junk mail''. I made fun of the whole thing,spoutingmy knowledge of the population and percentages involved. I ''knew'' it wouldn't work. Jody totally ignored my supposed intelligence and few days later she jumped in with both feet. I made merciless fun of her, and was ready to lay the old ''I told you so'' on her when the thing didn't work. Well, the laugh was on me! Within 3 weeks she had received 50 responses. Within the next 45 days she had received total $ 147,200.00 ........... all cash! I was shocked. I have joined Jody in her ''hobby''. Mitchell Wolf M.D., Chicago, Illinois ====================================================== ''Not being the gambling type, it took me several weeks to make up my mind to participate in this plan. But conservative that I am, I decided that the initial investment was so little that there was just no way that I wouldn't get enough orders to at least get my money back''. '' I was surprised when I found my medium size post office box crammed with orders. I made $319,210.00in the first 12 weeks. The nice thing about this deal is that it does not matter where people live. There simply isn't a better investment with a faster return and so big." Dan Sondstrom, Alberta, Canada ======================================================= ''I had received this program before. I deleted it, but later I wondered if I should have given it a try. Of course, I had no idea who to contact to get another copy, so I had to wait until I was e-mailed again by someone else.........11 months passed then it luckily came again...... I did not delete this one! I made more than $490,000 on my first try and all the money came within 22 weeks." Susan De Suza, New York, N.Y. ======================================================= ''It really is a great opportunity to make relatively easy money with little cost to you. I followed the simple instructions carefully and within 10 days the money started to come in. My first month I made $20,560.00 and by the end of third month my total cash count was $362,840.00. Life is beautiful, Thanx to internet.". Fred Dellaca, Westport, New Zealand ======================================================= ORDER YOUR REPORTS TODAY AND GET STARTED ON 'YOUR' ROAD TO FINANCIAL FREEDOM ! ======================================================= If you have any questions of the legality of this program, contact the Office of Associate Director for Marketing Practices, Federal Trade Commission, Bureau of Consumer Protection, Washington, D.C. To remove yourself from this mailing list, click the link below and type the word "REMOVE" in the subject line. mailto:[EMAIL PROTECTED]
On 2001-02-06, Hi Tech Services did say, > > AS SEEN ON NATIONAL TV: <snip> > PLACE YOUR ORDER FOR THESE REPORTS NOW : > ==================================================== > REPORT# 1: The Insider's Guide to Advertising for Free on the Net Can we _please_ get the full headers for this message? The list software seems to strip them right off. -- Sapere aude My mind not only wanders, it sometimes leaves completely.
Is there a way to call php functions in perl? or call perl functions from PHP codes? Thanks, David _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Greets, I am playing around with usort and an LDAP class. Basically, I want to sort the results of an LDAP search based on a specific criterion. class CLDAP { var $m_Entries; var $m_LinkIdentifier; ... function Connect() { ... } function Bind() { ... } function FindEntries($BaseDN, $Filter) { $ProcName="CLDAP::FindEntries"; $LDAPSearchResult=ldap_search($this->m_LinkIdentifier, "$BaseDN", "$Filter"); if($LDAPSearchResult) { $Entries=ldap_get_entries($this->m_LinkIdentifier, $LDAPSearchResult); if($Entries) { //print "$ProcName: Entries found for filter of $Filter<br>"; $this->m_Entries = $Entries; } else { // No entries //print "$ProcName: No entries found for filter of $Filter<br>"; } } } //************************* //* SORT CLASS MEMBERS //************************* function MySort() { $ProcName = "CLDAP::MySort"; // Sort the entries ; print "$ProcName: BEFORE: " . $this->m_Entries["count"] . "<br>"; usort($this->m_Entries, array($this,"cmp")); print "$ProcName: AFTER: " . $this->m_Entries["count"] . "<br>"; } function cmp ($a, $b) { $ProcName = "CLDAP:cmp"; print "$ProcName: IN COMPARE: " . $this->m_Entries["count"] . "<br>"; return strcmp($a["sn"],$b["sn"]); } } Now, with the above (hacked up) example, I create my LDAP object, connect to an LDAP server and retrieve values based on a DN and Filter. Essentially, I get a multi-dimensional array populated with the results from my LDAP filter, with key references to their attributes ("givenname" = first name, "sn" = last name, etc...). This works! I can populate my object property '$this->m_Entries' with my UNSORTED LDAP results. When I run the $LDAP->MySort() routine, '$this->m_Entries' has values BEFORE the usort function call, but has NULL entries AFTER the function call. '$this->cmp' has values each time it is called. Somehow, my data is being wiped out by usort after I return from '$this->cmp'. The above example is attempting to sort my LDAP results by "sn", or last name in LDAP-ese. What is happening here? Why is my array of results disappearing after the usort? I played with globals, and I even saved my array into a temp variable and used that instead. The temp variable is fine before the usort, but is totally gone after. Any help is appreciated! Cheers, Jason
I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben
sounds like your php script cannot write to the header, which means you'll have to set cookies (gasp!) client-side. there are some handy javascript cookie libraries that can make this much easier on you. such as: http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/ fear not the javascript. it is your friend. DanO -----Original Message----- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Error with Cookies and SSI I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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]
Yes, the project is a small stock ticker. The user creates an account, and selects their own stocks, their login name is stored in a cookie, so to view their own custom stock when they return to the page the script needs to read the cookie and pull up the users information. When I try to run the php script with a virtual SSI call, it executes just fine, but does not read the cookie variables. However, I know the cookies are being set because there is another portion of the script that is just a straight php page, and that page reads the cookie variables just fine. So they are getting set, but for some strange reason when the script is parsed as a SSI virtual include, it does not take the time to read the cookie and set the variables. Any idea why? This just seems weird to me, I'm guessing that the SSI call has something to do with it, but I don't understand why it would execute everything else without a hitch, but fail to read the cookie vars. -----Original Message----- From: DanO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 4:07 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Error with Cookies and SSI you could try exec cgi, but i can't say definitively that that will work. am i correct in interpreting that your php code is dependent upon READING cookies? DanO -----Original Message----- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 2:03 PM To: 'DanO' Subject: RE: [PHP] Error with Cookies and SSI The cookies do get set, but they are not read in and set when the script is executed as a SSI virtual include. Is there some way to force read the cookies? Or should I maybe try using something besides a virtual include with my SSI? i.e. soemthing along the lines of the exec-cgi SSI call? Ben -----Original Message----- From: DanO [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 3:03 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Error with Cookies and SSI sounds like your php script cannot write to the header, which means you'll have to set cookies (gasp!) client-side. there are some handy javascript cookie libraries that can make this much easier on you. such as: http://hotwired.lycos.com/webmonkey/javascript/code_library/wm_ckie_lib/ fear not the javascript. it is your friend. DanO -----Original Message----- From: Ben Wiechman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 12:57 PM To: [EMAIL PROTECTED] Subject: [PHP] Error with Cookies and SSI I am having a problem getting a php script to read a cookie that should be set. I have to incorporate the output of a php script into an existing page that uses SSI to do a virtual include of my php script. i.e. <!--#include virtual="script.php" --> Problem is, when I do this, the script does not set the cookie variables. If I just run the script the cookies are set, and read, correctly, but when I include the PHP script with the SSI call it does not read the cookie variables for some reason. Does anyone know a work-around for this? And using a std php script is not an option, I need a way to get this to work using SSI. Any help would be greatly appreciated. Thanks in advance, Ben -- 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 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]
http://freshmeat.net/projects/exist/ -----Original Message----- From: Thor M. Steindorsson [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 5:57 PM To: php-general; php-db Subject: [PHP-DB] PHP, MySQL and XML Does anyone have a solution for importing data from a RDF-XML file into a MySQL database? I've been racking my brain, as well as looking at tutorials and some xml parsers, but if someone has something like this it would save me tons of time. Thanks! -- PHP Database 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]
i figured a better way to do it.. ill just have to run a cron that check a flat file thats encrypted. <-----CoreComm-Internet-Services--http://core.com/-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org------------http://enthalpy.org/-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------> On Sat, 3 Feb 2001 [EMAIL PROTECTED] wrote: > enthalpy wrote: > > > > anyone have example code of a change password script in php? > > > > <-----CoreComm-Internet-Services--http://core.com/-----> > > (Jon Marshall CoreComm Services Chicago) > > ([EMAIL PROTECTED] Systems Engineer II) > > ([EMAIL PROTECTED] Network Operations) > > <-----Enthalpy.org------------http://enthalpy.org/-----> > > ([EMAIL PROTECTED] The World of Nothing) > > <------------------------------------------------------> > > > > -- > this is for freebsd - use at your own risk - > best used as a php shell script run by root > > > $newpassword = "veryinsecure"; > $fp = popen("/usr/sbin/pw usermod -n username -h passwd", "w"); > > fputs($fp, "$newpassword"); > pclose($fp) > > -- > 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] > >
Thanks for your help on this! Because the links that are on the HTML pages won't be determined by myself (and won't be encoded), I need to encode them when they are read by the script. All that I do is put the call to the php script onto the link. So what I tried to do is plugged the code below urlencode($url) right into the frame call itself. <frame name="textarea" src="<? echo $url=urlencode($url); ?>"> But of course that doesn't work because I'm still running into the 404 error. Can I encode the $url taken in from the browser then decode it in the output? Since I can't store the links in the script or in a database, the url won't be encoded. It works just fine if I link to ... frame.php?x=frame&url=http%3A%2F%2Fwww.mls.ca%2Fbin%2Furllink.exe%3Freq%3Dre altor%26x_aid%3D11111%26x_bid%3d0 but not frame.php?x=frame&url=http://www.mls.ca/bin/urllink.exe?req=realtor&x_aid=11 111&x_bid=0 Is there any way around this? Thanks again for your input! __________________ Jason Dulberg Extreme MTB http://extreme.nas.net > You can encode URLs with urlencode() and decode them by using > urldecode()... > > try read here: > > www.php.net/urlencode > www.php.net/urldecode > > > ### my way: > ### you pass $url: > > $url = www.maxim.cx/get.php?this=variables&as=many&as=you&what=want > echo "<a href=\"$PHP_SELF?url=".urlencode($url)."\">"; > > > ### and you catch it with: > > <? > tch($x){ > case "frame": > ?> > <frameset framespacing="0" border="0" frameborder="NO" rows="135,*"> > <frame name="top" src="header.shtml" marginwidth="0" > marginheight="0" scrolling="NO" noresize> > <frame name="textarea" src="<? echo urldecode($url); ?>"> > <? > break; > } > ?> > > > > Cheers, > Maxim Maletsky > > > > > > -----Original Message----- > From: Jason Dulberg [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 06, 2001 3:09 PM > To: [EMAIL PROTECTED] > Subject: [PHP] framing search results > > > I'd like to create a script that will frame search results made by various > databases. I will be hardcoding these links into an HTML page. Since there > will be alot of these links and I will be using the script across several > virtual hosts, I can't have the links built by a db as they link > to offsite > stuff. > > My problem so far is that if I try to link to a search result (which is > obviously built by a database), I get a bunch of errors because > the &, =, ? > etc. fields are dropped. So basically, I need to escape the ?,&'s etc. in > the url. I can do this in perl (cgi::escape) but I'm not quite sure how to > do it in php. Couldn't get it to work properly in perl so I'm > crossing over > to PHP to see if its doable. > > Here's what I got from a code example from zend.com. Basically, I > just need > to add the %3A etc onto $url. > > <? > switch($x){ > case "frame": > ?> > <frameset framespacing="0" border="0" frameborder="NO" rows="135,*"> > <frame name="top" src="header.shtml" marginwidth="0" > marginheight="0" scrolling="NO" noresize> > <frame name="textarea" src="<? echo $url; ?>"> > <? > break; > } > ?> > > Now one thing that I noticed is that often when the url is > encoded and I try > the link, I get a 404 error. What am I doing wrong? > > So the links that I hardcode into the html is something like > xyz.com/frame.php?page=searchresults.php or something like that. > > I'm really new to php so sorry if this is kinda vague. If there's a better > way of doing what I'm trying to above, please let me know! > > Thanks in advance for your help! > __________________ > Jason Dulberg > Extreme MTB > http://extreme.nas.net > > > -- > 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] >
I think I already know the answer to this question, but I just want to make certain. Is there a way that a class can know the name of the variable used to instantiate it? So if you do: $joeBob = new myClass(); "myClass" can somehow know that "joeBob" is the name of it's instance? I'm thinking 'no', but would like verification. Nothing I've been able to do has gotten this to work so that lends credence to my thinking, but again, I just want to be certain. Thanks! Chris
Hello everybody, I would like to ask you for some help with PHP. I am a newbie both to the list and to PHP. I try to learn from the books and manuals, but there are some things I do mnot understand and I can't read it anywhere in the books. Please take a moment and reply to my mail. I know that such problems as I have may seem lame to most of you, descent programmers, but I am really desperate to learn. Unfortunately I am not a programmer by profesion. Let me list the problems I have. 1. I registered my domain and I input the right DNs numbers. After I uploaded html file index.html onto the server, using ftp program, everything was fine. However, I also uploaded file called test.html. After I typed in my domain url address with /test.html the file was not working. What do I do wrong? 2. Now on with PHP... I tried to write php scripts inside html files... Simple scripts with <?php .... ?> Can I do that? Will it work? I think php program is installed on the server I am using, but the php seems not to work. What do I do wrong? 3. Now suppose I write a seperate php script as a seperate file, like test.php. How do I refer to it from html file in order to make the php script work? And can I start my web page directly with php? If so how? 4. What program or editor do you people use in order to simply "write" or "code" html and php? Till now I was using Netscape Composer for simple html editing. But I am sure there are some programming tools... I've heard there is something like JBuilder, but some friends of mine tell me it is too powerful tool. Do you agree? What programming tools would you recommend for me to code php? What programs do you use? 5. I would like to have a link on my web page that when I move my mouse cursor on it, it changes and becomes, for example, underlines or bold or changes color. How can I do that? How do I do that in php? 6. How can I refer to data base records? If I want to store date or get data and print it out... Is it only using cgi and FORM tags? Are there any other ways to do that? I would very much appreciate, if people like you, good programmers could help me and just reply to my points. Please elaborate, the more you write, teh better I can understand. It would mean a lot to me if someone could comment or 'enlighten' me. There are things I can't find in books and tutorials. Thank you and I await your replies. Jericho __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Answers are numbered according to questions. 1. Contact your hosting provider about this one. 2. Unless the webserver is instructed to let php handle html files, you cannot include php code within html. It has to be a php file so php can process it. 3. Again, contact your hosting provider and ask them to make index.php one of the default files for your web. 4. I use Cold Fusion Studio (the advanced version of Homesite), it rocks when coding, but since the wysiwyg in CFS sucks, I do that in Frontpage, then copy the html code to Homesite. However, I just got Dreamweaver 4 and it seems to combine all the features of those two and much more, so I'm gradually switching over. 5. Use javascript or stylesheets. 6. Go to php.net and mysql.com. Read their very fine documentation, and it should help you get started. PHP can accept variables both from form fields and in hyperlinks as well as cookies or databases or even textfiles. It's extraordinarily flexible and basically it comes down to what YOU want, and what you feel comfortable with. -----Original Message----- From: Jericho Barimen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 2:28 PM To: [EMAIL PROTECTED] Subject: [PHP] Questions about simple php problems Hello everybody, I would like to ask you for some help with PHP. I am a newbie both to the list and to PHP. I try to learn from the books and manuals, but there are some things I do mnot understand and I can't read it anywhere in the books. Please take a moment and reply to my mail. I know that such problems as I have may seem lame to most of you, descent programmers, but I am really desperate to learn. Unfortunately I am not a programmer by profesion. Let me list the problems I have. 1. I registered my domain and I input the right DNs numbers. After I uploaded html file index.html onto the server, using ftp program, everything was fine. However, I also uploaded file called test.html. After I typed in my domain url address with /test.html the file was not working. What do I do wrong? 2. Now on with PHP... I tried to write php scripts inside html files... Simple scripts with <?php .... ?> Can I do that? Will it work? I think php program is installed on the server I am using, but the php seems not to work. What do I do wrong? 3. Now suppose I write a seperate php script as a seperate file, like test.php. How do I refer to it from html file in order to make the php script work? And can I start my web page directly with php? If so how? 4. What program or editor do you people use in order to simply "write" or "code" html and php? Till now I was using Netscape Composer for simple html editing. But I am sure there are some programming tools... I've heard there is something like JBuilder, but some friends of mine tell me it is too powerful tool. Do you agree? What programming tools would you recommend for me to code php? What programs do you use? 5. I would like to have a link on my web page that when I move my mouse cursor on it, it changes and becomes, for example, underlines or bold or changes color. How can I do that? How do I do that in php? 6. How can I refer to data base records? If I want to store date or get data and print it out... Is it only using cgi and FORM tags? Are there any other ways to do that? I would very much appreciate, if people like you, good programmers could help me and just reply to my points. Please elaborate, the more you write, teh better I can understand. It would mean a lot to me if someone could comment or 'enlighten' me. There are things I can't find in books and tutorials. Thank you and I await your replies. Jericho __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ -- 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]
> >I think it's just "test.html", although I am not 100% >sure. I will check that. Maybe this is the reason... I hit this early on too. I write my code on a windows machine, and upload it using cute-ftp to the server, which is linux. I started out trying to make files like "file.ext" on windows, but windows "helps" by capitalizing the first letter for you. The results on upload were inconsistent, sometimes it ended up as "file.ext" and sometimes as "File.ext" I've settled on a capitalization scheme that seems to satisfy both systems, that files are always of the form "File.ext" When I upload and download in this form, then it stays the same. One exception, on the main page, I have "index.html" which is simply a copy of "Index.php" renamed. This is so that requests to www.server.org/ will come up correctly. Probably there's a place to fix that in apache, but I haven't gone after it yet. >I will try that. What does phpinfo() function does? >Will it return on the screen the info if my server >supports php? Yes, and it tells you what sort of information you can use through internal variables. A good page to keep hanging around for those "can I do.." questions. > > >3. Now suppose I write a seperate php script as a > > >seperate file, like test.php. How do I refer to it > > >from html file in order to make the php script > > work? > > >And can I start my web page directly with php? If > > so > > >how? > > > > (In index.html) > > <A HREF ="test2.html"> Try the test thing </A> > >??? I don't understand it. You refer to another html >file... Will it make a php script work??? How? Sorry, I wasn't clear. On a properly configured server, you can have .html files with and without php code inside, and .php files as well. Basically, the server figures it out :) >Correct me if I am wrong, but I think the following >will make a link to another html file... Yes. The idea was that the second file could be pure html, or Php that generates html. Here's what my normal "Index.php" looks like. <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta name="description" content="The main page"> <meta name="GENERATOR" content="Notepad"> <? include($DOCUMENT_ROOT . "/headmeta.inc")?> <title>Page Title.</title> <link REL="SHORTCUT ICON" href="favicon.ico"> </HEAD> <? include ("Header.inc")?> <? include("Index.inc") ?> <? include($DOCUMENT_ROOT . "/Footer.inc") ?> <? include($DOCUMENT_ROOT . "/Do_webtrends.php") ?> </body> </html> The body of the page is in "Index.inc". Headmeta, Header, and Footer are the "structure" of the page, in this case using HTML forms. Do_webtrends is actually a java script, that tracks users for me. This is a little tricky to get right, but in the end, pages take only minutes to create, since all you do is copy and rename Index.php to Newpage.php, and put the content in Newpage.inc. You have to change only one line in Newpage, so that it includes Newpage.inc rather than Index.inc. Probably some clever person will pipe up and show us how not to have to change that line :) >Really? Than how can you save a php file with php >extension? Do you save in .txt and rename? Or do >something else?... File, Save as, Index.php No problem. >What do you mean by "mouseover"? >Can it be actually done with CSS? When your mouse is over this area, do something. Web search on "mouseover" and "java" As to CSS, probably so, but don't ask me. :) >Yes, I know some of my questions may seem 'bizarre' to >you. That's because I try very much to learn and many >things confuse me... I'm not a programmer... and I try >to learn. I went through this starting Xmas eve in 1999. By Feb 2000, I had a server online. Between then, I taught myself the essentials of Linux, Apache, PHP, and MySQL. (With of course a lot of help from groups like this one.) It wasn't great, and I've made a lot of progress since then, but it was up and running! -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
> >Here's what my normal "Index.php" looks like. > ><? include($DOCUMENT_ROOT . "/headmeta.inc")?> <? include ("Header.inc")?> ><? include("Index.inc") ?> <? include($DOCUMENT_ROOT . "/Footer.inc") ?> ><? include($DOCUMENT_ROOT . "/Do_webtrends.php") ?> Well.. the mailing list munged it.. I can email you a copy if you're interested. -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
Just a thanks to everyone on this list, for being helpful, and for being tolerant. It seems it's a rare thing these days. Just thought I'd let you guys know, that back when I was learning PHP (i'm a bit of an old hat by now), this list really helped me out, so now I'm try to contribute as much as possible, although that doesn't seem like too much sometimes :) Cheers, Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering.
Any of you guys care to enlighten this fellow any further than me? Please reply to the list, not me :) Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. ----- Original Message ----- From: "Jericho Barimen" <[EMAIL PROTECTED]> To: "Josh G" <[EMAIL PROTECTED]> Sent: Wednesday, February 07, 2001 9:39 AM Subject: Re: Just a thanks [snip] > Hello everybody, > > I would like to ask you for some help with PHP. I am a > newbie both to the list and to PHP. I try to learn > from the books and manuals, but there are some things > I do mnot understand and I can't read it anywhere > inthe books. > > Please take a moment and reply to my mail. I know that > such problems as I have may seem lame to most of you, > descent programmers, but I am really desperate to > learn. Unfortunately I am not a programmer > byprofesion. > > Let me list the problems I have. > > 1. I registered my domain and I input the right DNs > numbers. After I uploaded html file index.html onto > the server, using ftp program, everything was fine. > However, I also uploaded file called test.html. After > I typed in my domain url address with /test.html the > file was not working. What do I do wrong? Sounds like an installation problem, I can't really help there. I follow the instructions, and if they fail I'm usually stuffed ;-) > > 2. Now on with PHP... I tried to write php scripts > inside html files... Simple scripts with <?php .... ?> > Can I do that? Will it work? I think php program is > installed on the server I am using, but the php seems > not to work. What do I do wrong? Should work, don't know the problem. Try having a script called test.php that consists only of <?php phpinfo(); ?> then point your browser at http://yourdomain.com/test.php and see what happens. > 3. Now suppose I write a seperate php script as a > seperate file, like test.php. How do I refer to it > from html file in order to make the php script work? > And can I start my web page directly with php? If > sohow? Not sure I understand the question. You just need links to the pages as if they were ordinary html. Or you can access one script from another by using include(); I think you need to read through the first few sections of the php manual, at http://www.php.net/ as it covers a lot of these issues. > 4. What program or editor do you people use in order > to simply "write" or "code" html and php? Till now I > was using Netscape Composer for simple html editing. > But I am sure there are some programming tools... I've > heard there is something like JBuilder, but some > friends of mine tell me it is too powerful tool. Do > you agree? What programming tools would you recommend > for me to code php? What programs do you use? Oh no! This here is a religious issue, get's asked every few days, and there's no answer. Use whatever you like. Some peope love vi and emacs (unix), some love homesite, textpad, or (myself included) ultraedit on windows. > 5. I would like to have a link on my web page that > when I move my mouse cursor on it, it changes and > becomes, for example, underlines or bold or changes > color. How can I do that? How do I do that in php? This is more a html problem thant a php problem, but you need to use stylesheets... here's an example, paste it into a html page and play around with it... <html> <head> <style type="text/css"> <!-- a {color:blue; text-decoration:none; } a:hover {color:#ff8080; text-decoration:underline; } --></style> </script> </head> <body> <a href="foo.html">this will change colour in explorer</a>. </body> </html> > 6. How can I refer to data base records? If I want to > store date or get data and print it out... Is it only > using cgi and FORM tags? Are there any other ways todo > that? This one's a biggie... Methinks you should master some of the simplre things first, then ask this one by itself ;-) Another tip... The more specific the question, the better, longer answers you'll recieve. > I would very much appreciate, if people like you, good > programmers could help me and just reply to my points. > Please elaborate, the more you write, teh better I can > understand. It would mean a lot to me if someone could > comment or 'enlighten' me. There are things I can't > find in books and tutorials. > > Thank you and I await your replies. > > Jericho >
--- Josh G <[EMAIL PROTECTED]> wrote: > Any of you guys care to enlighten this fellow any > further than me? Thank you for your reply. It helps a lot. Thanks to everyone who took this effort to reply to me. I just try to learn and taklking to experienced people seems a good wayto learn. > Please reply to the list, not me :) OK. > > Hello everybody, > > > > I would like to ask you for some help with PHP. I > am a > > newbie both to the list and to PHP. I try to learn > > from the books and manuals, but there are some > things > > I do mnot understand and I can't read it anywhere > > inthe books. > > > > Please take a moment and reply to my mail. I know > that > > such problems as I have may seem lame to most of > you, > > descent programmers, but I am really desperate to > > learn. Unfortunately I am not a programmer > > byprofesion. > > > > Let me list the problems I have. > > > > 1. I registered my domain and I input the right > DNs > > numbers. After I uploaded html file index.html > onto > > the server, using ftp program, everything was > fine. > > However, I also uploaded file called test.html. > After > > I typed in my domain url address with /test.html > the > > file was not working. What do I do wrong? > > Sounds like an installation problem, I can't really > help > there. I follow the instructions, and if they fail > I'm usually > stuffed ;-) No idea what may be wrong... I will try a couple of times more, maybe there is a solution and reason why server returns with an error message. > > > > 2. Now on with PHP... I tried to write php scripts > > inside html files... Simple scripts with <?php > .... ?> > > Can I do that? Will it work? I think php program > is > > installed on the server I am using, but the php > seems > > not to work. What do I do wrong? > > Should work, don't know the problem. Try having a > script called test.php that consists only of > > <?php phpinfo(); ?> What will phpinfo() return with? Will it be information if the server can support php? > then point your browser at > http://yourdomain.com/test.php > and see what happens. I will try that. Thanks, it seems a good test. > > 3. Now suppose I write a seperate php script as a > > seperate file, like test.php. How do I refer to it > > from html file in order to make the php script > work? > > And can I start my web page directly with php? If > > sohow? > > Not sure I understand the question. You just need > links > to the pages as if they were ordinary html. Suppose I have index.html and I have test.php... If I type in my browser http://mydomain.com/ I get the result of index.html. How can I make a php file work? Can I make a link or something? Or if I just want php script to work within a htmp file? How can I do that? Or you > can > access one script from another by using include(); Aha... So if I have index.html, I can execute the contents of test.php by writing: include(test.php) within html file code? Is that correct? > I think you need to read through the first few > sections of > the php manual, at http://www.php.net/ as it covers > a lot > of these issues. I will 'dig' deeper, thanks for the suggestion. You mean php tutorial they have at www.php.net? Right? > > 4. What program or editor do you people use in > order > > to simply "write" or "code" html and php? Till now > I > > was using Netscape Composer for simple html > editing. > > But I am sure there are some programming tools... > I've > > heard there is something like JBuilder, but some > > friends of mine tell me it is too powerful tool. > Do > > you agree? What programming tools would you > recommend > > for me to code php? What programs do you use? > > Oh no! This here is a religious issue, get's asked > every few > days, and there's no answer. Use whatever you like. So far I use nothing for php. I would like to write somethign in php... I would like to see the result of even very simple script, like "Hello, this is me." > Some > peope love vi and emacs (unix), some love homesite, > textpad, > or (myself included) ultraedit on windows. Do you think I could use Notepad? Just to start with? And if so, how do I save for .php extension? > > 5. I would like to have a link on my web page that > > when I move my mouse cursor on it, it changes and > > becomes, for example, underlines or bold or > changes > > color. How can I do that? How do I do that in php? > > This is more a html problem thant a php problem, but > you > need to use stylesheets... here's an example, paste > it into > a html page and play around with it... Geee, thanks for this sample... I will test it for sure. > <html> > <head> > <style type="text/css"> > <!-- > > a {color:blue; text-decoration:none; } > a:hover {color:#ff8080; > text-decoration:underline; } > > --></style> > </script> > </head> > <body> > <a href="foo.html">this will change colour in > explorer</a>. > </body> > </html> Thank you. Now I need to test it a little... and see the results. Thanks for providing this sample. > > 6. How can I refer to data base records? If I want > to > > store date or get data and print it out... Is it > only > > using cgi and FORM tags? Are there any other ways > todo > > that? > > This one's a biggie... I know... :-( Methinks you should master > some of > the simplre things first, then ask this one by > itself ;-) Good suggestion... Some of my questions may seem 'odd', but I simply want to learn and ask... Thank you for your patience... > Another tip... The more specific the question, the > better, > longer answers you'll recieve. Sure... I will try to be more specific. > > I would very much appreciate, if people like you, > good > > programmers could help me and just reply to my > points. > > Please elaborate, the more you write, teh better I > can > > understand. It would mean a lot to me if someone > could > > comment or 'enlighten' me. There are things I > can't > > find in books and tutorials. > > > > Thank you and I await your replies. > > > > Jericho > > > > > > -- > 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] > __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
Hello, What is the best way to encrypt/decrypt strings when passing between php pages? I am using md5 and currently get strings that produce "unprintable" characters or characters like slashes or other things that could interfere with the passing between php pages. (e.g. http://server.asdf/action.php?args=encryptedstring ) e.g. 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b versus something like: fdsay98fdsa25ht4636ussd9fg3245ijrg9u341271234hjas897rewq I really would like to restrict everything to 0-9,a-z,A-Z characters so the encrypted string is "friendly" :-) Thanks Dan
> >e.g. >5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b Something else is "helping" you. MD5 output does not look like that. MD5 is 32 hex chars, 0-9 and a-f I have not tried passing MD5 values out to the browser though, it may be the browser "helping". I use MD5 extensively on my spamwhack site. Hard to demo though, it's all transparent to the user, except when queries come in using wget, where they are sending me MD5 data. That works fine too, leading me even more to suspect that the broswser is getting in the way. -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
I've run into this befor run base64_encode() on the string befor you pass it around then base64_decode() after you get it where its going. - James > Hello, > > What is the best way to encrypt/decrypt strings when passing between php > pages? > > I am using md5 and currently get strings that produce "unprintable" > characters > or characters like slashes or other things that could interfere with the > passing > between php pages. (e.g. > http://server.asdf/action.php?args=encryptedstring ) > > e.g. > 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b > > versus > > something like: > fdsay98fdsa25ht4636ussd9fg3245ijrg9u341271234hjas897rewq > > I really would like to restrict everything to 0-9,a-z,A-Z characters so > the encrypted string is "friendly" :-) > > Thanks > Dan
Dan Harrington wrote: > What is the best way to encrypt/decrypt strings when passing between > php pages? If your encryption is meant to be anything near secure, there is only one way: DON'T GET or POST-Parameters are for user-input. Handing information over to the client and taking it back later is a potential security leak. If you have no means of revalidating the information after it crossed the so called trust boundary, you should't do it. Send a handler, some random and unique (nothing like 1,2,3 or a,b,c) identifier and store the critical information in a session variable or somewhere else. > I am using md5 and currently get strings that produce "unprintable" > characters > or characters like slashes or other things that could interfere with > the passing > between php pages. (e.g. > http://server.asdf/action.php?args=encryptedstring ) > > e.g. > 5V"g\7`Qv1Sc]aV&Q4a6#bW>SbU!f_4V1QvPaUe 5Q!c b Just urlencode() these strings before adding them to the URL. regards Wagner -- Three may keep a secret, if two of them are dead.
> >GET or POST-Parameters are for user-input. Handing information over to the >client and taking it back later is a potential security leak. If you have >no means of revalidating the information after it crossed the so called >trust boundary, you should't do it. >Send a handler, some random and unique (nothing like 1,2,3 or a,b,c) >identifier and store the critical information in a session variable or >somewhere else. In spamwhack, I have secure access using this technique. On login I pass you a cookie (10 digit random number, base 16) store the cookie in the database marked invalid, and take your username and password. On submit, I check the username and password against the database, also the originating IP address, to see if it's in-range for that account. If so, I mark the db entry valid. When you pull up the next page, you get a new random cookie, which is also invalid. I take the cookie you gave me, check against the database. If it matches, and the IP address is still the same, then I mark the new one valid. This happens for every page access in the secure area. You have to hand me the right cookie value, and each cookie is only good for one page. I refresh the same cookie, so as not to fill up the jar impolitely. It's not as complicated as it sounds. The idea is that you can steal a cookie value, but it won't help you, since you'll be from a different IP. If you can grab the cookie value, and forge the IP address, then you can hijack the session. It's never happened yet. Other fun: On login, after a couple tries, the script goes into a mode where even the correct password will be rejected. It also sends emails to me, and to the account holder, that someone is messing with it. I put a randomised delay in the passord script as well, so that it's not obvious wether you're being accepted or rejected until the script finishes, so as to foil automated attempts to speed up a dictionary attack. There's more, but.... :) -- Dave's Engineering Page: http://www.dvanhorn.org Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9
> If your encryption is meant to be anything near secure, there is only > one way: > DON'T Well, this is true. I kinda just want to be able to pass things back and forth without giving the average user the ability to even have a clue as to what I am doing. If they can't see, they will have less likely the ability to hack. I mainly am talking about things like passing variables between sequential pages in an image gallery, nothing too personal :-) I eventually do want to get into credit card processing, but that is down the road a while, and probably am just going to go with a payflow pro or some other turn-key solution. > Just urlencode() these strings before adding them to the URL. Thanks! Dan
Cold Fusion has a wonderful function called CreateODBCDate(), which takes as an argument any date in just about any format and returns a standard ODBC date format that you can plug into a database without worrying about conversion. Does PHP have a similar function? I've looked for one but can't seem to find it anywhere. -- Richard Crawford (mailto:[EMAIL PROTECTED]) http://www.mossroot.com AIM Handle: Buffalo2K "Tomorrow, we'll seize the day and throttle it!" -Calvin
At 3:04 PM -0800 2/6/01, Richard Scott Crawford wrote: >Cold Fusion has a wonderful function called CreateODBCDate(), which >takes as an argument any date in just about any format and returns a >standard ODBC date format that you can plug into a database without >worrying about conversion. > >Does PHP have a similar function? I've looked for one but can't >seem to find it anywhere. From http://www.php.net/manual/en/function.strtotime.php - "strtotime - Parse about any english textual datetime description into a UNIX timestamp" If the ODBC timestamp looks like yyyy-mm-dd hh:mm:ss then you could do: $Date = '1 jan 2001'; ODBCDate = date('Y-m-d H:i:s', strtotime($Date)); And if you really want, just define the function function CreateODBCDate($DateString) { return date('Y-m-d H:i:s', strtotime($DateString)); } and you can ease your CF-PHP transition :) If you want to default to returning the current date: function CreateODBCDate($DateString='') { return ( $DateString ? date('Y-m-d H:i:s', strtotime($DateString)) : date('Y-m-d H:i:s') ); } Sorry about the weird indent style --- I was trying to avoid wordwrapping. It doesn't specify in the docs, but I _assume_ strtotime() returns false if it can't figure out what the date string is...you might want to test that. - steve >-- >Richard Crawford (mailto:[EMAIL PROTECTED]) >http://www.mossroot.com AIM Handle: Buffalo2K >"Tomorrow, we'll seize the day and throttle it!" -Calvin -- +--- "They've got a cherry pie there, that'll kill ya" ------------------+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-------------------------------------- FBI Special Agent Dale Cooper ---+
I was wondering if anyone around knows of a tool (free if possible) to index all the pages of my website and implement a search engine. I prefer it to run on NT. THNKS!! Diego Fulgueira.
"Shawn J. Wallace" wrote: > That sounds excellent. So if I understand you correctly, I could run > Apache with JServ (or Tomcat) and build PHP into it to get a nice > solution. I could then write servlets that call PHP scripts/functions and > vice versa? You betcha. Alex
Zhu George-CZZ010, There is an LDAP extension in PHP. Check the manual. Alex
I'm having trouble creating a php file. I've tried to explain it to the peeps in IRC but am having trouble. It'll be easier to paste my code: ... $result2 = mysql_query("INSERT INTO winLoss(login, pass) VALUES('$login', '$pass')"); if($result2) { $fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext", "w"); fwrite($fp, "<?php $result = mysql_query("SELECT * from winLoss WHERE login='$login' AND pass='$pass'"); ?> <html> <head> <title>$screen_name</title> </head>")......... Ive ommited the redundant things. Basicly it just creates this: SELECT * from winLoss WHERE login='' I need that value in there. Any ideas? Thank you (sorry about the repost) Dusten
there are a few errors in here. number one being this. echo "... mysql_query("SELECT ..."; do you see it? youve got the " in the middle there, that is ending your " " section, not what you wanted right. second too is the fact anything in " " will be evaluated, anything in ' ' will not. fwrite($fp, '<?php $result = mysql_query("SELECT * ... "); ?> <html> ... </html>'); In the future I find if your having a problem with a string, echo it to the screen, see what happens. Got a question for you, what is this next page for? im curious why you are opting todo this this way. are you trying to get around sending variables through POST/GET/COOKIES ? I would highly recommed sessions if this is your idea. Speed and Easy of use will be greatly increased. Please respond back with your answer, Im curious. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] ""Dusten"" <[EMAIL PROTECTED]> wrote in message 95q1bv$ekv$[EMAIL PROTECTED]">news:95q1bv$ekv$[EMAIL PROTECTED]... > I'm having trouble creating a php file. I've tried to explain it to the > peeps in IRC but am having trouble. It'll be easier to paste my code: > ... > $result2 = mysql_query("INSERT INTO winLoss(login, pass) > VALUES('$login', '$pass')"); > > if($result2) > { > $fp = fopen ("/home2/colorado/public_html/profiles/$screen_name$ext", > "w"); > fwrite($fp, "<?php > $result = mysql_query("SELECT * from winLoss WHERE > login='$login' AND pass='$pass'"); > ?> > > <html> > <head> > <title>$screen_name</title> > </head>")......... > > Ive ommited the redundant things. Basicly it just creates this: SELECT * > from winLoss WHERE login='' I need that value in there. Any ideas? > > Thank you (sorry about the repost) > Dusten > > > > > -- > 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] >
Hi, Is it possible to access IO ports with PHP, specifically the parallel port. I would like to do this with php, not printing functions, but access to the port, like being able to control LED's, etc. I didn't see any functions in php for that so I think I probably have to use C or something. Chris.
Guys, Thousand blessings for all the help I got from all of you. There are still lots of thinsg I do not understand, but I learnt a LOT tonight. You won't believe it... I was stuck reading the boring tutorials and books and fed up. After all your great help, I have just created a very very simple php file, which WORKS!!! My first one! And my test.html file also works now thanks to your support. My first php file works!!! Now I can get back to all the books and keep learning more... I will be happy to talk to you more, if you have patience for me. I will read all your great replies... You guys are just wonderfull! I felt completely at a loss, now I am back on my track... Jericho __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/
How do you write a function that takes an array as an argument? Could someone please point me at an example? Regards, Jaxon
On Wed, 7 Feb 2001 11:30, Jaxon wrote: > How do you write a function that takes an array as an argument? > > Could someone please point me at an example? > > Regards, > Jaxon Try this: <?php function show_elements($ary) { while(list($key,$val) = each($ary)) { echo "$key => $val<BR>"; } } $fruits=array("a"=>"apple","b"=>"banana","c"=>"cucumber","d"=>"apricot",); show_elements($fruits); ?> That's pretty much plagiarised from the array functions in the manual :-) -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
anyone have example code for randomly grabing an item from a mysql table? <-----CoreComm-Internet-Services--http://core.com/-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org------------http://enthalpy.org/-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------>
On Wed, 7 Feb 2001 11:28, enthalpy wrote: > anyone have example code for randomly grabing an item from a mysql table? > Mysql 3.23 will let you order by RAND() and you could use a LIMIT to restrict to one result. I haven't tried it, though. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
i use mysql to store urls for all my images and have php query that for the images. is there an easy way to set it up so it does 5 at a time and has a lil next 5 link at the bottom.. the entriees in the table are not numbered. <-----CoreComm-Internet-Services--http://core.com/-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org------------http://enthalpy.org/-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------>
enthalpy wrote: > > i use mysql to store urls for all my images and have php query that for > the images. is there an easy way to set it up so it does 5 at a time and > has a lil next 5 link at the bottom.. the entriees in the table are not > numbered. Append your SQL query with LIMIT $edge, $limit"; ie "SELECT blah from stuff LIMIT 0,5"; select the first ten images. The next ten would be as such "SELECT blah from stuff LIMIT 5,5"; For a link to the next 5, or previous 5 for example..do something like this: # Prints the previous 5 (if they exist!) if($edge >= $limit) { $edge = $edge - $limit; echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> Previous Ten</a>"; } # Prints the next 5.. $edge = $edge + $limit; if($count > $edge) { echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> next Ten</a>"; } Sorry its a bit rough :) Hope you get the general idea :) ^^@rk << If I was a signature file, where would I be?? >>
Boy my syntax on that one sure was rough... think I need another coffee! Hope you get the idea thou, Limit is really useful for moving through large queries ;] Mark Green wrote: > > enthalpy wrote: > > > > i use mysql to store urls for all my images and have php query that for > > the images. is there an easy way to set it up so it does 5 at a time and > > has a lil next 5 link at the bottom.. the entriees in the table are not > > numbered. > > Append your SQL query with LIMIT $edge, $limit"; > > ie "SELECT blah from stuff LIMIT 0,5"; > > select the first ten images. > The next ten would be as such > > "SELECT blah from stuff LIMIT 5,5"; > > For a link to the next 5, or previous 5 for example..do something like this: > > # Prints the previous 5 (if they exist!) > if($edge >= $limit) { > $edge = $edge - $limit; > echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> > Previous Ten</a>"; > } > > # Prints the next 5.. > $edge = $edge + $limit; > if($count > $edge) { > echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> > next Ten</a>"; > } > > Sorry its a bit rough :) > Hope you get the general idea :) > > ^^@rk > << If I was a signature file, where would I be?? >> > > -- > 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] -- << If I was a signature file, where would I be?? >>
well that should do it for me i already have all the code i was unaware that there was a limit command.. i should be able to do something like url.php?limit=0,5 or something like that <-----CoreComm-Internet-Services--http://core.com/-----> (Jon Marshall CoreComm Services Chicago) ([EMAIL PROTECTED] Systems Engineer II) ([EMAIL PROTECTED] Network Operations) <-----Enthalpy.org------------http://enthalpy.org/-----> ([EMAIL PROTECTED] The World of Nothing) <------------------------------------------------------> On Wed, 7 Feb 2001, Mark Green wrote: > enthalpy wrote: > > > > i use mysql to store urls for all my images and have php query that for > > the images. is there an easy way to set it up so it does 5 at a time and > > has a lil next 5 link at the bottom.. the entriees in the table are not > > numbered. > > > > Append your SQL query with LIMIT $edge, $limit"; > > ie "SELECT blah from stuff LIMIT 0,5"; > > select the first ten images. > The next ten would be as such > > "SELECT blah from stuff LIMIT 5,5"; > > For a link to the next 5, or previous 5 for example..do something like this: > > # Prints the previous 5 (if they exist!) > if($edge >= $limit) { > $edge = $edge - $limit; > echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> > Previous Ten</a>"; > } > > # Prints the next 5.. > $edge = $edge + $limit; > if($count > $edge) { > echo "<a href=\"http://blah/script.php?limit=$limit&edge=$edge"> > next Ten</a>"; > } > > Sorry its a bit rough :) > Hope you get the general idea :) > > ^^@rk > << If I was a signature file, where would I be?? >> >
test.xml <results> <match> <count>1</count> <name>:PHatCat</name> <link>http://freshmeat.net/projects/phatcat/</link> <description>A PHP CueCat Decoder.</description> <date>Oct 9th 2000</date> <category>Web/Applications</category> <license>GPL</license> </match> <match> <count>2</count> <name>About Me</name> <link>http://freshmeat.net/projects/aboutme/</link> <description>A system for recording/sharing preferences</description> <date>Apr 18th 2000</date> <category>Web/Tools</category> <license>GPL</license> </match> </results> test.xsl <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" encoding="utf-8" /> <xsl:template match="/results"> <html><head><title>XSLT Freshmeat Demo</title></head> <body bgcolor="#FFFFFF"> <table> <xsl:call-template name="matches"/> </table> </body></html> </xsl:template> <xsl:template name="matches"> <xsl:for-each select="match"> <tr> <td><xsl:value-of select="count"/></td> <td><a href="{link}"><xsl:value-of select="name"/></a></td> <td><xsl:value-of select="description"/></td> <td><xsl:value-of select="date"/></td> <td><xsl:value-of select="license"/></td> </tr> </xsl:for-each> </xsl:template> </xsl:stylesheet> test.php <?php $parser = xslt_create(); xslt_run($parser, './test.xsl', './test.xml'); echo xslt_fetch_result($parser); xslt_free($parser); ?> Fatal error: msgtype: error in /home/httpd/vhosts/mediawaveonline/test/xslt.php on line 4 I am *very* new to both xml and xsl but this interests me greatly, please help if you could. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED]
In my experience this is caused by an error in your .xsl... not exactly the most verbose error so I don't know what's actually happening here. -jm -----Original Message----- From: Chris Lee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 5:34 PM To: [EMAIL PROTECTED] Subject: [PHP] XSLT problems.... test.xml <results> <match> <count>1</count> <name>:PHatCat</name> <link>http://freshmeat.net/projects/phatcat/</link> <description>A PHP CueCat Decoder.</description> <date>Oct 9th 2000</date> <category>Web/Applications</category> <license>GPL</license> </match> <match> <count>2</count> <name>About Me</name> <link>http://freshmeat.net/projects/aboutme/</link> <description>A system for recording/sharing preferences</description> <date>Apr 18th 2000</date> <category>Web/Tools</category> <license>GPL</license> </match> </results> test.xsl <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" encoding="utf-8" /> <xsl:template match="/results"> <html><head><title>XSLT Freshmeat Demo</title></head> <body bgcolor="#FFFFFF"> <table> <xsl:call-template name="matches"/> </table> </body></html> </xsl:template> <xsl:template name="matches"> <xsl:for-each select="match"> <tr> <td><xsl:value-of select="count"/></td> <td><a href="{link}"><xsl:value-of select="name"/></a></td> <td><xsl:value-of select="description"/></td> <td><xsl:value-of select="date"/></td> <td><xsl:value-of select="license"/></td> </tr> </xsl:for-each> </xsl:template> </xsl:stylesheet> test.php <?php $parser = xslt_create(); xslt_run($parser, './test.xsl', './test.xml'); echo xslt_fetch_result($parser); xslt_free($parser); ?> Fatal error: msgtype: error in /home/httpd/vhosts/mediawaveonline/test/xslt.php on line 4 I am *very* new to both xml and xsl but this interests me greatly, please help if you could. -- Chris Lee Mediawaveonline.com [EMAIL PROTECTED] -- 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]
Is there any way in straight HTML to get the page referred from and make a link out of it? Or is scripting languages, like my favorite, PHP, the only way to do that? -- ________________________________________________________________ Sites by friends of mine: http://www.myhiddentreasures.com/ ________________________________________________________________ ---------W-A-R-N-I-N-G -personal-propaganda-signature---------- ---------->>TAKE WHAT YOU LIKE AND LEAVE THE REST<<------------ >>>>SINCE OUR GOVERNMENT WON'T PRESERVE OUR CLIMATE, IT'S UP TO US! Imagine ** yourself ** and your kids now an endangered species <1>Inflate automobile tires to near maximum in summer, -2psi in winter <2>add insulation to house and hot water heater, and refrigerator, <3>combine trips in cars, make less of them <4>buy cars, sports vehicles and recreational vehicles with good if not best mileage <4>put awnings over windows is summer, remove in winter. <5> add solar hot water heating. <6>Push for energy recycling clothes dryers <7> walk more, play outside with your kids! <8> let your grass grow to 3-4 inches, chokes weeds, saves water and energy, keeps house cooler <9> Put WHITE or REFLECTIVE materials on roofs to send energy back into space. <10> Vote for burial of logging slash onsite in logging areas for better watersheds and less burned vegetation. <11> compost your leaves and grass, bury in flower beds, lawns, gardens, or give away. <12> VOTE for energy and CO2 ratings on ALL products and foods. KNOW how much damage your purchases do to the climate. <13> Give your kids less stuff and more of you. <14> recycle everything you can <15> limit your children to an average 1 per adult between all your marriages. (Only REPLACE yourself, not expand the population)
Hi there,... i had make a web interface to send announcement mail to my customers,..rite now i had about 500 once I send mail to my customers my server hang ( i guess to much open file)...i complie by kernel again to get a big descriptor, but still worried about the hang problem....i put a delay in my program so it send a mail and delay in x time, but i get a web error and my mail stop sending in my customer number 300 sorry for the broken english can any one help me with this kind of problem... i get my customer from mysql table, using freebsd4.1 and php4 Yamin Prabudy
How can I ensure that a file is transferred in ascii mode using the following: <form enctype="multipart/form-data" method="post" action="do_upload.php"> <p><strong>File to Upload:</strong><br> <input type="file" name="img1" size="30"></p> emplresults.txt<input type="radio" name="file_type" value="emplresults"> applresults.txt<input type="radio" name="file_type" value="applresults"> <P><input type="submit" name="submit" value="Upload File"></p> </form> I think it may be how you specify the enctype? - Shane
On Wed, 7 Feb 2001 13:42, Shane McBride wrote: > > How can I ensure that a file is transferred in ascii mode using the > following: <form enctype="multipart/form-data" method="post" > action="do_upload.php"> > > <p><strong>File to Upload:</strong><br> > <input type="file" name="img1" size="30"></p> > emplresults.txt<input type="radio" name="file_type" > value="emplresults"> applresults.txt<input type="radio" > name="file_type" value="applresults"> <P><input type="submit" > name="submit" value="Upload File"></p> > > </form> > > I think it may be how you specify the enctype? > > - Shane A quick search turned up this URL: http://www.w3.org/TR/REC-html40/interact/forms.html which seems like a good start point - I'm going to peruse it myself and see what I come up with.... -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
On Wed, 7 Feb 2001 13:58, David Robley wrote: > On Wed, 7 Feb 2001 13:42, Shane McBride wrote: > > > How can I ensure that a file is transferred in ascii mode using the > > > > following: <form enctype="multipart/form-data" method="post" > > action="do_upload.php"> > > > > <p><strong>File to Upload:</strong><br> > > <input type="file" name="img1" size="30"></p> > > emplresults.txt<input type="radio" name="file_type" > > value="emplresults"> applresults.txt<input type="radio" > > name="file_type" value="applresults"> <P><input type="submit" > > name="submit" value="Upload File"></p> > > > > </form> > > > > I think it may be how you specify the enctype? > > > > - Shane > > A quick search turned up this URL: > > http://www.w3.org/TR/REC-html40/interact/forms.html > > which seems like a good start point - I'm going to peruse it myself and > see what I come up with.... Following up to myself, it seems that the defined standard for line separators is CR/LF - from the document at the above URL: "As with all MIME transmissions, "CR LF" (i.e., `%0D%0A') is used to separate lines of data." So if your problem is related to the end of line characters, you might want to run something on the server that does an EOL conversion as part of the upload process. -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
Hi people, the syntax below is what I intend to use it to write out the customer detail on a new file according the customer ID. I only make it rough and short and did not go too detail on it, have limited experience oho here in some way. <?php (db connection bit)..... $queryRequest = "SELECT * FROM TouristRequests WHERE TouristRequestID='$TouristRequestID'"; $resultRequest = mysql_query($queryRequest); // to write out the new output file $fileName = "$TouristRequestID"; $fileName .= ".php3"; $htmlFile = fopen("$fileName", "w"); $linkToApp = "https://www.manageasy.com/" . "requestDetail.php3?filename=$fileName&TouristRequestID=$TouristRequestID"; if (!($htmlFile)) { print("file could not be opened."); exit; } // Write out Page. fputs($htmlFile, "<? \n"); fputs($htmlFile, "if(!(\$PHP_AUTH_USER)): \n"); fputs($htmlFile, " echo '<meta http-equiv=\"refresh\" content=\"0;url=https://www.manageasy.com/requestDetail.php3?TouristRequestID=$TouristRequestID&filename=$fileName\">'; \n"); fputs($htmlFile, " exit; \n"); fputs($htmlFile, "endif \n"); fputs($htmlFile, "?> \n"); fputs($htmlFile, "<HTML>\n"); fputs($htmlFile, "<HEAD>\n"); fputs($htmlFile, "<TITLE>Customer detail</TITLE>\n"); (and blabla.... until the end of the file). fputs($htmlFile, "</BODY>\n"); fputs($htmlFile, "</HTML>\n"); ********************************** And there is nothing in the file requestDetail.php3 beside the sniplet for db connection like this: <?php $connection = mysql_connect("$localhost", "username", "password"); mysql_select_db("dbname", $connection); ?> ***************************** Is this correct way to do this? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"
Hi there, I need to do some kind of alarm in php, I have a date(dd-mm-yyyy) in mysql and need that system warn me a week or so before that date, is there a function like that in php?? Thanks in advance Daniel Gaytan B.
No. PHP simply executes a script when it is called by something. An option would be to an external 'something' automatically call PHP periodically. At that point, the script that is invoked could do periodic maintenance (check DB, warn you if date in MYSQL is < 1 week, etc.) We have a service called cronservice.com for people who don't have access to cron on their servers, but chances are you have it on your system (if it's unix-ish) or scheduled tasks (in Windows) which will accomplish the same thing, for free. GAYTAN BAHAMONDEZ DANIEL EDUARDO wrote: > Hi there, > I need to do some kind of alarm in php, I have a date(dd-mm-yyyy) > in mysql and need that system warn me a week or so before that date, is > there a function like that in php?? > > Thanks in advance > Daniel Gaytan B. > > -- > 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]
Which template can I use to do this simply? $template = new Template(); $template->assign(content_item, placeholder); $page = template($template_file); $page->print(); thanks! tomo ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
Hi, I'm trying to figure out how to do this right: I have this text file: date 1 | head 1 | text 1 date 2 | head 2 | text 2 date 3 | head 3 | text 3 And I want to display in a HTML-page like this: date 1 head 1 text 1 date 2 head 2 text 2 date 3 head 3 text 3 And I'm trying to do it with follwing code: //sniped 39> while (list ($line_num, $line) = each ($contentlines)) 40> { 41> $message = explode ("|", $line); 42> 43> while (list ($date, $head, $text) = each($message)) 44> { 45> echo "$date, $head, $text<br>"; 46> }; 47> }; //sniped But I get this result: Warning: Undefined offset: 2 in c:\inetpub\wwwroot\read_txt_0007.php on line 43 0, date 1, Warning: Undefined offset: 2 in c:\inetpub\wwwroot\read_txt_0007.php on line 43 1, head 1, Warning: Undefined offset: 2 in c:\inetpub\wwwroot\read_txt_0007.php on line 43 2, text 1, Warning: Undefined offset: 2 in c:\inetpub\wwwroot\read_txt_0007.php on line 43 0, date 2, etc. Can anyone point me to a solution for this? Regards, Sumarlidi Einar Dadason SED - Graphic Design ------------------------------------------ Phone: (+354) 4615501 Mobile: (+354) 8960376 Fax: (+354) 4615503 E-mail: [EMAIL PROTECTED] Homepage: www.sed.is <- New Homepage! ------------------------------------------
On Wed, 7 Feb 2001 14:14, SED wrote: > Hi, I'm trying to figure out how to do this right: > > I have this text file: > > date 1 | head 1 | text 1 > date 2 | head 2 | text 2 > date 3 | head 3 | text 3 > > And I want to display in a HTML-page like this: > > date 1 > head 1 > text 1 > date 2 > head 2 > text 2 > date 3 > head 3 > text 3 > > And I'm trying to do it with follwing code: > > //sniped > 39> while (list ($line_num, $line) = each ($contentlines)) > 40> { > 41> $message = explode ("|", $line); > 42> > 43> while (list ($date, $head, $text) = each($message)) > 44> { > 45> echo "$date, $head, $text<br>"; > 46> }; > 47> }; > //sniped > > But I get this result: > > Warning: Undefined offset: 2 in c:\inetpub\wwwroot\read_txt_0007.php on > line 43 > > > Can anyone point me to a solution for this? > > Regards, > Sumarlidi Einar Dadason List returns a key and value for each element in the array on which it operates. The array that you get from $message = explode ("|", $line) will be something like KEY VALUE 0 date1 1 head1 2 text1 with spaces around the text (which you may want to chop()) so you need something like 41> $message = explode ("|", $line); 42> 43> while (list (, $value) = each($message)) 44> { 45> echo "chop($value)<br>"; 46> }; The comma in Line 43 is important! Alternatively, you could use str_replace to change the ' | ' (that's space pipe space) to <BR> Cheers -- David Robley | WEBMASTER & Mail List Admin RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/ AusEinet | http://auseinet.flinders.edu.au/ Flinders University, ADELAIDE, SOUTH AUSTRALIA
I have the code below within a larger web page which is like a portal. When I submit the form, I get this message: -------- Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\index1.php3:9) -------- Can I get it to take me to the BigCharts site and leave the page I'm on? Thanks. Jeff Oien -------- <?php print "<form method=\"post\" action=\"$PHP_SELF\">"; print "Symbol<br>"; print "<input type=\"Text\" size=\"5\" name=\"symbol\"><br>"; print "<INPUT type=\"hidden\" name=\"op\" value=\"ds\">"; print "<input type=\"Submit\" value=\"Chart\">"; if ($op == "ds") { $url = 'http://www.bigcharts.com/quickchart/quickchart.asp?symb= . $symbol'; header ("Location: $url"); } ?>
why doesn't this work? $parentClass = get_parent_class($this); parent::{$parentClass}(); I get a parse error. can I not use variable functions with the "::" syntax? I tried eval() and it loses the context. thanks for the help! -aaron