RE: [PHP] Hi, new guy here!
Welcome on Board, Brian! Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Brian Potter Web Design [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 7:51 AM To: Php Subject: [PHP] Hi, new guy here! Hello! My name is Brian Potter and I just finished the PHP Fast and Easy Web Development book. A friend of mine suggested I subscribe to this list. I am eager to interact with all of you! I do a webpage for my youth group as well as various professional web pages. I appreciate all of your help in advance! -BRiAN -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] URL Encode
UrlEncode() www.php.net/urlencode Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 6:50 AM To: PHP List Post Subject: [PHP] URL Encode I know this have been covered before but I can't find it in my thousands of emails... How would I URL Encode the following... I am retrieving a variable like ? echo "$SearchCity"; ? but for example if it is Hilton Head Island I need it to add the + signs as Hilton+Head+Island so Netscape won't crash. Thanks... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] mysql not reporting errors
Hi Anna, Have you ever heard of PHP Library (PHPLIB) ? It is quite simple to install and will give you possibility of easily switching between databases as well as choosing when and how to receive the database errors. It also has a whole bunch of other features - a very good base for development. If you wonder where to get PHP Library here's the link www.phplib.org Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Anna [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 7:12 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] mysql not reporting errors - Original Message - From: "Christian Dechery" WHy PHP is not showing SQL syntax (or any) errors? I'm using Win98Me with Apache 1.3.12 and PHP 4.x. it works... if I run a correct query it runs normally, but if I go like: $query="selct nonexistingfield from nonexistingtable with all crazy syntax"; mysql_query($query); it doesn't tell me there's an error... in fact it doesn't show anything... why is that? Because it's a pain to have error messages popping up all the time? Here is what I do with every query I every write: $query="yada yada"; $result=mysql_query($query, $connection); if($result=="" || $result=="0") { //if it is a page for my use, I print the error // if it is a page for the general public, I email the //error to myself, and print "There was a problem //completing your request", or something like that. print "Error : ".mysql_error($connection)."br\n"; } else { while($row=mysql_fetch_row($result)) { //do whatever you want to do with the data. } } I greatly prefer this to display "0 is not a mysql result index" for everyone to see, if/when something goes wrong. Anna -- 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]
RE: [PHP] tracking the current url
you could simply use $HTTP_HOST.$PHP_SELF of even better if look here: http://www.php.net/manual/en/language.variables.predefined.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 9:00 AM To: [EMAIL PROTECTED] Subject: [PHP] tracking the current url hi Can you tell me how to track the current url by using PHP? for example, Mike is visiting http://www.celebritieszones.com/showthumb/britney_spears/1/ and i wanna make a PHP script so it tells Mike that he is currently browing http://www.celebritieszones.com/showthumb/britney_spears/1/ I tried to use $url_array=explode("\",$REQUEST_URI); But it didn't work. It showed Array instead of the URL when i tried to display it. Please help. Thanks --- free celebritieszones email: http://www.celebrititeszones.com/login.php -- 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]
RE: [PHP] Asking Sth about PHP
Yes, you can run PHP under Linux, this is the best way for it. and about Perl - PHP, well they are not of too friends, but a whole bunch of things can do toghether. In fact you can even complile PHP as CGI. However, to tell you the true I didn't really understand your question, please be more specific on what you're doing. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: kn4279 [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 2:41 PM To: [EMAIL PROTECTED] Subject: [PHP] Asking Sth about PHP Dear Sir, I have two problems in using PHP. Could you help me? I am using Red-Hat to build up my System. Could I use Perl to control some PHP program? Also, could I run my PHP program in Linux Console? Sorry to disturb you THx! Kevin Ng === sKOqllc http://sinamail.sina.com.hk -- 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]
Re: [PHP] Zend Debugger problems
Anyone wrestled with the Zend Debugger Setup. Yes. :-) Having downloaded the test drive of the IDE and Debugger and the test drive license file followed the docs to the letter. It still isnt running. once i include zend_extention="/usr/local/Zend/ZendDebugger.so" in the php.ini file apache wont restart. Any error messages in Apacher error logs? Try disabling mod_gzip, and also ZendOptimizer. Also, what other Modules are you running? Using Apache 1.3.14 PHP 4.03pl1 debug mode is not enabled as the docs say so this should all work fine also its not exactly clear where that line should be in php.ini I have sent the query to Zend as well but maybe the list will be quicker Maybe, maybe not. We're pretty quick... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Asking Sth about PHP
I have two problems in using PHP. Could you help me? I am using Red-Hat to build up my System. Could I use Perl to control some PHP program? Also, could I run my PHP program in Linux Console? You'll probably need to compile PHP from source to get a CGI (standalone) binary. It's actually easier than messing with rpm, if you ask me.:-) Oh -- Once you have that PHP CGI binary, you can run it from command line or Perl or shell script or whatever. Use it just like you would Perl with #!/usr/sbin/php or whatever. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] http_user_agent and proxy
I have this problem: I am using a script like this to make php use a remote proxy to get pages using a remote proxy: fputs($data1,"GET $myfiles/ HTTP/1.0\n\n"); The problem is that i want to set the HTTP_USER_AGENT to something different than a blank field, but have no idea how to do that. Wild Guess: You know how you need *two* newlines after that GET to make it go? I think you can throw more stuff in there, and *then* the two newlines. In other words, it's just like headers... fputs($data1, "GET / HTTP/1.0\n"); fputs($data1, "HTTP_USER_AGENT spiderman\n"); fputs($data1, "\n"); #end of headers This is purely wild speculation on my part, but it does make sense it would work this way... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spliting
Suppose that I have a page andf I splitted it into two upper side has input fields and buttons and lower side is report that is every line includes database information. Now I have a question when I choose one of the lines below this page how can I get the values to upper pages input fields is it possible. Do I need javascript or php can solve my problem. Using FRAMESET? If you are doing FRAMESET for "look" or scrolling control, you can send all your links back to the FRAMESET page with any ?page=page2.phpvar1=42var2=yes GET data. Then, in your FRAMESET page, you can "pass down" the $QUERY_STRING to the individual pages: HTML FRAMESET ... FRAME form.php??php echo $QUERY_STRING;? ... FRAME ?php echo "$page?$QUERY_STRING";? ... /FRAMESET /HTML -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] More problems with MySql...
Hey guys, I have another problem... Now, when I try login to Mysql it says that my user-password is wrong :-( So I need to know what is the "equation" to delete, or to change, my password-user? What is the "equation" to insert a user after I delete my last user? I always forget as well, but mysqladmin --help tells me. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookies reprise...
You can't set a cookie and do a header("Location:") on the same page. It will work in some versions of some browsers, and not in others. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Matt [EMAIL PROTECTED] Newsgroups: php.general Sent: Friday, February 09, 2001 9:07 AM Subject: [PHP] Cookies reprise... At 08:12 AM 2/9/2001, you wrote: lets see some code.. Okay, for those so inclined I did say the page the cookie script was included on was rather complex. I will say that I double checked and made sure the cookie variables weren't overwritten in another include file. You can see what I mean by going to http://www.yaysoft.com (use IE if at all possible) and on the right side bar where it says "User Status" and has a message saying "You are not logged in" you can click on the login link below it. I created an account for anyone who wants to try (everything works except the login cookie) so you don't have to waste your time signing up with the script, note it is case sensitive: user name: php password: php after you click the login thing the cookies will be set and the page will not view them. If you used IE and you navigate to c:\windows\temporary internet files or wherever your cookies are stored, you should notice that a cookie has been set... with the path set to the root "/" and the domain set to "www.yaysoft.com" but the cookies will not show up in the browser. I have copied the script to a text file at http://www.yaysoft.com/yaylogin.txt And for any who want to quickly glance at it, here is the code snippet where the cookies are set: if ($item[0]0) { setcookie("ucrumb", $uname, time()+31536000, "/", "www.yaysoft.com", 0); setcookie("pcrumb", $pass, time()+31536000, "/", "www.yaysoft.com", 0); header("Location: http://www.yaysoft.com"); } else header("Location: $PHP_SELF?l_action=loginbad=1"); And here is a slice from where they are supposedly supposed to be accessed: // Now check to see if we are currently logged in to the Yaysystem... // First check to see if the variables plain out don't exist... if ((!$ucrumb)||(!$pcrumb)) { echo "You are not logged in.br"; echo "font size=\"1\""; echo "br[a href=\"http://www.yaysoft.com/yaylogin.php?l_action=login\"Login/a] "; echo "[a href=\"http://www.yaysoft.com/yaylogin.php?l_action=new\"New/a]"; echo "/font"; // If they DO exist make sure they are a correct pair as per the database... } else { However, I've outputted the contents of $ucrumb and $pcrumb once I get to the little segment where they are supposed to be accessed and they contain nothing, so it seems to me that they aren't being sent to the script (which resides in the root path where the cookie is set to!) I've used HTTP headers to set the cookies as well, and the problem still persists. I know this is long and boring and tedious crap, so I don't really expect anyone to reply, BUT if any of you have the time or inclination, any help/suggestions/advice would be greatly appreciated. Regards, Matt -- 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]
Re: [PHP] anyway to make mail() function use port 25
anyway to make mail() function to use port 25 on a defined SMTP host instead of the raw/direct spooling as by default as it uses sendmail on local system, what happens when SMTP server is a different box alltogether ? You can change php.ini, maybe, or use Manuel Lemos' mail class to spew at port 25. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Using PHP for CGI
I'm interested in a comparison study for using PHP vs. Perl for CGI programming. Specifically, I'm looking for information comparing the two in terms of speed, memory usage and efficiency. Any information or url's would be appreciated. Check the FAQ. http://php.net/FAQ.php If you really mean to compare them as *CGI* for performance... Why? CGI performance is grossly inferior to Module, no?... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql default cfg
Isn't default config for mysql to report syntax errors on queries and stuff like that??... it always did, I never altered any config in mysql. And then today it just STOPPED reporting errors. It used to report errors by default a long time ago, I think... Maybe you upgraded PHP? Or upgraded, but never restarted Apache, and only now is the upgrade actually kicking in? -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamically loading...
Hi, I'm looking for a host that has CURL and Cybercash installed, but so many good hosts out there do not have this installed and aren't willing to budge on there build of php. I'm wondering only because i'm not a Unix/Linux guru, Is it possible if a hosting company gives access to the DL() command that I could load these on demand? and if so, how do I accomplish this? (mainly CURL) A host that gives you dl() in a module environment would be not very secure, as I understand it... It really only makes sense to install CyberCash on an SSL box, no? And an ISP shouldn't be letting you upload arbitrary code to a shared server that's allegedly SSL, since that's inherently insecure, I think. What you *might* be able to do is get them to let you have PHP as suExec'ed CGI binary so you can dl() into that, which runs as your user, so you can only hurt yourself. You'd use a different extension for those PHP-as-CGI pages, and not hurt performance on the other pages. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] DefaultType, FreeBSD, Mod_Rewrite, trailing slash
Sorta off-topic, but it's all to get files with no extension to be run through PHP... Okay, since DefaultType is just plain broken on FreeBSD4.1ReleaseApache1.3.14, I tried to simulate it with mod_rewrite: RewriteRule !.*\..* - [T=application/x-httpd-php] This actually works and everything (which is amazing since Regex and I never get along too well...) Only problem is, *that* breaks the whole "auto-completion" of trailing slashes on directories and/or DirectoryIndex. I tried to fix that using: RewriteCond %{SCRIPT_FILENAME} -d RewriteRule ^(.+[^/])$ $1/ [R] which I pretty much stole verbatim from: http://httpd.apache.org/docs/misc/rewriteguide.html but it didn't seem to have any real effect... Actually, it seems to sometimes add a trailing slash to the files that have no extension, but the page loads okay... I tried moving the trailing slash fix both before and after my DefaultType rule, and it didn't seem to behave any differently. Any Rewrite gurus in the house? Is there a "mod_rewrite under FreeBSD mailing list" somewhere?... PS DefaultType on FreeBSD really is broken. Honest. I copied and pasted the DefaultType from the httpd.conf line above, so I know I spelled that right. And ditto for the mime/type. Besides, I can use ForceType, and it "works", only ForceType breaks all the stuff that *does* have an extension, like GIFs. And I tried moving DefaultType to several different places within httpd.conf: Where the default had it, inside the Directory I want changed, above that Directory, below it, at the very bottom... -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Decoding E-Mails
On 09 Feb 2001 12:26:37 +0100, Jens Kisters wrote: We started to build an Online-Mailclient using PHP and dicovered that there are quite a lot methods of encoding mails, does anyone have classes to decode MIME / ... (what other common methods are there?) It would be great to extract Header, plain text, formatted text and maybe file attachments. Any hints? http://www.horde.org/imp/ -- Florin Andrei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Credit Cards
hi jerry try www.bibit.com. they wil give you some example code too. easy to use and you can link to their test server until you are happy with your scripts. ajdin On Fri, 9 Feb 2001, Jerry Lake wrote: I have a basic shopping cart setup and I am curious as to how I go about being able to handle real-time credit card transactions. I realize there are card services like cybercash and such, but how do I go about hooking cybercash up to the existing cart? (the host already has a merchant connection kit) Jerry Lake- [EMAIL PROTECTED] Web Designer Europa Communications - http://www.europa.com Pacifier Online - http://www.pacifier.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] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re[2]: [PHP] Testing CONNECTION Speed
Hello, Adam! Thursday, February 08, 2001, 11:48:12, you wrote: AK 3) Send a large graphic (200K) AK No, it's not transparent to the user and no it's not microtime accurate, but AK it *does* work. it *dosn't* work. what if user turn off grafix in his browser? Is there any way to do this?? i mean.. test the connection speed of a client machine??? i think that no way to determine client connection speed. browsers open not one connection to server. usually it's 10 threads to load grafix in separate treads. some grafix placed in cache (remote or local). asking user is the only way to determine connection speed. Best regards! Andrew Golovin PGP Fingertip 24FD A0CD 667C 1FC7 C2F7 A2EA 9742 D484 FD3C 598D http://exper.ural.ru/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: Re[2]: [PHP] Testing CONNECTION Speed
Well, There are about 3 or 4 sites on the net that will test your connection speed, so it must be possible. I know MSN has one. - John Vanderbeck - Admin, GameDesign - Original Message - From: "Andrew Golovin" [EMAIL PROTECTED] To: "Adam Knight" [EMAIL PROTECTED] Cc: "Matias Banzas" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, February 10, 2001 1:21 AM Subject: Re[2]: [PHP] Testing CONNECTION Speed Hello, Adam! Thursday, February 08, 2001, 11:48:12, you wrote: AK 3) Send a large graphic (200K) AK No, it's not transparent to the user and no it's not microtime accurate, but AK it *does* work. it *dosn't* work. what if user turn off grafix in his browser? Is there any way to do this?? i mean.. test the connection speed of a client machine??? i think that no way to determine client connection speed. browsers open not one connection to server. usually it's 10 threads to load grafix in separate treads. some grafix placed in cache (remote or local). asking user is the only way to determine connection speed. Best regards! Andrew Golovin PGP Fingertip 24FD A0CD 667C 1FC7 C2F7 A2EA 9742 D484 FD3C 598D http://exper.ural.ru/ -- 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]
Re: [PHP] DefaultType, FreeBSD, Mod_Rewrite, trailing slash
RewriteCond %{SCRIPT_FILENAME} -d i aint no guru but try puttin %{REQUEST_URI} up there in place of SCRIPT_.. hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP]Spider script in PHP.
On Friday 09 February 2001 21:28, Angerer, Chad wrote: maybe late and all, this pieca code was lying around somewhere in my socks ;) see if ya can use it, hrishi begin code snippet ? function recurse($from,$func="echo") { if(strrchr($from,"/")=="/") $from=strrev(substr(strrev($from),1)); $from=str_replace("//","/",$from); chdir("/"); $fromdir=0; $fromdir_class=dir($from); $fromdir=$fromdir_class-handle; $currpath=$fromdir_class-path; chdir($currpath); $dirs=array(); $anchs=array(); $cnt=0; rewinddir($fromdir); while($fname=readdir($fromdir)) { if(is_dir($fname)) { $dirs[]=$fname; } else { $func($currpath.'/'.$fname); } } closedir($fromdir); reset($dirs); while($dir=current($dirs)) { if($dir!="." $dir !="..") { recurse($currpath . '/' . $dir); } next($dirs); // echo "bru::$from/ubr"; } } recurse("/home/public_html/"); ? end code snippet -- -- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- 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] PROBLEM TO CONNECT MYSQL...
I have a problem to connect mysql... Now, when I try login to Mysql it says that my user-password is wrong. So I need to know what is the "equation" to delete, or to change, my password-user? What is the "equation" to insert a user after I delete my last user? Thank you again!!! Felipe Lopes MailBR - O e-mail do Brasil -- http://www.mailbr.com.br Faça já o seu. É gratuito!!! -- 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] IIS 5
Hello I like to have some directions in how to install PHP on IIS 5 Regards Christian. Krmagnom AB Christian Bjrklund Rdmansgatan 67 113 60 Stockholm Tel: 08-320750 Fax: 08-320751 Mobil: 070-8880002
RE: [PHP] IIS 5
http://www.php.net/manual/en/install.iis.php and http://cvs.php.net/viewcvs.cgi/php4/win32/README.txt?rev=1.4content-type=te xt/vnd.viewcvs-markup James -Original Message- From: Christian Bjorklund [mailto:[EMAIL PROTECTED]] Sent: 10 February 2001 15:46 To: [EMAIL PROTECTED] Subject: [PHP] IIS 5 Hello I like to have some directions in how to install PHP on IIS 5 Regards Christian. Krmagnom AB Christian Bjrklund Rdmansgatan 67 113 60 Stockholm Tel: 08-320750 Fax: 08-320751 Mobil: 070-8880002 -- 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] upload file
Hello I need to do upload a file, I have problem with instruction copy(?,?); When it copy the file, just copy to tmp, and it change the name. Marisol Daz E. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] upload file
Check out : http://www.weberdev.com/index.php3?GoTo=ViewArticle.php3?ArticleID=2 Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 6:21 PM To: PHP General Subject: [PHP] upload file Hello I need to do upload a file, I have problem with instruction copy(?,?); When it copy the file, just copy to tmp, and it change the name. Marisol Daz E. -- 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 Digest 10 Feb 2001 17:59:43 -0000 Issue 504
php-general Digest 10 Feb 2001 17:59:43 - Issue 504 Topics (messages 39054 through 39086): Dynamically loading... 39054 by: Ryan Sexton 39071 by: Richard Lynch Re: MySQL 3.23 39055 by: Mark Maggelet 39086 by: Thomas Deliduka Re: good free/cheap IDE for PHP 39056 by: Ayan R. Kayal Re: Hi, new guy here! 39057 by: PHPBeginner.com Re: URL Encode 39058 by: PHPBeginner.com Re: mysql not reporting errors 39059 by: PHPBeginner.com Re: tracking the current url 39060 by: PHPBeginner.com Re: Asking Sth about PHP 39061 by: PHPBeginner.com 39063 by: Richard Lynch Re: Zend Debugger problems 39062 by: Richard Lynch Re: http_user_agent and proxy 39064 by: Richard Lynch Re: Spliting 39065 by: Richard Lynch Re: More problems with MySql... 39066 by: Richard Lynch Re: Cookies reprise... 39067 by: Richard Lynch Re: anyway to make mail() function use port 25 39068 by: Richard Lynch Re: Using PHP for CGI 39069 by: Richard Lynch Re: mysql default cfg 39070 by: Richard Lynch DefaultType, FreeBSD, Mod_Rewrite, trailing slash 39072 by: Richard Lynch 39077 by: Hrishi Re: Decoding E-Mails 39073 by: Florin Andrei Re: Credit Cards 39074 by: AJDIN BRANDIC Re: Testing CONNECTION Speed 39075 by: Andrew Golovin 39076 by: John Vanderbeck Re: Spider script in PHP. 39078 by: Hrishi Re:shows up in IE but not Netscape 39079 by: John Hinsley 39080 by: Boaz Yahav PROBLEM TO CONNECT MYSQL... 39081 by: Felipe Lopes IIS 5 39082 by: Christian Bjorklund 39083 by: James Moore upload file 39084 by: Marisol Díaz E. 39085 by: Boaz Yahav 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] -- Hi, I'm looking for a host that has CURL and Cybercash installed, but so many good hosts out there do not have this installed and aren't willing to budge on there build of php. I'm wondering only because i'm not a Unix/Linux guru, Is it possible if a hosting company gives access to the DL() command that I could load these on demand? and if so, how do I accomplish this? (mainly CURL) Thank you, Ryan Sexton Hi, I'm looking for a host that has CURL and Cybercash installed, but so many good hosts out there do not have this installed and aren't willing to budge on there build of php. I'm wondering only because i'm not a Unix/Linux guru, Is it possible if a hosting company gives access to the DL() command that I could load these on demand? and if so, how do I accomplish this? (mainly CURL) A host that gives you dl() in a module environment would be not very secure, as I understand it... It really only makes sense to install CyberCash on an SSL box, no? And an ISP shouldn't be letting you upload arbitrary code to a shared server that's allegedly SSL, since that's inherently insecure, I think. What you *might* be able to do is get them to let you have PHP as suExec'ed CGI binary so you can dl() into that, which runs as your user, so you can only hurt yourself. You'd use a different extension for those PHP-as-CGI pages, and not hurt performance on the other pages. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm On Fri, 9 Feb 2001 22:08:06 -0500, Jon Rosenberg ([EMAIL PROTECTED]) wrote: I'm about to upgrade to mysql 3.23 on a production installation on linux with PHP 4.0.4pl1, has anyone had any problems with this combination, as compared to 4.0.4pl1 with 3.22.xx? Thanks! I hit a snag with some of the new reserved words colliding with field names, you might want to take at the list. My only issue was a symbolic link had to be created for Apache to start again. ln -s /usr/local/mysql/lib/mysql/libmysqlclient.so.10 /usr/lib/libmysqlclient.so.10 Oh, and I had to recompile PHP as a DSO in order to work with mysql 3.23 On 2/10/01 12:59 AM this was written: On Fri, 9 Feb 2001 22:08:06 -0500, Jon Rosenberg ([EMAIL PROTECTED]) wrote: I'm about to upgrade to mysql 3.23 on a production installation on linux with PHP 4.0.4pl1, has anyone had any problems with this combination, as compared to 4.0.4pl1 with 3.22.xx? Thanks! I hit a snag with some of the new reserved words colliding with field names, you might want to take at the list. -- Thomas Deliduka IT Manager - New Eve Media The Solution To Your Internet Angst http://www.neweve.com/ PHPEd looks pretty. But it's highly unstable, in general (GPFs taking all system resources sometimes). And it really despises
Re: [PHP] PROBLEM TO CONNECT MYSQL...
Felipe, You need to login with the root account to mysql and then issue the following commands where "user1" is the user that your modifying and "pass1" is the new password. after you've logged in successfully as root, issue the following commands: use mysql; update user set password=Password("pass1") where User='user1'; Hope that helps. Jason --- Felipe Lopes [EMAIL PROTECTED] wrote: I have a problem to connect mysql... Now, when I try login to Mysql it says that my user-password is wrong. So I need to know what is the "equation" to delete, or to change, my password-user? What is the "equation" to insert a user after I delete my last user? Thank you again!!! Felipe Lopes MailBR - O e-mail do Brasil -- http://www.mailbr.com.br Faça já o seu. É gratuito!!! -- 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!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.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]
[PHP] Parsing XML
I want to parse an XML from nasdaq, but I allways get a blank page when doing so. I also get the notice: undefined index when parsing. What does this mean? -- 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] mod_rewrite starts driving me crazy ...
Hello guys, I know it is not exactly a PHP problem, it is about apache's mod_rewrite which after 4 hours of tentative till 3.30am starts making me think that I need a LONG vacation ... I know it's easy... I read all the docs dozens of times and I *feel* that I am very close to the solution ... please help. ... Here: my system: Win2k, Apache 1.3.14, (my test server) my problem: in the virtual host of httpd.conf I added the following: RewriteEngine On RewriteRule ^(/index.html)$ /start.php?go=$1 This works perfectly, however what I really need to do is to make it work not only with /index.html but with everything typed in your browser... (index.html was only a test to let me know I am in a right direction) I tried: RewriteRule ^(.*) /start.php?go=$1 RewriteRule ^(.*)$ /start.php?go=$1 RewriteRule ^(.+) /start.php?go=$1 RewriteRule ^(.+)$ /start.php?go=$1 RewriteRule ^(/.*) /start.php?go=$1 RewriteRule ^(/.*)$ /start.php?go=$1 RewriteRule ^(/.+) /start.php?go=$1 RewriteRule ^(/.+)$ /start.php?go=$1 ...non of these worked while something's telling me it had to Is that a flag that I need ? (I've tried some combinations of these - didn't work either, I think I need to confirm it by someone) please help me with that, I know many of you have done it already... or I am going to dream about apachectl restart tonight Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.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]
[PHP] Parsing XML the Sequel :)
The page I want to parse is: http://213.224.136.110:8080/test.xml And this is my code: ?php //Define Opening Tags of XML $open_tags = array( 'STORY' = 'nasdaqamex-dot-com', 'STOCK_NAME' = 'issue-name', 'LAST_SALE' = 'last-sale-price', 'PREVIOUS_CLOSE' = 'previous-close-price', 'NET_CHANGE_PCT' = 'net-change-pct', 'STOCK_URL' = 'issuer-web-site-url'); //Define Closing Tags of XML $close_tags = array( 'STORY' = '/nasdaqamex-dot-com', 'STOCK_NAME' = '/issue-name', 'LAST_SALE' = '/last-sale-price', 'PREVIOUS_CLOSE' = '/previous-close-price', 'NET_CHANGE_PCT' = '/net-change-pct', 'STOCK_URL' = '/issuer-web-site-url'); // handles the attributes for opening tags // $attrs is a multidimensional array keyed by attribute // name and having the value of that attribute function startElement($parser, $name, $attrs=''){ global $open_tags, $temp, $current_tag; $current_tag = $name; if ($format = $open_tags[$name]){ switch($name){ case 'STORY': echo 'New Story: '; break; default: break; } } } // $current_tag lets us know what tag we are currently // dealing with - we use that later in the characterData // function. // // when we see a /STORY we know that it is time to // flush our temp variables and prepare to move onto // the next one function endElement($parser, $name, $attrs=''){ global $close_tags, $temp, $current_tag; if ($format = $close_tags[$name]){ switch($name){ case 'STORY': return_page($temp); $temp = ''; break; default: break; } } } // this function is passed data between elements // theu $data would equal 'Title Here' // in the line TITLETitle Here/TITLE function characterData($parser, $data){ global $current_tag, $temp, $catID; switch($current_tag){ case 'STOCK_NAME': $temp['stock_name'] = $data; $current_tag = ''; break; case 'LAST_SALE': $temp['last_sale'] = $data; $current_tag = ''; break; default: break; } } function return_page() { global $temp; echo 'o A HREF="'.$temp['stock_name'].'"'.$temp['last_sale'].'/ABR'; } // what are we parsing? $xml_file = 'test.xml'; // declare the character set - UTF-8 is the default $type = 'UTF-8'; // create our parser $xml_parser = xml_parser_create($type); // set some parser options xml_parser_set_option($xml_parser, XML_OPTION_CASE_FOLDING, true); xml_parser_set_option($xml_parser, XML_OPTION_TARGET_ENCODING, 'UTF-8'); // this tells PHP what functions to call when it finds an element // these funcitons also handle the element's attributes xml_set_element_handler($xml_parser, 'startElement','endElement'); // this tells PHP what function to use on the character data xml_set_character_data_handler($xml_parser, 'characterData'); if (!($fp = fopen($xml_file, 'r'))) { die("Could not open $xml_file for parsing!\n"); } // loop through the file and parse baby! while ($data = fread($fp, 4096)) { if (!($data = utf8_encode($data))) { echo 'ERROR'."\n"; } if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf( "XML error: %s at line %d\n\n", xml_error_string(xml_get_error_code($xml_parser)), xml_get_current_line_number($xml_parser))); } } xml_parser_free($xml_parser); //Just to see if it has done something echo 'yahoo'; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] my bugaboo.
Hello and thanks to all for the help on the magic quotes, etc. It gives me a better handle on what I'm dealing with. Except for one more thing. When I bring back text from a field which contains a ', and try to apply it as the value of an input box, it still truncates in the box. When I simply print $text, it prints out correctly as *Don't do this* . When I make $text the default value of an input box, it shows as *Don*. If the slash is still in place, it reads *Don\'t* above the box and *Don\* in the box. My bugaboo continues.. :- Thanks again for any further advice. Floyd On Sat, 03 Feb 2001 19:42:23 -0500, you wrote: Hi.. I have a routine where we input text to fields. When there is an apostrophe it handles it correctly. When the form is brought back for editing, the field values show up in the input fields, with all apostrophes intact, just as it should be. When I upload this script to my isp, it doesn't work.. The apostrophes truncate the rest of the text. 'Don't cry over spilled milk', in a field, turns into 'Don'... I have php4 mod in my win32 devbox. The isp is php3. Is this the problem? What is the best way out of it please? Thanks in advance. Floyd -- -- -- 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] how to alter assoc_array?
Hi folks! If $array contains the following: boy = hello girl = hi dog = bark How can I alter all the elements the same way? e.g. so that it now conatins: Xboy = Xhello Xgirl = Xhi Xdog = Xbark thanks! jaxon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] how to alter assoc_array?
jason, thanks ... got it. while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ list($key, $value) = each($row); $key_new="X.$key"; $value_new="X.$value"; $new_array=array($key_new = $value_new"); } thanks, jaxon On 2/10/01 2:32 PM, "jason cox" [EMAIL PROTECTED] wrote: I would just loop through the array and grab the key/value pairs and then add them to a new array as you modify them. Jason --- Jaxon [EMAIL PROTECTED] wrote: Hi folks! If $array contains the following: boy = hello girl = hi dog = bark How can I alter all the elements the same way? e.g. so that it now conatins: Xboy = Xhello Xgirl = Xhi Xdog = Xbark thanks! jaxon -- 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!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.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]
[PHP-CVS] cvs: php3 / php3.ini-dist
jimwSat Feb 10 11:43:58 2001 EDT Modified files: /php3 php3.ini-dist Log: we claim php3.ini documents the defaults, but magic_quotes_gpc defaults to off unless --enable-magic-quotes is used in compiling Index: php3/php3.ini-dist diff -u php3/php3.ini-dist:1.57 php3/php3.ini-dist:1.58 --- php3/php3.ini-dist:1.57 Wed Feb 23 14:57:21 2000 +++ php3/php3.ini-dist Sat Feb 10 11:43:58 2001 @@ -110,7 +110,7 @@ ; ; Data Handling ; ; -magic_quotes_gpc = On ; magic quotes for incoming GET/POST/Cookie data +magic_quotes_gpc = Off ; magic quotes for incoming +GET/POST/Cookie data magic_quotes_runtime= Off ; magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc. magic_quotes_sybase= Off ; Use Sybase-style magic quotes (escape ' with '' instead of \') track_vars = On ; enable $HTTP_GET_VARS[], $HTTP_POST_VARS[] and $HTTP_COOKIE_VARS[] arrays -- PHP CVS 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] sub
[PHP-CVS] cvs: php3 / ChangeLog
jimwSat Feb 10 11:45:34 2001 EDT Modified files: /php3 ChangeLog Log: document change Index: php3/ChangeLog diff -u php3/ChangeLog:1.855 php3/ChangeLog:1.856 --- php3/ChangeLog:1.855Sun Dec 17 16:09:44 2000 +++ php3/ChangeLog Sat Feb 10 11:45:33 2001 @@ -2,6 +2,7 @@ ||| ? ? , 200?, Version 3.0.19 +- Fixed magic_quotes_gpc default in php3.ini-dist (Jim) - Added SESAM database support (Martin Kraemer) - Improved BS/2000 support (Martin Kraemer) - Fixed seeding of system pseudo random number generators -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Parsing XML the Sequel :)
On Sat, Feb 10, 2001 at 07:37:32PM +0100, Steve Haemelinck wrote: The page I want to parse is: http://213.224.136.110:8080/test.xml And this is my code: ?php //Define Opening Tags of XML $open_tags = array( 'STORY' = 'nasdaqamex-dot-com', 'STOCK_NAME' = 'issue-name', 'LAST_SALE' = 'last-sale-price', 'PREVIOUS_CLOSE' = 'previous-close-price', 'NET_CHANGE_PCT' = 'net-change-pct', 'STOCK_URL' = 'issuer-web-site-url'); (snip) // handles the attributes for opening tags // $attrs is a multidimensional array keyed by attribute // name and having the value of that attribute function startElement($parser, $name, $attrs=''){ global $open_tags, $temp, $current_tag; $current_tag = $name; if ($format = $open_tags[$name]){ switch($name){ case 'STORY': echo 'New Story: '; break; default: break; } } } This probably isn't doing what you think it's doing. When the parser hits a new element tag, it will pass the parser object, element name, and its attributes to startElement(). $name will be the name of the element. Equity-quote, issue-name, etc. So when you go to look for $open_tags[$name], you won't find anything because the array is keyed to STORY, STOCK_NAME, etc. It looks like you're expecting the array to be backwards. Switching the keys/values and removing the , /, would be enough to make it work. HTH, Matt -- 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] set user group quota; fork or multithreading?
Hello, I am currently trying to find a way to: set user and group quota using PHP. I don'T know how I could use the existing edquota programs, etc, because they automatically open vi to edit instead of taking one line command. I would also like to know if anyone has any ideas on how to do multithreading in PHP? I thought of using a script with a function executed once the script is over, multiple times... would that work? Please, I would really appreciate some ideas, tips on these 2 subjects!! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Flix C.Courtemanche . [EMAIL PROTECTED] Co-Administrator . http://www.can-host.com/ Head Designer . http://www.can-design.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]
[PHP-I18N] 5.5 cents Long Distance, 24 hrs/day, No Fees!
Dear [EMAIL PROTECTED], 5.5 cents/min. State to State calling, All Day, Every Day, No Fees! - Commercial and residential. - 4.5 cents/min. in-state for California! - 5.5 cents/min. inbound service. - Rates apply all day, every day. - NO monthly fees, and NO minimums! - 6 second billing increments! - Great international rates! - Direct billing available. ... and International Callback for residents outside the US. For complete details, contact us at: [EMAIL PROTECTED] Please type "info" in the subject line. -- PHP Internationalization 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-i18n Digest 10 Feb 2001 22:10:09 -0000 Issue 51
php-i18n Digest 10 Feb 2001 22:10:09 - Issue 51 Topics (messages 116 through 122): about PHP-i18n 116 by: Rui Hirokawa 117 by: Rasmus Lerdorf 118 by: John Risby 119 by: Brian King 120 by: Yasuo Ohgaki Why do we want to give YOU money? 121 by: grabitnow.hotmail.com 5.5 cents Long Distance, 24 hrs/day, No Fees! 122 by: LD305.knto.or.kr 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] -- There is so many trafic of spam mail in this list. I think sending mail to this list should be restricted in any subscribed members only. Anyway, there was a meeeting about php-i18n last July at Linuxcare HQ, but I don't know the imprementation status. I want to know the current status about php-i18n (ICU module, UCS-2 strings support, etc.). --- Rui Hirokawa [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cityfujisawa.ne.jp/~louis/ --- Nothing has happened. On Thu, 8 Feb 2001, Rui Hirokawa wrote: There is so many trafic of spam mail in this list. I think sending mail to this list should be restricted in any subscribed members only. Anyway, there was a meeeting about php-i18n last July at Linuxcare HQ, but I don't know the imprementation status. I want to know the current status about php-i18n (ICU module, UCS-2 strings support, etc.). --- Rui Hirokawa [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cityfujisawa.ne.jp/~louis/ --- -- PHP Internationalization 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] Glad to hear you say that. Been subscribed for about 2 weeks now, and nothing but spam. I thought the list was dead? John -Original Message- From: Rui Hirokawa [mailto:[EMAIL PROTECTED]] Sent: 08 February 2001 00:27 To: [EMAIL PROTECTED] Subject: [PHP-I18N] about PHP-i18n There is so many trafic of spam mail in this list. I think sending mail to this list should be restricted in any subscribed members only. Anyway, there was a meeeting about php-i18n last July at Linuxcare HQ, but I don't know the imprementation status. I want to know the current status about php-i18n (ICU module, UCS-2 strings support, etc.). --- Rui Hirokawa [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cityfujisawa.ne.jp/~louis/ --- -- PHP Internationalization 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 thought it was a great list. I got a fantastic deal on 100 million fresh email addresses and I'm already a millionaire just by working at home :-) Seriously, though, I was about to unsubscribe. It would be great if the list could turn into sth valuable. Does anyone know anything about php-i18n? Any websites or other resources around? Is there something we can do to get the ball rolling? Brian John Risby wrote: Glad to hear you say that. Been subscribed for about 2 weeks now, and nothing but spam. I thought the list was dead? John -Original Message- From: Rui Hirokawa [mailto:[EMAIL PROTECTED]] Sent: 08 February 2001 00:27 To: [EMAIL PROTECTED] Subject: [PHP-I18N] about PHP-i18n There is so many trafic of spam mail in this list. I think sending mail to this list should be restricted in any subscribed members only. Anyway, there was a meeeting about php-i18n last July at Linuxcare HQ, but I don't know the imprementation status. I want to know the current status about php-i18n (ICU module, UCS-2 strings support, etc.). --- Rui Hirokawa [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] http://www.cityfujisawa.ne.jp/~louis/ --- -- PHP Internationalization 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
Re: [PHP] include(blah.php?var=this); doesn't work?!
- Original Message - From: "thor" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, February 08, 2001 11:58 AM Subject: Re: [PHP] include("blah.php?var=this"); doesn't work?! Any include page you use will automatically use any variable that has been set in the master page. snip Unless you use include(http://file); Then you can pass variables in the filename. This does come in handy in some cases. Anna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] my bugaboo.
- Original Message - From: "Floyd Baker" [EMAIL PROTECTED] Hello and thanks to all for the help on the magic quotes, etc. It gives me a better handle on what I'm dealing with. Except for one more thing. When I bring back text from a field which contains a ', and try to apply it as the value of an input box, it still truncates in the box. When I simply print $text, it prints out correctly as *Don't do this* . When I make $text the default value of an input box, it shows as *Don*. If the slash is still in place, it reads *Don\'t* above the box and *Don\* in the box. My bugaboo continues.. :- Thanks again for any further advice. Floyd That's a problem with HTML. example: input type='text' name='textName' value='Don't do this' Sees the ' in Don't as the signal for the end of the value string. I haven't come up with an automatic way to deal with this, but what I have done is in these lines (where there might be an apostrophe) make sure I use double quotes: input type="text" name="textName" value="Don't do this" or print "input type=\"text\" name=\"textName\" value=\"Don't do this\""; Of course, then you may have the same trouble with double quotes. To avoid that you can do ereg_replace("\"", "''", $text) -- that is, replace a double quote with two single quotes? I think, I've never bothered. Hope this helps somehow. Anna -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] my bugaboo.
If replacing " characters for output to html, don't replace them with '' (two single quotes), replace with the magic value quot; (including the semicolon), which is a special html entity that means "put a quotation mark here" Search google for html entities for more. 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: "Anna" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 11, 2001 11:36 AM Subject: Re: [PHP] my bugaboo. - Original Message - From: "Floyd Baker" [EMAIL PROTECTED] Hello and thanks to all for the help on the magic quotes, etc. It gives me a better handle on what I'm dealing with. Except for one more thing. When I bring back text from a field which contains a ', and try to apply it as the value of an input box, it still truncates in the box. When I simply print $text, it prints out correctly as *Don't do this* . When I make $text the default value of an input box, it shows as *Don*. If the slash is still in place, it reads *Don\'t* above the box and *Don\* in the box. My bugaboo continues.. :- Thanks again for any further advice. Floyd That's a problem with HTML. example: input type='text' name='textName' value='Don't do this' Sees the ' in Don't as the signal for the end of the value string. I haven't come up with an automatic way to deal with this, but what I have done is in these lines (where there might be an apostrophe) make sure I use double quotes: input type="text" name="textName" value="Don't do this" or print "input type=\"text\" name=\"textName\" value=\"Don't do this\""; Of course, then you may have the same trouble with double quotes. To avoid that you can do ereg_replace("\"", "''", $text) -- that is, replace a double quote with two single quotes? I think, I've never bothered. Hope this helps somehow. Anna -- 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] newline processing problem?
I have some code which generates a large string to be used by the mail() function. At the same point in the string each time, PHP stops processing "\n" correctly and instead of a newline outputs nothing, so the text starts to get run together.. but it doesn't seem to happen on every "\n". Has anyone else run into this problem? It used to work correctly but I made a few changes to portions of the code that were totally uninvolved, and it started behaving this way. Unfortunately, I didn't notice the problem until I'd made a number of small changes to unrelated things and didn't remember what they were. Gordon Morehouse [EMAIL PROTECTED] www.evernex.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]
[PHP-CVS] cvs: php4 /ext/standard file.c file.h
elixer Sat Feb 10 18:38:40 2001 EDT Modified files: /php4/ext/standard file.c file.h Log: Fix for bug #4556 # This is pretty much a total rewrite of get_meta_tags using a simple # handwritten tokenizer. It might be overkill, but it works. Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.138 php4/ext/standard/file.c:1.139 --- php4/ext/standard/file.c:1.138 Fri Feb 9 07:28:23 2001 +++ php4/ext/standard/file.cSat Feb 10 18:38:40 2001 @@ -20,7 +20,7 @@ +--+ */ -/* $Id: file.c,v 1.138 2001/02/09 15:28:23 rasmus Exp $ */ +/* $Id: file.c,v 1.139 2001/02/11 02:38:40 elixer Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -260,12 +260,13 @@ { pval **filename, **arg2; FILE *fp; - char buf[8192]; - char buf_lcase[8192]; int use_include_path = 0; int issock=0, socketd=0; - int len, var_namelen; - char var_name[50],*val=NULL,*tmp,*end,*slashed; + int in_tag=0, in_meta_tag=0, looking_for_val=0, done=0, ulc=0; + int num_parts=0, lc=0; + int token_len=0; + char *token_data=NULL, *name=NULL, *value=NULL, *temp=NULL; + php_meta_tags_token tok, tok_last; PLS_FETCH(); /* check args */ @@ -306,83 +307,78 @@ } RETURN_FALSE; } - /* Now loop through the file and do the magic quotes thing if needed */ - memset(buf, 0, 8191); - while((FP_FGETS(buf,8191,socketd,fp,issock) != NULL)) { - memcpy(buf_lcase, buf, 8191); - php_strtolower(buf_lcase, 8191); - if (php_memnstr(buf_lcase, "/head", sizeof("/head")-1, buf_lcase + 8191)) - break; - if(php_memnstr(buf_lcase, "meta", sizeof("meta")-1, buf_lcase + 8191)) { + tok_last = TOK_EOF; - memset(var_name,0,50); - /* get the variable name from the name attribute of the meta tag */ - tmp = php_memnstr(buf_lcase, "name=\"", sizeof("name=\"")-1, buf_lcase + 8191); - if(tmp) { - tmp = buf[tmp - buf_lcase]; - tmp+=6; - end=strstr(tmp,"\""); - if(end) { - unsigned char *c; - *end='\0'; - snprintf(var_name,50,"%s",tmp); - *end='"'; - - c = (unsigned char*)var_name; - while (*c) { - switch(*c) { - case '.': - case '\\': - case '+': - case '*': - case '?': - case '[': - case '^': - case ']': - case '$': - case '(': - case ')': - case ' ': - *c++ ='_'; - break; - default: - *c++ = tolower((unsigned char)*c); - } - } - var_namelen=strlen(var_name); + while (!done (tok = +php_next_meta_token(fp,socketd,issock,ulc,lc,token_data,token_len)) != TOK_EOF) { + if (tok == TOK_ID) { + if (tok_last == TOK_OPENTAG) { + in_meta_tag = !strcasecmp("meta",token_data); + } else if (tok_last == TOK_SLASH in_tag) { + if (strcasecmp("head",token_data) == 0) { + /* We are done here! */ + done = 1; } - - /* get the variable value from the content attribute of the meta tag */ - tmp = php_memnstr(buf_lcase, "content=\"", sizeof("content=\"")-1, buf_lcase + 8191); - val = NULL; -
RE: [PHP] RE: db forms creator?
Yes. Take a look at Code Charge. It does what you want and then some! (www.codecharge.com) -- Jeff (FurBall) WebOverdrive Newbie Tech Board http://www.topniche.com/tech/ [EMAIL PROTECTED] -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 8:06 AM To: 'Jaxon'; [EMAIL PROTECTED] Subject: [PHP] RE: db forms creator? There isn't an easy way as the form is filled in client side (and is html not PHP). Work out the info you need to plug Into the SQL command line (ALTER or CREATE TABLE). Build a form asking for that info and have it submit to the same page which does the PHP and SQL bit using the filled in fields from the form. Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: 04 February 2001 23:18 To: [EMAIL PROTECTED] Subject: db forms creator? Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I've seen some sites where I can specify a list of table fields and the datatype for each, and get an output of: 1. the sql to create the table 2. a php form that can be used to update the table problem is I can't find the site now :) has anyone else found this? Regards, jaxon -- 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] passthru environment variables
I'm trying to use passthru in a PHP program to have an external program display some data. The problem is that I was trying to have the external program's environment pick up the form field variables automatically passed into the PHP program as shell environment variables. In other words, if a user typed "Smith" into the last_name field in a form, the PHP program called by that form starts out with $last_name = "Smith", and I would like the external program called by passthru within the PHP program to have a shell environment variable last_name = "Smith". Does anyone know an easy way to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] db forms creator?
try http://phpmyedit.sourceforge.net/ Maciek -Original Message- From: Jaxon [mailto:[EMAIL PROTECTED]] Sent: Monday, February 05, 2001 12:18 AM To: [EMAIL PROTECTED] Subject: [PHP] db forms creator? Hi, can anyone point me towards an easy way to generate forms to update a mysql database? I've seen some sites where I can specify a list of table fields and the datatype for each, and get an output of: 1. the sql to create the table 2. a php form that can be used to update the table problem is I can't find the site now :) has anyone else found this? -- 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 Digest 11 Feb 2001 07:34:05 -0000 Issue 505
php-general Digest 11 Feb 2001 07:34:05 - Issue 505 Topics (messages 39087 through 39108): Re: PROBLEM TO CONNECT MYSQL... 39087 by: jason cox Parsing XML 39088 by: Steve Haemelinck mod_rewrite starts driving me crazy ... 39089 by: Maxim Maletsky Parsing XML the Sequel :) 39090 by: Steve Haemelinck 39098 by: Matt McClanahan Re: my bugaboo. 39091 by: Floyd Baker 39100 by: Shane McBride 39104 by: Anna 39105 by: Josh G how to alter assoc_array? 39092 by: Jaxon 39093 by: jason cox 39095 by: Jaxon ibm-db2 connect failure 39094 by: Bill Sneed CAN YOU ADVERTISE TO OVER 20 MILLION E-MAIL ADDRESSES? 39096 by: Luke6 sub 39097 by: claesson set user group quota; fork or multithreading? 39099 by: Felix C.Courtemanche Re: include("blah.php?var=this"); doesn't work?! 39101 by: Anna Re: shows up in IE but not Netscape 39102 by: Erik Boles newline processing problem? 39103 by: nphyre.evernex.com Re: db forms creator? 39106 by: Jeffrey A. Stuart 39108 by: Maciek Uhlig passthru environment variables 39107 by: Rich Puchalsky 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] -- Felipe, You need to login with the root account to mysql and then issue the following commands where "user1" is the user that your modifying and "pass1" is the new password. after you've logged in successfully as root, issue the following commands: use mysql; update user set password=Password("pass1") where User='user1'; Hope that helps. Jason --- Felipe Lopes [EMAIL PROTECTED] wrote: I have a problem to connect mysql... Now, when I try login to Mysql it says that my user-password is wrong. So I need to know what is the "equation" to delete, or to change, my password-user? What is the "equation" to insert a user after I delete my last user? Thank you again!!! Felipe Lopes MailBR - O e-mail do Brasil -- http://www.mailbr.com.br Faça já o seu. É gratuito!!! -- 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!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ I want to parse an XML from nasdaq, but I allways get a blank page when doing so. I also get the notice: undefined index when parsing. What does this mean? Hello guys, I know it is not exactly a PHP problem, it is about apache's mod_rewrite which after 4 hours of tentative till 3.30am starts making me think that I need a LONG vacation ... I know it's easy... I read all the docs dozens of times and I *feel* that I am very close to the solution ... please help. ... Here: my system: Win2k, Apache 1.3.14, (my test server) my problem: in the virtual host of httpd.conf I added the following: RewriteEngine On RewriteRule ^(/index.html)$ /start.php?go=$1 This works perfectly, however what I really need to do is to make it work not only with /index.html but with everything typed in your browser... (index.html was only a test to let me know I am in a right direction) I tried: RewriteRule ^(.*) /start.php?go=$1 RewriteRule ^(.*)$ /start.php?go=$1 RewriteRule ^(.+) /start.php?go=$1 RewriteRule ^(.+)$ /start.php?go=$1 RewriteRule ^(/.*) /start.php?go=$1 RewriteRule ^(/.*)$ /start.php?go=$1 RewriteRule ^(/.+) /start.php?go=$1 RewriteRule ^(/.+)$ /start.php?go=$1 ...non of these worked while something's telling me it had to Is that a flag that I need ? (I've tried some combinations of these - didn't work either, I think I need to confirm it by someone) please help me with that, I know many of you have done it already... or I am going to dream about apachectl restart tonight Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com The page I want to parse is: http://213.224.136.110:8080/test.xml And this is my code: ?php //Define Opening Tags of XML $open_tags = array( 'STORY' = 'nasdaqamex-dot-com', 'STOCK_NAME' = 'issue-name', 'LAST_SALE' = 'last-sale-price', 'PREVIOUS_CLOSE' = 'previous-close-price', 'NET_CHANGE_PCT' = 'net-change-pct', 'STOCK_URL' = 'issuer-web-site-url'); //Define Closing Tags of XML $close_tags = array( 'STORY' = '/nasdaqamex-dot-com', 'STOCK_NAME' = '/issue-name', 'LAST_SALE' = '/last-sale-price', 'PREVIOUS_CLOSE' = '/previous-close-price',