Re: [PHP] How to test the load
I'll have to see where I can find it, but there are several scripts that will make requests in growing increments until either the server gives out or the script does. --- jimtronic [EMAIL PROTECTED] wrote: Yes, load time, but in general just to see how much traffic a server/script/db can handle and what performance is like. Is this to test load time? To see under what load the script finially craps out, or the server? --- jimtronic [EMAIL PROTECTED] wrote: Hi, This may be more of webserver question, but what methods are used to test the load on a php script or a family of scripts. I'm guessing that apache (or equiv) would have a problem before PHP under a heavy amount of traffic, right? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] How to test the load
Try this link. http://www.webtechniques.com/archives/1999/07/stein/ --- jimtronic [EMAIL PROTECTED] wrote: Yes, load time, but in general just to see how much traffic a server/script/db can handle and what performance is like. Is this to test load time? To see under what load the script finially craps out, or the server? --- jimtronic [EMAIL PROTECTED] wrote: Hi, This may be more of webserver question, but what methods are used to test the load on a php script or a family of scripts. I'm guessing that apache (or equiv) would have a problem before PHP under a heavy amount of traffic, right? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] PHP command for issuing UNIX command???
check out system(); --- R'twick Niceorgaw [EMAIL PROTECTED] wrote: take a look at http://www.php.net/manual/en/ref.exec.php for various methods to run an external program. Alternatively, you can use fopen (http://www.php.net/manual/en/function.fopen.php) to create the non existent file in PHP itself no need to run an external command (fopen (file_name, w) will create the file if it doesn't exist. Similarly delete (http://www.php.net/manual/en/function.delete.php) will delete a file in PHP. also you can - Original Message - From: Scott Fletcher [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, December 14, 2001 10:54 AM Subject: [PHP] PHP command for issuing UNIX command??? Hi! I wanted to know if there is a PHP code or function that would allow the PHP to issue the UNIX command. What I'm doing here is I'm trying to tell PHP to create a file by issuing hte UNIX command then I can use the PHP to open the file to enter the data. Once I'm done with the file, I can use the UNIX to run the script in the file to communicate with the modem by executing the file. When I'm done then I can open an another file to grab the data that had be received by the modem and do the PHP things to do something with hte data. When done, then I can use the PHP to tell UNIX to delete the file and Voila! Thanks, Scott -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] PHP Logo?
i think the conversation lost momentum over the last weekend, i would like to interject some thought onto the subject, that someone who designs logo's as a job told me about the process. the process wasnt setup for success if the people that are responsible for php needed to drive the discussion and offer some guidelines, and ideas for the new potential logo. the process seemed to take a life of its own and spawned discussions that took off all over the place, rather then a focused discussion. the person that told me this, didnt have a problem taking those ideas and working up several mock logos, and then working on this finished project, but it seemed the further along the path we got on the discussion, the further off track we got. there seemed to be a lack of direction and a lack of a process. dan mccullough web technology garnethill.com 603.823.5545 x 1119 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. --- David [EMAIL PROTECTED] wrote: hmm, i remember not too long ago, people were suggesting a new logo for php... wondering why nobody\'s discussing it now? or am i missing something? -- 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!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
[PHP] Merry Christmas Everyone
Merry Christmas Everyone ... __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] Help on a quick questions
Dynamic dropdown selection. What I need to do is two things. I need to get a list of all the parent categories, from one table, I then need to list those in the dropdown, I then need to have selected the correct parent category based on the parent_id of the subcategory. Can anyone help me thanks dan = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] Supplied argument is not a valid MySQL result resource
I know this is a common error, but what does it mean. This snippet of code is something I use all the time. help please. dan __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] Supplied argument is not a valid MySQL result resource
Here is the code $parent_select = TRTD BGCOLOR=\#F7F7F7\FONT FACE=\Verdana, Arial, Tahoma\ SIZE=\2\ COLOR=\#00\Parent Category:/font/tdTD BGCOLOR=\#F7F7F7\ WIDTH=\80%\select name=\parent_id\; $parent_sql = SELECT * FROM categories ORDER BY sort_order ASC; $parent_result = mysql_query($parent_sql); while ($parent = mysql_fetch_array($parent_result) ) { -- the problem line $parent_select .= option value=\.$parent['id'].\.$parent['cat_name']./option; } $parent_select = /select/td/tr\n; print $parent_select; this is similar to code that I use to get the result for several other places --- Andrey Hristov [EMAIL PROTECTED] wrote: Possibilities: 1)There was an error when mysql_query(). Possibly the SQL statement is not correct. Trace with var_dump()/mysql_errno(). 2)You give as parameter to some of mysql_* functions a variable not returned from mysql_query(). HTH Regards, Andrey Hristov - Original Message - From: Dan McCullough [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 6:47 PM Subject: [PHP] Supplied argument is not a valid MySQL result resource I know this is a common error, but what does it mean. This snippet of code is something I use all the time. help please. dan __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] Error notification and pretty error page
How can i include error notification, like if an MySQL error occurs, to notify me of the offending page and what the error was, while having the page die quietly or nicely, like an message saying that the webmaster will be notified please continue? = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/ -- 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] Exchange substitute
I'm doing a project to move my company off of microsloth exchange. I have dont qmail with courier imap, now I was looking for suggestions for the rest of exchange features, calendaring, scheduling and so on and so forth. Is there one good package? Suggestions. thanks, dan __ Do You Yahoo!? Send FREE Valentine eCards with Yahoo! Greetings! http://greetings.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Quick question
I have a form, and if someone doesnt fill in a field it returns and asks them to filling in the missing field. I have made it so that the person doesnt lose everything, currently they will lose radio button information or checkbox information. Can someone tell me how to best keep it so the checkboxes stay checked or radio buttons stay selected. thanks, dan __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Evaluation. Easy Question but I need some help
I'm trying to evaluate form submissions. When I return a form submission cause of a missing field I want the radio and checkboxes to reflect what the client submitted. So if somone forgets to fill in their address, but has done everything else fine, I dont want them to have to refill out the form. So how would I in PHP say if $var == value1 then this radio button is checked? And how do I do it and keeping the code compact? = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] find replace quotes with single quotes
I need to strip out the double quotes and replace it with single quotes. Any help would be appreciated. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] find replace quotes with single quotes
Here is the snippet of code I'm working with. htmlMsg = displayMsg.replace(/\/gi,newHTML); --- Adam Voigt [EMAIL PROTECTED] wrote: Hope this helps ya: str_replace(\,',$data); Adam Voigt [EMAIL PROTECTED] On Tue, 2002-06-18 at 09:54, Dan McCullough wrote: I need to strip out the double quotes and replace it with single quotes. Any help would be appreciated. __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP!!! Word count
I have some clients who want to charge a flat rate for words entered, but over a certain number of words there is an additional charge, to complicate matters there is an option/addon where you can bold the lines, and there is a charge per line, so you have to calculate the total number of lines based on character total. Anyone know of way to accomplish this, I know that it will have to be done in seperate ways. but does anyone have an idea or two .. hlp thanks, dan __ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Supplied argument is not a valid MySQL result resource
What does that error mean? $result = mysql_query('select * from aannh_towns;'); echo 'info stored'; while ($query_data = mysql_fetch_array($result)) { echo , $query_data['town'], , $query_data['town_id'], ; } ? = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question about string replace -PHP
I have a script pulling in certain text from a site. I want the script to then from that retrieved text, to replace the incorrect domain with another domain. What is a way that I can do that, I know the domain that its going to put in the script, and I know the domain that I want to point it to. Any help .. = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Array question - Please help
Here is the problem. I have over 60 subdomains to check on a regular basis. I wrote a php script that gets a list from a text file and then checks whether it can open that domain/subdomain. That works great. My problem is that everything is lumped together, so I have to scan a list of 60 names for the one that fails, I also get 1 email for each time the check fails. How can I get a list broken up by failed and passed, and only get one email with a list of the subdomains that failed. Here is the script as it stands now. ?php $url_file = url.txt; $url_list = file($url_file); for($x = 0; $x count($url_list); $x++) { $url_list[$x] = eregi_replace([\n\r],,$url_list[$x]); $fp = fsockopen ($url_list[$x], 80, $errno, $errstr, 30); if (!$fp) { echo b$url_list[$x]/b has an error. $errstr ($errno)br\n; //$subject = A URL test has failed; //$message = $url_list[$x] has an error. $errstr ($errno)\r\n; /*mail([EMAIL PROTECTED], $subject, $message, From: [EMAIL PROTECTED]\r\n .Reply-To: [EMAIL PROTECTED]\r\n .X-Mailer: PHP/ . phpversion());*/ } else { echo b$url_list[$x]/b is up.br\n; } } ? = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using PHP on forms submitted to other sites - HELP
We have a client that has a form that submits to a payment processor to handle the cc processing. The visitor gets what he wants and then comes to a verification page on our clients site. He wants to buy it so he clicks the submit button and hes gone, to the payment processors site. We want to send a notification that someone has placed an order, not that they got to the payment page. So I have tried using onSubmit on the form and then placing the function name in there, but that doesnt work, its a function written in PHP to send a mail alert. Any thoughts we dont want the alert going to the guy until the visitor actually hits the submit button, and once it leaves the return notification from the processor is very limited, so I can't send it on the return from teh processor. Help please :) = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] test
test = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A quick question - Help Please !
Hello everyone, I have a quick question. I am trying to do two seperate things on one submission, it would be easy if I was submitting to my own page, but I am submitting to a payment processor company, and so several things will occur off-site, and there is nothing that comes back from the payment processor when then payment is made so I can't handle it on the return. And so what I am doing now is when you land on the page to confirm that you want to place the order an email is created and sent to the owner, I would like that to only get sent when the submit button is clicked .. and yes I have tried onSubmit with it calling my php function. Any thoughts? thanks, dan __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] A quick question - Help Please !
I have to send a form with a whole bunch of hidden fields and form fields to the remote server. I have tried sending via CURL, until I remembered that they still have to input the cc information, so that was out, and then I tried doing PHP_SELF and then if the $submit then send email and do a header(Location : redirect to the payment process with name value pairs); for some reason it either didnt like the name value or it couldnt see that the form was being submitted from order.php. --- Trout, Travis [EMAIL PROTECTED] wrote: When you submit, does the form call a php self function or are you calling a file on the remote server? If you are doing either, why not just call another php file on you local server to where you can FIRST send your email and THEN send your info to the remote server? What options do you have for sending the information to the remote server? Travis Trout -Original Message- From: Adrian Murphy [mailto:[EMAIL PROTECTED]] Sent: Monday, August 19, 2002 10:48 AM To: Dan McCullough; PHP General List Subject: Re: [PHP] A quick question - Help Please ! to do it with javascript u could post the form to another local page with a form with hidden fields - send the mail and use onload= to post the second form. would be a messy way to do it but would work. adrian murphy - Original Message - From: Justin French [EMAIL PROTECTED] To: Dan McCullough [EMAIL PROTECTED]; PHP General List [EMAIL PROTECTED] Sent: Monday, August 19, 2002 3:09 PM Subject: Re: [PHP] A quick question - Help Please ! That's REALLY strange that the payment site doesn't return anything... So the user just hits a dead-end or what? Can we see a test site? And the fact that it all needs to be secure makes it a little more challenging. Essentially, what you need is for one form to POST to two separate scripts... one local, and one on another server. My thoughts are that you'd need to POST to a local script which produces the email AND THEN submits info to the merchant. But the fact that this probably needs to be done: a) with POST b) with SSL Will prolly make it very tricky. Search the archives for emulating POST or faking POST, because I know it's been discussed before. Yes, you probably CAN do it with javascript, but I'm not sure I'd be comfortable relying on it AT ALL -- if it doesn't exist, then your site breaks -- either the email or the merchant stuff will break if you rely on JS. Justin French on 19/08/02 11:54 PM, Dan McCullough ([EMAIL PROTECTED]) wrote: Hello everyone, I have a quick question. I am trying to do two seperate things on one submission, it would be easy if I was submitting to my own page, but I am submitting to a payment processor company, and so several things will occur off-site, and there is nothing that comes back from the payment processor when then payment is made so I can't handle it on the return. And so what I am doing now is when you land on the page to confirm that you want to place the order an email is created and sent to the owner, I would like that to only get sent when the submit button is clicked .. and yes I have tried onSubmit with it calling my php function. Any thoughts? thanks, dan __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php = Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] String breaking up
I was looking to take a string like Dan and return it like D A N is it the str function that does that = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.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] Breaking a string
I was looking to take a string like Dan or Dan is great and return it like D a n or D a n i s g r e a t is it the str function that does that and if so does someone have an example? thanks = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.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]
Re: [PHP] String breaking up
This only returns the first letter? --- _lallous [EMAIL PROTECTED] wrote: $string = hey there!; $out = ''; for ($i=0; $icount($string); $i++) { $out .= strtoupper($string[$i]) . \n; // or br if output is to browser } echo $out; Richard Baskett [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Strings are arrays, so you can print out a string by doing something like this: $string = hey there!; for ($i=0; $icount($string); $i++) { echo strtoupper($string[$i]); } That's about all there is to it! :) Use the strtoupper() function if you mean to have everything uppercase like in your example. Rick I was looking to take a string like Dan and return it like D A N is it the str function that does that ===== Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.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 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] ===== Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.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]
Re: [PHP] Running PHP from Telnet/Cron
I got something similar and it had to do with a corupted binary file. It could have been on a download or the upload to the install directory. thats the only problem I had. have you tried running ? phpinfo(); ? you should see a ZendOptimizer line if its running. --- Robert Kemp [EMAIL PROTECTED] wrote: Hello-- I am getting the following error message when running a PHP script from a Telnet session or from Cron: Failed loading /usr/local/Zend/lib/ZendOptimizer.so: /usr/local/Zend/lib/ZendOptimizer.so: undefined symbol: zend_get_ini_entry. The problem appears to have started when my hosting service updated their kernel. == General Info == PHP v4.0.6 Zend Engine v1.0.6 Linux Apache v1.3.20 PHP running as an Apache Module PHP/Zend has been rebuilt (to troubleshot problem) == test.php == ?php Print Test script to help get the ZendOptimizer problem worked out...; ? == Command Line 1 (Manual) == php test.php == Command Line 2 (Cron) == php /home/rkemp/public_html/sec/admin/sitemaint.php /dev/null Has anyone seen this error before, and if so have you come up with a solution? Thanks, Robert -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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]
Re: [PHP] Re: Can If Else statements be split into code blocks??
If someone has already replied to this I apploigize for a double post. You need to put in brackets after the if statement and end bracket before the else and then another open after the else, lastly you need to close with a bracket. Example: ?php if (strstr($DomResults,$Match)) { print Congratulations! $domain.$suffix is available!; ? form method=POST action=step2.asp name=form2 pinput type=submit value=Register name=B1/p /form ?php } else { print Sorry, $domain.$suffix is already taken.; }? I hope this help. PHP is pretty easy, its just some differences that you need to get used to. Good luck. --- Brad Melendy [EMAIL PROTECTED] wrote: Ok, I figured out that just using echo seems to be the best way to do this under PHP. In ASP, you can end your code block and start in with HTML, but I couldn't get that to work with PHP. However, I was able to just use the echo statement to get the conditional HTML I wanted to show up when the proper condition was met in the If Else statement. Brad Brad Melendy [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, I'm trying to execute some HTML in an IF ELSE statement. I'm trying something like: ?php if (strstr($DomResults,$Match)) print Congratulations! $domain.$suffix is available!; ? form method=POST action=step2.asp name=form2 pinput type=submit value=Register name=B1/p /form ?php else print Sorry, $domain.$suffix is already taken.; ? Basically, it works great without the form I'm trying to insert, but with the form after the IF statement, it fails. Is what I want to do against the rules? I'm converting an ASP script I have to PHP and I have it all working under ASP. That means it should be eaiser with PHP right? ;-) Thanks in advance. ...Brad -- 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] ===== Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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] Quick question about no result
I want to show a default piece of information if my query returns no result, and what I mean by no result is the query for a store in a certain state doesnt exist. thanks dan = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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] Supplied argument is not a valid MySQL result
Warning: Supplied argument is not a valid MySQL result resource in /home/sites/projects.heathermccullough.com/web/copeland/product.php on line 61 Here is the code, I fixed it once, and I cant figure out why it keeps returning. if ($submit) { $sql = (SELECT * FROM store WHERE state = '$State' AND groups = '$group_id'); $result = mysql_query($sql); if(mysql_num_rows($result) 0) { - line 61 while ($stores = mysql_fetch_array($result) ) { $store_name .= .$stores[name]. br .$stores[address]. br .$stores[city]., .$stores[state]. .$stores[zip].br.$stores[phone]. brbr ; } } else { $store_name .= Copeland Furniture Company StorebrMain StreetbrBradford, Vermont 05033br802-222-5300bra href=\http://www.copelandfurniture.com/companystore\; target=\new\Copeland Furniture Company Store/a; } MYSQL_CLOSE(); = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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]
Re: [PHP] Re: Supplied argument is not a valid MySQL result
Got it to work. I had made a change that deleted something, not sure what, but when I went back a revision it worked, and I just added back in the html that I needed to use, but I was more careful. --- Richard Lynch [EMAIL PROTECTED] wrote: Dan McCullough wrote: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/projects.heathermccullough.com/web/copeland/product.php on line 61 Here is the code, I fixed it once, and I cant figure out why it keeps returning. if ($submit) { $sql = (SELECT * FROM store WHERE state = '$State' AND groups = '$group_id'); The ()s here are kinda silly... They tell PHP to evaluate the string before anything else in the expression, and there ain't anything else in the expression... It's like saying: $foo = (2 + 3); Doesn't hurt anything, but you look a bit silly... $result = mysql_query($sql); Add some code to the end of this line. At a minimum, use ... or die(mysql_error()); That's actually not so good on a production server, as it will present icky error messages to end users, some of whom might be hackers who then know more than they should about the internal working of your page/database/site... So, better is: ... or error_log(__FILE__ . ' ' . __LINE__ . ': ' . mysql_error()); only now you'll have to do the following in a shell prompt: tail /usr/local/apache/logs/error_log to see your error message. if(mysql_num_rows($result) 0) { - line 61 while ($stores = mysql_fetch_array($result) ) { $store_name .= .$stores[name]. br .$stores[address]. br .$stores[city]., .$stores[state]. .$stores[zip].br.$stores[phone]. brbr ; } } else { $store_name .= Copeland Furniture Company StorebrMain StreetbrBradford, Vermont 05033br802-222-5300bra href=\http://www.copelandfurniture.com/companystore\; target=\new\Copeland Furniture Company Store/a; } MYSQL_CLOSE(); -- Like music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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] Database design/relationship basics book
Does anyone have some recommendations for database books. This is something that I want to get better versed in as I have gotten along by visualizing the database and its relationship for small projects, but I think I need a better base and more knowledge. Recommendations can before both MySQL specific, a query book and a database in general, please I have done database designs for small projects by trial and error and extending original schemas, I would like to learn to do it right the first time. So any suggestions will help. thanks in advance dan __ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.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]
Re: [PHP] WXFEED Weather Script
I would like it as well. --- Brian Paulson [EMAIL PROTECTED] wrote: I am trying to locate a script called WXFEED by John Sanders. The only place this script seems to be located is on hotscripts but the link no longer works. So if any one has downloaded it and still has it around I would appreciate it if I could get a copy. Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] http://www.chieftain.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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] Can PHP take input from the command prompt interactively?
An example for ya #!/usr/local/bin/php -q ?php /* file name: shellexample.php created by: dan mccullough date created: 10/26/01 purpose: just to do a simple shell script that takes the input and places its output on the screen For more information contact Dan McCullough at 603.444.9808 To use this on the command line type [root@ns web]# php shellexample.php then type your line of text. */ function read() { $fp=fopen(/dev/stdin, r); $input=fgets($fp, 255); fclose($fp); return $input; } print(Please input your text? ); $input = read(); $string = $input; $string = preg_replace (/(.)/, \\1\n, $string); print ($string); ? --- David Yee [EMAIL PROTECTED] wrote: Can I write a command line PHP script like the following: php -q test.php Output: == 1)choice A 2)choice B 3)choice C Please enter an option: 1 == Thanks. David = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] Need a script that will read Apache Log files and generate reports
Anyone have an idea, I know there are perl scripts, but I would have to set up Perl and other stuff on my server to do this ... I dont want to. Does anyone know where the access log reader/displayer can be found. __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] What kind of looping ?
try using $count=0; before the loop (while loop is fine) then before the end of the loop $count++; inside the loop if ($count % 4) { that is where you want it to break and start running the other code } so you would have $table = table; $counter = 0; while ($tableset = mysql_fetch_array($result) ) { $table = table; if ($counter % 4 == 0) { $table .= tr tdFILE 0/td tdFILE 1/td tdFILE 2/td tdFILE 3/td /tr; } else { $table .= tr tdFILE 4/td tdFILE 5/td tdFILE 6/td tdFILE 7/td /tr; } $counter++; } $table .= /table; something like that, if this doesnt get the total desired result try playing with the % 4 == 0 to like == 1 or 2, see if that gets a desired result. please please this is some psudo code I threw together you might need to tweek. --- Steve Maroney [EMAIL PROTECTED] wrote: Hey guys, I cant figure out what functions and/or looping I need to use for what I need to do. Im reading a directory and pushing all the file names in the directory into an arrary. I want to be able print out each element(file name) in the array into an HTML table while limiting a certain number of elements for each row. Example: $image_dir = opendir(../images/bullets/); while ($file = readdir($image_dir)) { $file_list[] = $file; }; Now $file_list[] has some number a file names. I want print 4 file names into a row. Each file name has to be in its on cell. table tr tdFILE 0/td tdFILE 1/td tdFILE 2/td tdFILE 3/td /tr tr tdFILE 4/td tdFILE 5/td tdFILE 6/td tdFILE 7/td /tr /table I would image I would use a for loop, but I cant figure it out. Can somone assist me ? Thanks, Steve -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] Very interesting and challenging question
I need to take a file, similar to this and strip it of everything but this, and write it to a database. Are there any thoughts on how to get the information out, all the files are consistent. !-- start strip -- Race Final Watkins Glen International 2.450 miles31 laps Fin Str Driver Laps Led Pts Qual Reason Out !-- end strip -- !-- start output -- 1 2 18 Dynamike18 31 24 185 118.007 Running 2 7 68 jcordeiro310 170 116.078 Running 3 5 80 MattyJ140310 165 116.881 Running 4 1 28 RUDD#28 316 165 118.219 Running 5 13 57 1SpeedDemon 310 155 Running 6 9 84 legends3 311 155 115.131 Running 7 3 56 RobertFx3D 310 146 117.854 Running 8 12 55 24skids 310 142 98.644 Running 9 4 53 Mark_O_10310 138 117.323 Running 10 8 91 JJinsane 310 134 116.061 Running 11 108 beertipper 310 130 114.154 Running 12 11 44 WisOutLaw 100 127 111.022 DNF 13 6 51 BdgrOtlw 30 124 116.702 DNF !-- End 1st output -- !-- Start second output -- Race time - 72:52.030 Average speed - 62.538mph Margin of victory - 1.944sec Caution flags - 7 # of lead changes - 3 Weather - Clear 70^ E 0mph !-- End second output -- thanks for any help = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] Help anyone
I need to edit a entry into the database via an admin script, how do I work in a radio selection box, and populate it with the correct selection? = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] Help anyone
Here is what I did. if ($edit[status]==On-line) { print Status: select name=\status\\n; print option value=\On-line\ selectedOn-line\n; print option value=\Off-line\Off-line\n; print /selectbr\n; } else { print Status: select name=\status\\n; print option value=\On-line\On-line\n; print option value=\Off-line\ selectedOff-line\n; print /selectbr\n; } //and if ($edit[single]==1) { print Single: Yes input type=\radio\ name=\single\ value=\1\ checked or No input type=\radio\ name=\single\ value=\0\brbr\n; } else { print Single: Yes input type=\radio\ name=\single\ value=\1\ or No input type=\radio\ name=\single\ value=\0\ checkedbrbr\n; } that works --- faeton [EMAIL PROTECTED] wrote: Hello Dan, Thursday, November 29, 2001, 7:11:22 PM, you've written: DM I need to edit a entry into the database via an admin script, how do I work in a radio selection DM box, and populate it with the correct selection? Something like that, maybe :) input type=radio name=var value=1 input type=radio name=var value=2 input type=radio name=var value=3 Ivan 'Faeton aka xetrix' Danishevsky ICQ(240266) [EMAIL PROTECTED] www.xemichat.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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] SMS
I think you need an SMS server to broadcast the data. Am I correct? Anyone --- Daniel Berwig [EMAIL PROTECTED] wrote: Does anyone know how could I send data from php through SMS to a cel phone? I simply can't find info about that. Thanks in advance, Daniel Berwig. -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] SMS
That example I sent was from a place where they have the swsms shared object which you can get in a developers license, I havent actually tried it, but was looking at it for a project. --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: I think you need an SMS server to broadcast the data. Am I correct? you can also send sms with the mail function, but a gsm modem is by far the best, so for a stabile service either rent a sms service or get somekind of a gsm modem. AFAIK -- Henrik Hansen -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] SMS
somewhere in here ... I'm not familiar with the actual object, but if you have success withit I would like to hear how you are doing with it. http://www.simplewire.com/developers/code/ --- Henrik Hansen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] (Dan McCullough) wrote: Heres a code snippet: Sorry for leading astray. // load the swsms module dl( ../swsms.so ); never heard of a sms module in php, where can you get this? -- Henrik Hansen -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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 work with MySQL tables WITHOUT telnet, SSH or PhpMyAdmin
Yes most shared hosts will not allow the creation of multiple databases. Just one, so you will have to make use with table creation. dan mccullough programming/enginnering 603.444.9808 --- Sverre Johan Tøvik [EMAIL PROTECTED] wrote: At 15:19 -0500 30-11-01, [EMAIL PROTECTED] wrote: Our web host does not support telnet or SSH for its clients and is not interested in working with PhpMyAdmin at the moment (I think I need their assistance if I want to use PhpMyAdmin, right?). Is this rather typical of web hosts? You do not need their assistance to use phpMyAdmin - it's just another php site. All you need to do is edit its config file, where you enter the database names, usernames and passwords for all your databases. You can then choose a database from the phpMyAdmin home page. The only limitation is I believe is that to create new databases, you'll have to have create rights on the username for one of the databases you set up, and choose that database in phpMyAdmin before creating the new database with SQL. Sverre -- disclaimer I speak for myself only! /disclaimer to be yourself, in a world that tries, night and day, to make you just like everybody else - is to fight the greatest battle there ever is to fight, and never stop fighting -- e.e. cummings -- 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! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- 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] BEST Book for Learning PHP/MySQL
Also go to Amazon or BN and look through there and see the recomendations. --- Kurt Lieber [EMAIL PROTECTED] wrote: There's dozens upon dozens of messages in the archive about this topic, which comes up at least once per month. I believe there's also a blurb or two about PHP books on the PHP web site, php.net. Please check those resources. --kurt On Monday 03 December 2001 08:35 pm, Monty wrote: I'm a PHP and MySQL beginner. What's the best book I can buy that will get me started using both these technologies? 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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] A few questions on switching redoing site in PHP
If everyone could gather around for a minute or two. We are looking at switching from a propriatary JSP/JS/Java based system and going to PHP as our ecommerce system. We currently have Oracle db and hosted on Sun equiptment, which we are in for another 3 years, although upgrades are planned. We hate the current system, it was picked for us in a closed room environment. We have been looking to get off ever since we launched, actually even before we launched. I have been developing in PHP before I got this job and advised against the vendor that we had, now I want to develop my own system. This is the backend systems we have. One system that I'm not to sure of is MQ Series, can PHP tie into that, or would we have to work around that, MQ messages back and forth with our legacy system to give a real-time connection to our actual customer and inventory and order processing pieces, although some C++ code sits between that and the JS layer. Another concern is how well does Sun and PHP get along, we have these nice boxes that is actually handleing the memory hog that we have now, and I know that we couldnt just dump the servers. Anyone have an idea on a site that processes between 150-250 orders and averages $65k a day, if PHP and MySQL can handle that, or would I have to go to something like MSSQL (I know I know MS and PHP .. hahahahahaha). All and any suggestions are welcome. dan mccullough web technology 603.823.5545 x 1119 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity comes brilliantly disguised as bad news. __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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]
Re: [PHP] PHP Help required
I can help, send me an email. For some reason I cant send directly to you from my account. --- MrBaseball34 [EMAIL PROTECTED] wrote: I would like to know if someone could help create: (All mySQL Tables already created) 1. A Registration page. Needed fields: UID UserName UserPwd UserLevel EmailAddr TeamName (select box loaded from a TeamNames Table) 2. A login page whereby a user enters UserName and UserPwd and gets redirected to form to fill in scores for baseball games. 3. Will select game from games list (loaded from Games Table) ordered by user's teamname. Scores page (already done) to be stored in Games table. Games Table Fields: GameID GameNum GameDate HomeTeam HomeScore VisitorTeam VistorScore Field Division 4. Then when the score is entered for the game that was selected, we will then update the standings (Standings Table), depending upon who won the game. Standings Table Fields: ID TeamName Wins Losses Ties Points (3 points for win and 1 point for tie) {we allow ties} Division The Standings table will already be populated with 0 wins, 0 losses, 0 ties and 0 points The Games Table will already be populated with the season schedule. The Teams Table will already be populated with the TeamNames and Divisions. I already have the Scores page HTML done. I am beginning to work on the Storing of the scores to the Games Table and updating the Standings. I just need help with the Registration and Login pages. I am also currently modifying XMBForum to use on our site, listed below, to replace an EZBoard. It is a very good opportunity to learn PHP, too. Mind you, that I am a somewhat new PHP user but I have done programming before in Clipper, VB, Delphi, ColdFusion and several others. This project will have to go online by 3/31. Our season usually starts the first weekend of April. I will need some testing time to test and debug anything that is written. What would you require to participate in this project? Regards, Eddie Shipman (MrBaseball34 on XMBForum.com forums) Austin Metro Baseball League http://www.austinmetrobaseball.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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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]
RE: [PHP] header(Location:blah...) - passing variables
It has been my idea to make a function, and pass the fields, then register a global feedback var and then check one by one each required field, or what ever you are trying to verify in the fields. function formCheck ($username,$password,$smellycat) { global $feedback, $username, $password; if (!$username) { $feedback .= Yo! This ain't right ... fix it!; return false; } blah blah blah ... --- Richard S. Crawford [EMAIL PROTECTED] wrote: My approach has been to pass an error code back to the original form. form.php: ?php print(form aciton=\formVerify.php\); print(a buncha form crap); if ($errcode==1) print (Your user id is wrong. You suck); if ($errcode==2) print (Your password is wrong. You really suck); print(/form); ? Then in formVerify.php: ?php ...error checking code... if (userID invalid) header(Location: form.php?errcode=1); if (password invalid) header(Location: form.php?errcode=2); else header(Location: goodpage.php); ? You could probably also use cookies to pass the error code back and forth, but that's probably overkill and unreliable. (Sorry if the pseudo-code I used above offends anyone with the use of the word suck; the futile job search has got me really annoyed right now.) At 10:25 AM 12/4/2001, Mark Charette wrote: I cheat and just include the original form on error ... Almost all my input values are set to PHP variables in the form. The 1st time through none are set, so the values are blank. After submitting the form, I check for validity. If there are errors I mark the errors, generate an error string, and include the form. That way all previously typed in data remains in the form without me having to tell the user to hit the back button, and there's no horribly long URL string resetting all those values. There's a bit more work than that (using htmlspecialchars et al.) but if you start creating forms with error checking indication in mind it's really easy to do validation and redisplay if necessary. Mark C. Hi, I wonder if someone could tell me whether or not the following is possible? I have an HTML form which passes a username and password to a PHP script for validation. If either is not valid, I would like it to return to the previous page - carrying with it a variable plus the submitted form information... =-=-=-=-=-=-=-=-= if (strlen ($password1) 4 ) { $err = Password must be more than 4 characters long; header(Location:http://somelocation.php;); // ^-- at the location, the $err and form variables will be available exit; } -- 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] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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]
Re: [PHP] PHP newbie alert
EditPlus2, there might be a newer version, trial never runs out. HomeSite 4.5, there is a Macromedia version, 60 day trial, very very worthwhile for a purchase. --- Andrew Forgue [EMAIL PROTECTED] wrote: On Tue, 2001-12-04 at 05:25, shaun murphy wrote: Hello! Being one not to refuse a challenge, I have been asked to administer and update a PHP based website. I was wondering what a good editor is for such a task. I have been having a look at Dreamweaver as I use that quite a lot but are there any extensions I should be using? -- 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 myself use VIM. Http://www.vim.org ( Yes, There IS a windows version) Pros: Very, Very Stable. Excellent Syntax higlighting Many, Many Features Cons: If you have never touched a 'vi' based UNIX editor, you probably cant use this. Dont let this deter you.. But it has a VERY steep learning curve -Andrew -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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] Logic
Question. I am trying to check to see if a certain piece of code should be run. Here is an example. if ($type != add) || ($type != edit) || ($type != delete) {//if this or this or this then then run this code } else { then run this } Is this correct, for some reason this isn't working. = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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]
Re: [PHP] Logic
that didnt work,i started off with if ($type != add) { that works } else { this works } I have done this before I'm just having a brain cramp. if (($type != add) || ($type != edit) || ($type != delete)) { print $subcat_output; } else { print TRTD BGCOLOR=\#F7F7F7\ WIDTH=\20%\/TDTD BGCOLOR=\#F7F7F7\ WIDTH=\80%\FONT FACE=\Verdana, Arial, Tahoma\ SIZE=\2\ COLOR=\#00\a href=.$PHP_SELF.?area=subcategoryBack to List of Subcategories/FONT/TD/tr; } --- Richard S. Crawford [EMAIL PROTECTED] wrote: You need parentheses around the entire antecedent: if (($type !=add) || ($type !=edit) || ($type !=delete)) { //etc ^--- Note these parentheses---^ Hope that helps. At 05:28 PM 12/4/2001, Dan McCullough wrote: Question. I am trying to check to see if a certain piece of code should be run. Here is an example. if ($type != add) || ($type != edit) || ($type != delete) {//if this or this or this then then run this code } else { then run this } Is this correct, for some reason this isn't working. Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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] md5 decrypt
Is there away to take a md5 encrypted password and decrypt it and give that to the client, if they fogot their password. = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Buy the perfect holiday gifts at Yahoo! Shopping. http://shopping.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]
Re: [PHP] forms PHP
In some browsers that is what will happen on a form, is that will process the infromation twice. --- Richard S. Crawford [EMAIL PROTECTED] wrote: I've done something similar like this: a href=javascript:window.back() Click here to go back /a In the situations in which I've used it, the form data from the previous page is still in the form fields. Potential downsides of this approach: the data has not yet been processed. Or, if it has been, you run the risk of processing it twice. Also, it may be unreliable depending on how the user's cache is set up (though I've never had any problems reported to me). So, it may or may not suit your needs. At 09:44 AM 12/6/2001, [EMAIL PROTECTED] wrote: I think I'm making this harder or more confusing than it really needs to be. I have a form that is spread out over four pages. I want to be able to give the user the opportunity to return to page 1 from page 3, for example, by providing a regular link on page 3 to return to page1. When they click on this link, I want the info. originally entered in page 1 to still be there. Do I need to use sessions to do this or is there another way? Thank you, Shawna -- 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] Sliante, Richard S. Crawford http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Y!: rscrawford MSN: [EMAIL PROTECTED] It is only with the heart that we see rightly; what is essential is invisible to the eye. --Antoine de Saint Exupéry Push the button, Max! -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] Apache log files
I was looking for the name of the addon to webalizer that makes it nice looking and better features. I have looked over and over again, but I cannot find it, anyone know the name? dan = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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] Shell scripting
I am setting up a shell script to provide a menu for some tasks that our server admin would like to do via script rather then vi'ing the file, now I am almost finished but I would like to get rid of this ugly part of the output. X-Powered-By: PHP/4.0.4pl1 Content-type: text/html Is there away that I can get the echo to stay off for that part. dan = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.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]
RE: [PHP] Logo proposal
But for the use of visualization you might want to pick something friendly and fast, so they think of PHP in that way, instead of strange and slow. --- Andrew Chase [EMAIL PROTECTED] wrote: Maybe an animal beginning with P would be a good Mnemonic device (and good for alliteration; think The PHP Panda or The PHP Platypus.) Hmm, I guess Panda and Platypus aren't particularly powerful animals, though. :/ Other animals beginning with P: Pelican Panther (cheesy) Polliwog Protozoa Of course, the Penguin is already spoken for. :) Personally, I don't have a problem with the current PHP logo... From a marketing standpoint, I don't know; has MySQL become a more attractive prospect to the pointy haired bosses of the world since they streamlined their logo and added a Dolphin? It would be interesting to know. If PHP was going to adopt a mascot, I kinda like the idea of the Platypus. If you want to force a metaphor, think of PHP as an interesting language that fits between traditional scripting languages and the HTTP server - sort of like the Platypus is an interesting critter that fits somewhere between mammal and.. whatever else. :) -Andy -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 2:02 AM To: PHP; Valentin V. Petruchek Subject: RE: [PHP] Logo proposal Chinchillas are fluffy, and I don't think anyone is using them for their logo. -- From: Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]] Sent: 10 December 2001 16:58 To: PHP Subject: [PHP] Logo proposal Hello world of php-programmers! It seemes to me PHP is very powerful tool and very popular among web-programmers, too. As for me I use php for solving web tasks for 2 years and I'm very satisfied with it. It seemes to me current PHP logo (can be found by http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common logo without any idea except using title in it. I propose to create and develop new PHP logo corresponding to its power. My propose is WoodPecker (e.g. like Woody). Other propositions? Respectfully, Zliy Pes http://www.zliypes.com.ua -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
RE: [PHP] Logo proposal
That was what I was going to call it ... no your right I'll go back to my original idea of phast and phriendly ... how about phcat. --- Armin Hartinger [EMAIL PROTECTED] wrote: Better not, noone wants PHP to be associated with something freakish. Or is that Phreakish? -Armin On Wed, 2001-12-12 at 13:16, Dan McCullough wrote: In the spirit of Dr Morrow(sp), how about we take the best part of Linux(Penguin) and MySQL(Dolphin) and make our own. --- Armin Hartinger [EMAIL PROTECTED] wrote: Personally, I think it should be something f-based ... the f will then be replaced with the ph ... e.g. Phish etc... Also I think it should be something maritime ... Penguin, Dolphin After all, Linux, PHP MySQL is the killer-combo, isn't it? -Armin On Tue, 2001-12-11 at 19:32, Andrew Chase wrote: Maybe an animal beginning with P would be a good Mnemonic device (and good for alliteration; think The PHP Panda or The PHP Platypus.) Hmm, I guess Panda and Platypus aren't particularly powerful animals, though. :/ Other animals beginning with P: Pelican Panther (cheesy) Polliwog Protozoa Of course, the Penguin is already spoken for. :) Personally, I don't have a problem with the current PHP logo... From a marketing standpoint, I don't know; has MySQL become a more attractive prospect to the pointy haired bosses of the world since they streamlined their logo and added a Dolphin? It would be interesting to know. If PHP was going to adopt a mascot, I kinda like the idea of the Platypus. If you want to force a metaphor, think of PHP as an interesting language that fits between traditional scripting languages and the HTTP server - sort of like the Platypus is an interesting critter that fits somewhere between mammal and.. whatever else. :) -Andy -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 11, 2001 2:02 AM To: PHP; Valentin V. Petruchek Subject: RE: [PHP] Logo proposal Chinchillas are fluffy, and I don't think anyone is using them for their logo. -- From: Valentin V. Petruchek [SMTP:[EMAIL PROTECTED]] Sent: 10 December 2001 16:58 To: PHP Subject: [PHP] Logo proposal Hello world of php-programmers! It seemes to me PHP is very powerful tool and very popular among web-programmers, too. As for me I use php for solving web tasks for 2 years and I'm very satisfied with it. It seemes to me current PHP logo (can be found by http://www.php.net/gifs/logo.gif) doesn't suite to PHP. It's common logo without any idea except using title in it. I propose to create and develop new PHP logo corresponding to its power. My propose is WoodPecker (e.g. like Woody). Other propositions? Respectfully, Zliy Pes http://www.zliypes.com.ua -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
RE: [PHP] Logo proposal
Phree Phwilly --- Billy Harvey [EMAIL PROTECTED] wrote: On Wed, 2001-12-12 at 08:11, Armin Hartinger wrote: Personally, I think it should be something f-based ... the f will then be replaced with the ph ... e.g. Phish etc... Also I think it should be something maritime ... Penguin, Dolphin After all, Linux, PHP MySQL is the killer-combo, isn't it? -Armin H - killer - how about an Orca? We'll pretend that they get along well with the MySQL dolphin, but PHP is definitely a killer app. Billy -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] a piece of PHP history
Not many do, at least at first, they just were looking for a better way to do something and decided to share with the rest of us. thanks for the link. dan --- Nicolas Costes [EMAIL PROTECTED] wrote: Interesting ... Did he think about generating such a movement ??? Le Mercredi 12 DĂ©cembre 2001 15:38, Monte Ohrt a Ă©crit : Google now has 20 years worth of newsgroup archives. Here is a link to what is probably the first PHP post by Rasmus. http://groups.google.com/groups?q=%22Personal+Home+Page%22+author:Rasmus+au thor:Lerdorfhl=enscoring=das_drrb=bas_mind=17as_minm=5as_miny=1981as_ maxd=12as_maxm=12as_maxy=1995rnum=2selm=3r7pgp%24aa1%40ionews.io.org -- ( * Nicolas Costes, //\\ IUT de La Roche / Yon ( \/ ) [EMAIL PROTECTED] http://luxregina.free.fr -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
RE: [PHP] Re: Script like this for PHP
Heres a function I wrote some time back for an ecommerce site, works on the same principle. SCRIPT LANGUAGE=javascript !-- function ghShow(){ if (document.all){ // IE browser detected document.all.gh.style.visibility = visible; } else if (document.layers) { // Netscape browser detected document.gh.visibility = visible; } } //-- /SCRIPT then on the link. A HREF=#ghSpot onClick=ghShow() hope this helps dan --- Boget, Chris [EMAIL PROTECTED] wrote: The pop outs are done using JavaScript. Its something to do with setting the STYLE=visibility: hidden property of the HTML element. I'm not sure exactly how its done though. Yeah, and it only works on IE (and maybe NN6+). It won't work (the same way) on NN 6. Chris = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] Re: CDBaby.com
That and this is a general list, so leaning about other big sites using PHP as their language of choice is welcomed, and some of us who are trying to convince thier higherups that PHP is a valid/less expensive choice for a big ecommerce site. --- Vincent Stoessel [EMAIL PROTECTED] wrote: Richard has given so much help on this list over the years that even if it is a spam I don't mind. Congrats Richard! Mike Eheler wrote: I'm not sure what to make of this? Is it spam? Is it an acclaim? What is it? Mike Richard Lynch wrote: As you may know, I run a tiny record label No Genre in Chicago. Ulele's Seed CD released last week on No Genre has been selected as a Featured CD on the FRONT PAGE of http://cdbaby.com/ This is a HUGE DEAL in the independent music world! CDBaby is the 2nd-largest on-line retailer of music CDs, only behind Amazon.com, and gets God knows how much traffic. Since 1996 when he started it to sell his own CDs and a few bands he was friends with CDBaby has built up to: o 11,810 artists sell their CD at CD Baby. o 149,538 CDs sold online to customers. o $903,821.30 paid to artists. They get about 40 CDs *every* day, so it's a pretty big honor. Oh, did I mention this site and the admin site at http://cdbaby.net; and the community site at http://cdbaby.org are all *ENTIRELY* PHP-based, and written by a musician who isn't really a programmer? He picked PHP as the only language that didn't scare him away. Anyway, if you like music or just want to see how slick a PHP site from a non-programmer can be, check out his sites. http://cdbaby.com/ulele/ -- Vincent Stoessel [EMAIL PROTECTED] Java Linux Apache Mysql Php (JLAMP) Engineer (301) 362-1750 Mobile (410) 419-8588 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] Performance
Here is one thing that I do, of course there is 50 ways you can do anything. All coding, well 90% of the PHP is done in the head, all output in coposed in variables, and outputted through the code. All SQL is done there as well, and an mysql close is done at the end of that area. If there is any logic in the where the html is, its smallish if else statments. Small example. ? all php logic. $sql = ; $cat_output = tabletr while ($category = mysql($result)) { $cat_output .= td.$category['name']./td; } $cat_output = /tr/table $sql = ; if () { $subcat_output .= ; } else { $subcat_output .= ; } $sql = ; $sql = ; $sql = ; mysql_close(); ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body ?print $cat_output; ? /body /html Something a little like that --- René_Fournier [EMAIL PROTECTED] wrote: Is it true that mixing HTML and PHP--switching back and forth with ?php ? tags--slows down performance? (I'm using PHP4.) Is it better to echo output than to drop out of PHP mode? And concerning database connections, my ISP asks that I always close a MySQL connection with a mysql_close()--which I can understand. But I'm curious, if I have to make, say, 10 SELECTs throughout a page (in the header, body, and footer), is it perhaps faster to use the mysql_close() at the very end of the page (in the bottom of the footer.inc)? In other words, is there any disadvantage performance-wise (or stability reason) to open and immediately thereafter close mysql connections? Can anyone recommend an article or two on coding techniques for improving PHP and MySQL performance? I don't wan to spend the rest of my life optimizing my php code, but if I knew a few basic rules about its performance characteristics, I might be able to make better decisions when coding. Thanks. ...Rene --- René Fournier, [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] __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
[PHP] Logo proposal - first thought
Go here and take a look for a first pass, first idea of what an ant might look like. http://www.heathermccullough.com/php_logo.gif This logo keeps the original familiar (like some wanted) and adds an industrial appeal. Please feedback. dan mccullough __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
RE: [PHP] Logo proposal - voting script!
Also if you hit refresh --- Alok K. Dhir [EMAIL PROTECTED] wrote: Good idea. You may want to write a cookie to keep ppl from voting multiple times (I confess, I hit it a couple times on Phrog in order to see if you were checking for this)... Then I read the list and decided I liked Peacock better, so I voted for that too. ;) Although, in retrospect, I think I like Pelican best. It keeps with the aquatic theme of our other favorite open source tools (Linux Penguin, MySQL Dolphin)... Guess I'll go vote again... ;) Al -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]. net] On Behalf Of Michael Cronström Sent: Thursday, December 13, 2001 12:55 PM To: [EMAIL PROTECTED] Subject: [PHP] Logo proposal - voting script! OK guys, a voting script! at: http://zoon.se/vote/logo.php try it :) Michael Cronstrom Web Inventor At 13:26 13/12/01, you wrote: I'd kind of ignored this whole thread thinking it was going on and on, but in the end I have to say something :) None of the other animals really captured my attention, but having an Ant would be quite cool. Not because of the ant on its own, but it's usually a whole bunch of ants that really really do achieve something (just remembering all those national geographic programs). It's a bunch of people that have grown PHP into what it is and I think that fits. I'd go for the ant myself :) Someone put up a voting script ! Ade --- i n o v i c a h o s t i n g . c o m -- Powerful hosting from www.inovicahosting.com -Original Message- From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] Sent: 13 December 2001 12:05 To: PHP Subject: Re: [PHP] Logo proposal Aunt is more similar very similar to PHP. Very industrious and powerful ;) - Original Message - From: PHPGalaxy.com [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Thursday, December 13, 2001 1:31 PM Subject: Re: [PHP] Logo proposal Actually I heard it's 50 times it's weight, but I refuse to be anal about it. =) Who's to say ants dont work just as hard in the winter? We can't se em.. unless it's because they're dormant in the winter, in which case I just made myself look INCREDIBLY stupid =) -- 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] -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] Performance
Well its like anything else, its personal preference and who your talking too, this is standard coding pratice offered by our development firm, and I have continued the practice. To be honest, you should almost never have logic code contained on the same page as your presentation code. I have never run into a problem with people saying that they are seeing lags or such, but then again that could just be because the code that is on those pages is compact. Most ASP people and JSP I know do it either this way for most of their code, there is some minor for loops or if statments in the HTML code, either that or the have functions and class stored elsewhere. dan --- Mike Eheler [EMAIL PROTECTED] wrote: The problem with that is giving feedback to the user. If you're busy generating a string to display to the user and the mysql server is running slow, or for whatever reason, the user is looking at a blank page until the process is completed entirely, then they have all the data dumped on them at once. For someone on a modem, this is a bad thing, because first they're waiting for the page to be created, then they're waiting for the data to download. I've always been taught by people who have been working in this industry for years (even back in my ASP days) that it's always best to send data to the user's browser as soon as possible. Mike Dan McCullough wrote: Here is one thing that I do, of course there is 50 ways you can do anything. All coding, well 90% of the PHP is done in the head, all output in coposed in variables, and outputted through the code. All SQL is done there as well, and an mysql close is done at the end of that area. If there is any logic in the where the html is, its smallish if else statments. Small example. ? all php logic. $sql = ; $cat_output = tabletr while ($category = mysql($result)) { $cat_output .= td.$category['name']./td; } $cat_output = /tr/table $sql = ; if () { $subcat_output .= ; } else { $subcat_output .= ; } $sql = ; $sql = ; $sql = ; mysql_close(); ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html head titleUntitled/title /head body ?print $cat_output; ? /body /html Something a little like that --- René_Fournier [EMAIL PROTECTED] wrote: Is it true that mixing HTML and PHP--switching back and forth with ?php ? tags--slows down performance? (I'm using PHP4.) Is it better to echo output than to drop out of PHP mode? And concerning database connections, my ISP asks that I always close a MySQL connection with a mysql_close()--which I can understand. But I'm curious, if I have to make, say, 10 SELECTs throughout a page (in the header, body, and footer), is it perhaps faster to use the mysql_close() at the very end of the page (in the bottom of the footer.inc)? In other words, is there any disadvantage performance-wise (or stability reason) to open and immediately thereafter close mysql connections? Can anyone recommend an article or two on coding techniques for improving PHP and MySQL performance? I don't wan to spend the rest of my life optimizing my php code, but if I knew a few basic rules about its performance characteristics, I might be able to make better decisions when coding. Thanks. ...Rene --- René Fournier, [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] __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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] __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] Logo proposal - first thought
No alas I can not take credit for the drawing, my better half who is a creative web designer made the comp, and I will give her your feedback so she can do a second comp. --- Julio Nobrega Trabalhando [EMAIL PROTECTED] wrote: Hey, love the colors! But that's a regular ant. Where's the catch twist exclusive hidden feature? It's an ant, but ain't no ant like other ant :-) I don't know, usually when something common can be found on a design there's a little mod added. Did you draw it? On 1024 video resolution looks real great :-) Really, I liked the colors. :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 Dan McCullough [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Go here and take a look for a first pass, first idea of what an ant might look like. http://www.heathermccullough.com/php_logo.gif This logo keeps the original familiar (like some wanted) and adds an industrial appeal. Please feedback. dan mccullough __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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] ===== dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] another easy question that is stumping me...
if ($x != 1) { header (location: index.php); } else { header (location: cart.php?sid=$sid); } --- Ward, Mark [EMAIL PROTECTED] wrote: Hello all, I've got another problem that is bothering me, yet I'm sure it should be very easy to fix. Within my PHP script I want to redirect the user to another page depending on the condition. If the user fails to meet the condition, I want to send them back to the start page. If they do meet the condition I will allow them to continue... I'm sure it's very simple. For some reason it's not coming to me though. Any help is appreciated. Thanks, Mark Ward -- 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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
Re: [PHP] How to test the load
Is this to test load time? To see under what load the script finially craps out, or the server? --- jimtronic [EMAIL PROTECTED] wrote: Hi, This may be more of webserver question, but what methods are used to test the load on a php script or a family of scripts. I'm guessing that apache (or equiv) would have a problem before PHP under a heavy amount of traffic, right? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [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] = dan mccullough Theres no such thing as a problem unless the servers are on fire! __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at 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]
[PHP] Help help help ... or something like that
I have a burning question that needs to be looked at, and see if someone can give me an idea of a way to get the desired result. Are you ready. Here is my problem, I need to strip out of an mbox file everything but the body of the email, now to complicate matters this is an extremly large file, now seeing as it is a mbox file, and there for has a set pattern of information display, I figure there must be some way of striping the header information. Here is my code, which displayes the file, very easy and gives me the file size. ? $fcontents = file(/home/sites/projects/web/extractor/Main.mbx, r); $file_size = filesize (/home/sites/projects/web/extractor/Main.mbx); echo bSize of this file is/b - . $file_size . brbr; while (list ($line_num, $line) = each ($fcontents)) { echo $linebr\n; } clearstatcache (void) ? Here is the output resulting from the above code, I have only copied 3 listings. Size of this file is - 2915641 From Tue Aug 21 10:32:42 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB392F8015A; Tue, 21 Aug 2001 10:32:41 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:41 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071585 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: CA Name:: Alan T. Lim Address:: 3494 Yuba Avenue City:: San Jose e-mail: [EMAIL PROTECTED] Zip:: 95117 opt-in: yes Button: Send Request From Tue Aug 21 10:32:50 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB414EB01A6; Tue, 21 Aug 2001 10:32:49 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:50 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071586 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: Colorado Name:: Paul Wu Address:: 2313 Hampshire Road City:: Fort Collins e-mail: [EMAIL PROTECTED] Zip:: 80526 opt-in: yes Button: Send Request From Tue Aug 21 10:32:58 2001 Received: from killer2.nextmill.net [216.115.243.3] by thedigitallab.com with ESMTP (SMTPD32-6.05) id AB494ED01A6; Tue, 21 Aug 2001 10:32:57 -0700 Subject: Kenwood Sovereign DVD Promo Sender: [EMAIL PROTECTED] From: [EMAIL PROTECTED] Date: Tue, 21 Aug 2001 10:32:57 -0700 To: [EMAIL PROTECTED] X-Priority: 1 X-MSMail-Priority: High Content-Transfer-Encoding: Quoted-Printable MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailer: JMail 3.7.0 by Dimac (www.dimac.net) Message-Id: [EMAIL PROTECTED] X-RCPT-TO: X-UIDL: 298071587 Status: U Contact Us Subject: Kenwood Sovereign DVD Promo State:: Kentucky Name:: Janis Ross Address:: 2033 Damson Drive City:: Villa Hills e-mail: [EMAIL PROTECTED] Zip:: 41017 Button: Send Request This is the desired result: Kenwood Sovereign DVD Promo Kentucky Janis Ross 2033 Damson Drive Villa Hills [EMAIL PROTECTED] 41017 Kenwood Sovereign DVD Promo Colorado Paul Wu 2313 Hampshire Road Fort Collins [EMAIL PROTECTED] 80526 yes Kenwood Sovereign DVD Promo CA Alan T. Lim 3494 Yuba Avenue San Jose [EMAIL PROTECTED] 95117 yes Please any help would be greatly appreciated ... thanks dan = Dan McCullough = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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] Another question
Okay I have stripped all header and bogus crap out of this file. Now I am left with formatting and breaking the data up. How can I do that? Here is the script that gets me a clean file and print out. These a piece thats missing up that is a command line script that parses the file for this information. ? $fcontents = file(/tmp/mail_file.tmp, r); $file_size = filesize (/tmp/mail_file.tmp); echo bSize of this file is/b - . $file_size . brbr; while (list ($line_num, $line) = each ($fcontents)) { //name, address, city, state, zip, email, optin end of line //can you remove the field name echo $linebr; } clearstatcache (void) ? Here is my output: State:: CA Name:: Alan T. Lim Address:: 3494 Yuba Avenue City:: San Jose e-mail: [EMAIL PROTECTED] Zip:: 95117 State:: Colorado Name:: Paul Wu Address:: 2313 Hampshire Road City:: Fort Collins e-mail: [EMAIL PROTECTED] Zip:: 80526 State:: Kentucky Name:: Janis Ross Address:: 2033 Damson Drive City:: Villa Hills e-mail: [EMAIL PROTECTED] Zip:: 41017 Here is the desired result, this also involves reordering information: Alan T. Lim 3494 Yuba Avenue San Jose CA 95117 [EMAIL PROTECTED] yes Paul Wu 2313 Hampshire Road Fort Collins Colorado 80526 [EMAIL PROTECTED] yes Janis Ross 2033 Damson Drive Villa Hills Kentucky 41017 [EMAIL PROTECTED] yes any help would be appreciated thanks dan = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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] last bit of help ....
I need to output an array to a text file, now I have created the text file now I just need to write to it, well I need to get the output of the browser to this text file. HOw can i do this, oh and return each line ... heres the code that gets the output array1.php ? // Mail text file extractor. // Written to extract out certain parts of the file and output in a csv friendly format. // Dan McCullough include(functions.php); if ($submit) { $extract = eXtractor1($file_name,$tmp_file_name,$new_file_name); if ($extract) { //here goes, get the parsed file from the output of the grep command. //read the file and output $fcontents = file(/tmp/$tmp_file_name, r); // run this funtion to format and display the file in a certain output. function GetField($offset) { global $fcontents; global $new_file_name; return trim(substr($fcontents[$offset], strpos($fcontents[$offset], ))); } for($i = 0, $count = sizeof($fcontents); $i $count; $i += 6) { // Make the numbers 1-6 constants if desired echo GetField($i + 1) . , . GetField($i + 2) . , . GetField($i + 3) . , . GetField($i) . , . GetField($i + 5) . , . GetField($i + 4) . ,yesbr\n; } exit;} } ? html head titleExtractor/title /head body form method=post action=? echo $PHP_SELF; ? Please input the name of the text file.brbr File to extract: input type=text name=file_namebr Temp file name: input type=text name=tmp_file_namebr CSV File Name: input type=text name=new_file_namebr input type=submit name=submit value=submit /form /body /html function.php function eXtractor1($file_name,$tmp_file_name,$new_file_name) { global $file_name; global $tmp_file_name; global $new_file_name; $filename = /tmp/$tmp_file_name; $newfilename = /tmp/$new_file_name; if (!file_exists($filename)) { touch($filename); // Create blank file touch($newfilename); chmod($filename,0777); chmod($newfilename,0777); $command = cat /home/sites/projects/web/extractor/$file_name | egrep 'State:|Name:|Address:|City:|e-mail:|Zip:'$filename; system($command); ## nothing worked for me until I added this next line. system(exit(0)); } return $tmp_file_name; return $new_file_name; } ? anythoughts would be appreaciated dan = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
Re: [PHP] Dedicated Hosting
I would like to also add in, my real job we have exodus as a host, we are going to be moving from exodus due to worries about their business and them going under ... just to let you know they have dont nothing to calm down our fears, while our $34/k a month doesnt make us a huge client you would still think that they want us happy. rachspace I would concur, never tried webservepro, my host is a dedicated just-hostit.com, they are new but they give top flight service, and you speak directly with them ... very rarely do I have to try calling twice ... they will work with you on access, and they can even provide PHP development talent for projects or help. dan --- Michael Kimsal [EMAIL PROTECTED] wrote: We've used rackspace, webservepro.com, xo, and had machines placed at exodus. Webservepro.com is the least expensive, and they still maintain pretty good service (personal service I mean). No default UPS - you gotta pay extra for that if it's that important to you (over 2 years hosting - 2 hours of downtime due to power issues). rackspace - we used to recommend them a lot, but since they've grown so much, their service has gone down in our experience. exodus - darn expensive. xo.com - again, darn expensive for what you get. rackspace has/had the same equipment for about halfprice. AND you get 'root' at rackspace - xo wouldn't give it out (well, we couldn't get it without signing a lot of papers, etc.) and this was for a client. It took 3 hours to get PHP installed because it wasn't there by default, and we had no permissions to do anything. That was $699/month. SAME machine at rackspace (same mhz, hd, etc) was $400/month, and you got root. HTH Heidi Belal wrote: Hi All, Can you please tell of a good, reliable place where i can rent a dedicated server in the US? Thanks! Heidi = Heidi Belal ICQ# 32127109 -- 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] = Dan McCullough --- Theres no such thing as a problem unless the servers are on fire! h: 603.444.9808 w: McCullough Family w: At Work __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.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]
Re: [PHP] Project Management
On 5/24/07, Christian Haensel [EMAIL PROTECTED] wrote: Hi Edward, thanks for your comment. I use a lab book too... And already fille two of them in the last 8 weeks I just wanna use the project management thing to collect my ideas, and write a howto for future generation developers who may have to deal with this thing once I am gone. Stut, yes sir, I've used google and had a look at those things. What I wanted was to know what you guys use. There is nothing more valuable than the opinions of other developers and to know what they use in their day to day job. Anyhow, my arse is still on... so I better bugger off :oP Cheers for your comments! Chris - Original Message - From: Edward Kay [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, May 24, 2007 12:00 PM Subject: RE: [PHP] Project Management -Original Message- From: Christian Haensel [mailto:[EMAIL PROTECTED] Sent: 24 May 2007 10:27 To: php-general@lists.php.net Subject: [PHP] Project Management Morning guys, this is not exactly a PHP question, but as I am sure that I am talking to more or less professional developers, I thought I might ask you. As I am working on some... well, for my standards... huge project, I thought that some kind of project management software would / could be helpful to keep track of my ideas, tasks and so on. Right now I am using a huge chunk of papers to keep track (as good as I can). Has any of you any experience with good project management software? Best would be OpenSource, of course :o) My boss doesn't want to spend a lot of money ;o) Cheers guys, Chris from sunny germany If you're working on your own, I would think realistically about how much you would use such software. I've used Basecamp, Trac, MS Project and others in the past and find them a waste of time. My favourite tool is simply an A4 lab book. (I know this doesn't scale, but it fits the bill perfectly for now). For initial brainstorming/idea tracking, I do use FreeMind though. http://freemind.sf.net HTH, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Debugging Log
I wrote my own, very simple, very easy. I think the code is in the archive somewhere. Otheres have written similar functions. CODE +++ function logError ($logentry, $lgname) { // simple function to log errors to text/log file. $logfile = @fopen ($lgname, a+); if (!$logfile) { echo (\n\n ERROR: Failed to open $lgname\n\n); } else { fwrite ($logfile, [.date (D M d Y h:i:s).] [$logentry]\n); fclose ($logfile); } } where you want to log logError($username.' has successfully logged in.','account.log'); CODE +++ Lately I have been using the syslog from php. On 7/12/06, KermodeBear [EMAIL PROTECTED] wrote: http://pear.php.net/package/Log/ works well for me. Supports writing messages to files, to a separate window via JavaScript, probably syslog as well as a few others. -Original Message- From: Michael B Allen [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 2:02 PM To: php-general@lists.php.net Subject: [PHP] Debugging Log What is the standard method of logging debug info? Should I just fopen a file for append and write the message or is there a facility provided? Mike -- Michael B Allen PHP Extension for SSO w/ Windows Group Authorization http://www.ioplex.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Debugging Log
Ahh yes I do that as well, I knew there was another other then syslog. On 7/12/06, Jochem Maas [EMAIL PROTECTED] wrote: Michael B Allen wrote: What is the standard method of logging debug info? Should I just fopen a file for append and write the message or is there a facility provided? there is also error_log() (and the 'error_log' ini setting) - I abuse it for debugging now and again. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] url obfuscation
For me it doesnt matter I dont want Google in the section that I'm obfuscation. On 7/13/06, Richard Lynch [EMAIL PROTECTED] wrote: On Fri, July 7, 2006 10:56 pm, Anas Mughal wrote: My URLs are constant. They are not changing. All my dynamic pages are indexed nicely on Google. I agree that a computerized screen scrapper could still screen scrap most of my site. However, a simple script that attempts to bump up the identifier of a resource in a URL, would not work. Here is example: http://mydomain.com/view_resource.php?id=1 http://mydomain.com/view_resource.php?id=2 http://mydomain.com/view_resource.php?id=3 http://mydomain.com/view_resource.php?id=4 That would not work because my IDs are not sequential. Any thoughts... Do your other pages link to the pages? Because I don't need to PREDICT the URLs, just follow them from page to page. That's pretty much how a search engine works. If you really want to stop a web-scraper, you pretty much have to accept that you'll not be listed in Google (et al) as well. -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend Studio, phpMyAdmin, and mysql.sock
in phpmyadmin config.default.php you can specify the socket that it should be looking for. have you tried that? On 7/14/06, Dave M G [EMAIL PROTECTED] wrote: David Tulloh, This sounds like a Zend Studio problem and question. It could possibly be a MySQL or even a phpMyAdmin question. It doesn't really have anything to do with PHP. I realize that Zend Studio is separate from PHP, but I would hardly go so far as to say it has nothing to do with PHP. Zend is the company that *makes* PHP. Zend is a development environment for creating PHP. So I don't think it's at all unreasonable to think that maybe there are people here who use it (or even develop it) on this list. And I do realize that Zend has its own forum, and I have posted there. But the question has gone for days without response, so I'm broadening my search. What else should one do when one gets no response in a more specific forum? You paid Zend for the product, ask them how it works. Well, what I have is the trial version, which they say they support, but they have not responded to my email sent to them. So I don't know if I'm far down the priority list for not having paid yet or if they just usually take days to answer or what. In any case, this list is called PHP general. Am I really so unreasonable in thinking that asking about how to set up a PHP development environment so that I can debug my PHP scripts without it conflicting with the PHP database administration system is on-topic? -- Dave M G -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Recommendations for PHP debuggers?
How is this different then what they try and sell you for $249. I have eclipse for Java development, and was looking at Zends package for PHP development, but if they are basically selling me the same thing then I would go with eclipse. On 8/21/06, Colin Guthrie [EMAIL PROTECTED] wrote: Larry Garfield wrote: I'm watching this thread closely myself, as I'd love something to use at home (on Linux) that doesn't cost what Zend does. :-) Currently I use PHPeclipse, but it is frankly not that good (the code assistance feature is rudimentary at best), and I've not setup the debugger yet. That, and Eclipse itself is just a dog slow memory hog. Did you look at this? I posted it earlier and although I've not hooked up the debugger, AFAIK it's free (but provided by Zend), so it should suit you nicely (except that you'll still need that extra gig of ram to run eclipse ;)) http://www.zend.com/phpide/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping cart
There are many payment processing script/classes/examples available that you could use. Just google around for your gateway provider, like PHP and Authorize.net, etc, or go to their site and look for a developer, API or something like that to see if they have done some examples. On 8/22/06, Ryan A [EMAIL PROTECTED] wrote: It really looks like I will have to write this myself :( I know it will be good for experience but like someone else has pointed out, I would rather work with someone elses code for the payment parts knowing that it has been totally debugged than getting screwed later on because I missed assigning a value to a variable... Still searching though, tested OSC,ZenCart, Xcart,FishCart, now on to phpshop... Drupal seems good, but kinda large with all the modules out there... a bit intimidating, will keep that as a reserve check I think this is the reason why there are so many carts out there people just get pissed seaching for a simple one which they can use their _own_ page design, and dont find it... then they write one for themselves, see it works very well, decide to go commercial... get requests to add just one more thing and screw it up like all the others..! Cheers! Ryan --- Larry Garfield [EMAIL PROTECTED] wrote: There may be other canned solutions that are not as bad as OSCommerce. It's the only one I've worked with other than Drupal. I've worked with Drupal extensively, but haven't used its ecommerce modules extensively. But yes, I highly recommend OSCommerce as an example of how not to write a PHP application, of any kind. On Monday 21 August 2006 15:18, Gerry D wrote: So if I understand you gentlemen correctly, these pre-builds serve as examples how NOT to do it? Gerry On 8/20/06, Larry Garfield [EMAIL PROTECTED] wrote: On Sunday 20 August 2006 20:17, Gerry D wrote: On 8/19/06, Larry Garfield [EMAIL PROTECTED] wrote: OSCommerce is crap. Don't bother. Why do you say that, Larry? I may want to get into an app like that because I think one of my clients is ready for it. What are the cons, and what are my options? What are Drupal's limitations? I tried using it for a client last summer, because it was available free on the client's web host. It is extremely rigid. If you want a program that works the way they want and looks kinda like Buy.com with a table-based layout in 3 columns with certain visual effects, it's fine. If you want to change or customize anything, good luck. Nearly everything is hard coded with HTML and presentation PHP and business logic PHP all mixed in together. With a table based layout. Ugh. As for using pre-build vs. rolling your own, the main reason I favor ready-made is the bank hookups. Anytime financial stuff is involved, I'd rather use something someone else already debugged than roll my own. -- Larry GarfieldAIM: LOLG42 [EMAIL PROTECTED]ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping cart
Commercial product that is good http://www.x-cart.com/ On 8/22/06, Ryan A [EMAIL PROTECTED] wrote: It really looks like I will have to write this myself :( I know it will be good for experience but like someone else has pointed out, I would rather work with someone elses code for the payment parts knowing that it has been totally debugged than getting screwed later on because I missed assigning a value to a variable... Still searching though, tested OSC,ZenCart, Xcart,FishCart, now on to phpshop... Drupal seems good, but kinda large with all the modules out there... a bit intimidating, will keep that as a reserve check I think this is the reason why there are so many carts out there people just get pissed seaching for a simple one which they can use their _own_ page design, and dont find it... then they write one for themselves, see it works very well, decide to go commercial... get requests to add just one more thing and screw it up like all the others..! Cheers! Ryan --- Larry Garfield [EMAIL PROTECTED] wrote: There may be other canned solutions that are not as bad as OSCommerce. It's the only one I've worked with other than Drupal. I've worked with Drupal extensively, but haven't used its ecommerce modules extensively. But yes, I highly recommend OSCommerce as an example of how not to write a PHP application, of any kind. On Monday 21 August 2006 15:18, Gerry D wrote: So if I understand you gentlemen correctly, these pre-builds serve as examples how NOT to do it? Gerry On 8/20/06, Larry Garfield [EMAIL PROTECTED] wrote: On Sunday 20 August 2006 20:17, Gerry D wrote: On 8/19/06, Larry Garfield [EMAIL PROTECTED] wrote: OSCommerce is crap. Don't bother. Why do you say that, Larry? I may want to get into an app like that because I think one of my clients is ready for it. What are the cons, and what are my options? What are Drupal's limitations? I tried using it for a client last summer, because it was available free on the client's web host. It is extremely rigid. If you want a program that works the way they want and looks kinda like Buy.com with a table-based layout in 3 columns with certain visual effects, it's fine. If you want to change or customize anything, good luck. Nearly everything is hard coded with HTML and presentation PHP and business logic PHP all mixed in together. With a table based layout. Ugh. As for using pre-build vs. rolling your own, the main reason I favor ready-made is the bank hookups. Anytime financial stuff is involved, I'd rather use something someone else already debugged than roll my own. -- Larry GarfieldAIM: LOLG42 [EMAIL PROTECTED]ICQ: 6817012 If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of every one, and the receiver cannot dispossess himself of it. -- Thomas Jefferson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping cart
I believe you can find those out there as well, most of what you need will be available out there, you will be able to find them and then take what you need to work it into your cart, probably would be a good idea to think of all the different pieces and then find the different examples/tutorials/snippets and then see how they fit. On 8/22/06, Ryan A [EMAIL PROTECTED] wrote: Hey, There are many payment processing script/classes/examples available that you could use. Just google around for your gateway provider, like PHP and Authorize.net, etc, or go to their site and look for a developer, API or something like that to see if they have done some examples. Yeah, i guess thats also an idea, will look into it. Will also need to look into the logic of calculating shipping, something that I have never done in the past. Kind of worked out the logic of customers who bought this also bought... gotto take one step at a time... which breaks down to a problem coz dont have much time to take many steps :( Cheers! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Shopping cart
Another thing to remember is that you dont want to get overwhelmed with all the work when you are going to build your own, a list of 250,000 features will never get done, many have tried, many have failed, so plan what you need to start with and build the other features later. On 8/22/06, Dan McCullough [EMAIL PROTECTED] wrote: I believe you can find those out there as well, most of what you need will be available out there, you will be able to find them and then take what you need to work it into your cart, probably would be a good idea to think of all the different pieces and then find the different examples/tutorials/snippets and then see how they fit. On 8/22/06, Ryan A [EMAIL PROTECTED] wrote: Hey, There are many payment processing script/classes/examples available that you could use. Just google around for your gateway provider, like PHP and Authorize.net, etc, or go to their site and look for a developer, API or something like that to see if they have done some examples. Yeah, i guess thats also an idea, will look into it. Will also need to look into the logic of calculating shipping, something that I have never done in the past. Kind of worked out the logic of customers who bought this also bought... gotto take one step at a time... which breaks down to a problem coz dont have much time to take many steps :( Cheers! Ryan -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Remote Robot Control with PHP
Cool! On 10/31/06, Prathaban Mookiah [EMAIL PROTECTED] wrote: Hello List, I thought of sharing my experience of writing a controller to remotely control a robot through a webserver using PHP. Though I could not use PHP alone to do the entire job due the high delay it takes to connect to the telnet port on the robot, (I adopted the PHPTelnet class written by Antone Roundy - http://www.geckotribe.com/php-telnet/), I could not resist using it for some part of the application. So the model I used for my purpose is this: Browser - WebServer - Java Robot AJAX PHP I used PHP to communicate between the Java program which I run in the background and the AJAX calls from the browser. This setup works fine for my purposes and satisifies the strict time constraints. If someone has a better idea of implementing this thing in PHP, please do let me know your comments. There is a lot more to do in this project and I hope to make use of PHP a lot along the way. This is a NSF funded project and this work will be published in some leading journals. What I am excited about is the prospect of putting in a word about PHP in these journals, since as far as I know, it is not too well known in the academic circles. Regards, Prathap -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Staff log-in
I do a lot of work for non-profits a lot of them are really good clients, pay well and on time, but I know most of them pretty well and know that they are truly non-profits, so just because you said you were a non-profit where we supposed to assume that you wanted it for free and supported forever. On 11/10/06, tedd [EMAIL PROTECTED] wrote: At 7:16 PM + 11/9/06, Brynjar GuĂ°nason wrote: Hi, I need a little php script. Staff log in by entering username and password and then the next time they enter their username and password they log out. The script has to take down the time they log in and log out. Then I should be able to read old log-ins and log-outs. I unfortunately can't make it myself because I don't have the knowledge, can anyone of you do this for me? It's for a small non-profit orginisation. Thanks in advance, Brynjar Gudnason. Brynjar: You say a little php script -- if you have no knowledge of how to do this, then what makes you think it's little? Stop and think dude -- you're asking for code that will keep track of users, passwords, deal with what happens if they lose their password, keeping passwords secure, keeping track of times on/off, and writing an admin to review/edit times and edit users (add, delete, ban) --this is not a little script. Lastly, I think we all know that non-profit simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing more. Plus, there's no limit or requirements as to the amount/percentage you pay yourself as compared to what amounts you apply to your cause. So, mentioning non-profit to me is like saying you're just another scam -- and one, who's trolling for free php services. tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Printing
I did something similar, but it was some work I did for a company and the application was an internal application that used PHP and a Java applet to send the file to a workers local printer since it cant be accomplished by PHP itself. On Wed, Dec 17, 2008 at 3:30 PM, Dan Shirah mrsqua...@gmail.com wrote: You can't, the best you can do is send the PDF down and let the user choose to do with it what they will -- Bastien So you think I should try and look into a way to have FPDF append each document to the already created document, and once all pages have been added to the PDF force it back to the user to open in the broswer?
[PHP] date from YYYY-MM-DD to current date
I need to loop from a date in the past to current date getting all dates in between. Anyone have an idea on how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [SOLVED] [PHP] date from YYYY-MM-DD to current date
Sorry Gmail doesnt always put all the email address on the TO line in a reply. On 3/15/06, Shaunak Kashyap [EMAIL PROTECTED] wrote: In the future, please reply to the list. Also, I assume this question has been answered and am, therefore, marking it with [SOLVED]. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.330.9900 www.worldpokertour.com Confidentiality Notice: This e-mail transmission (and/or the attachments accompanying) it may contain confidential information belonging to the sender which is protected. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender by reply e-mail and destroy all copies of this transmission. -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 10:22 AM To: Shaunak Kashyap Subject: Re: [PHP] date from -MM-DD to current date excellent, I was getting close, was getting hung up on a couple of things On 3/15/06, Shaunak Kashyap [EMAIL PROTECTED] wrote: // $pastDateStr = string representation of past date $pastDateTS = strtotime($pastDateStr); For ($currentDateTS = $pastDateTS; $currentDateTS = strtotime(now); $currentDateTS += (60 * 60 * 24)) { // use date() and $currentDateTS to format the dates in between } HTH, Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 323.330.9870 Main: 323.330.9900 www.worldpokertour.com Confidentiality Notice: This e-mail transmission (and/or the attachments accompanying) it may contain confidential information belonging to the sender which is protected. The information is intended only for the use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or taking of any action in reliance on the contents of this information is prohibited. If you have received this transmission in error, please notify the sender by reply e-mail and destroy all copies of this transmission. -Original Message- From: Dan McCullough [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 15, 2006 9:58 AM To: php-general@lists.php.net Subject: [PHP] date from -MM-DD to current date I need to loop from a date in the past to current date getting all dates in between. Anyone have an idea on how to do that? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] help with some logic.
hey Dallas, have you thought about breaking this up and making two seperate functions one the checks the cookie and one that checks the session information? I'm not sure if that is what you were looking for as far as an answer but it might be a good start. On 4/4/06, Dallas Cahker [EMAIL PROTECTED] wrote: I've been looking at this code for a few hours now and I get the nagging feeling that I am overcomplicating something, something I never ever do. I have a login that puts some information on the session, and if the customer wants they can ask to be remembered, the cookie is given the customers user name and another cookie stores a unique id, similar to a password I could do the password in a cookie as its md5 encrypted, but I went with an a unique id which is store in the user db. Anyway here is what I am trying to do with the code below. The authorized user section requires 4 pieces of information, userid, password, username and user level, a person who logs in each time gets that information assigned to their session, that part works *knock on wood* perfectly. When a customer says remember me they go away and come back a while later they are remembered, so that part works perfectly, however I need to get the persons information and put that on the session, however I would like the function to behave in such a way as to not overwrite the information each time the page load. So for example the cookie is read the information is valid, the query to the db, the information set to the session. You might wonder why I dont set the userlevel to the cookie, well I dont want someone changing the value of a cookie and getting admin access, which reminds me I should add that as a check. Thats about it. getCookieInfo() the function inside the checkLogin function just looks up the information for the cookie in the db. I know that someone is going to say something really simple that I am going to slap my forehead over, I would like to thank that person before hand. function checkLogin () { /* Check if user has been remembered */ if (isset($_COOKIE['cookname']) isset($_COOKIE['cookid'])) { if (!isset($_SESSION['name']) !isset($_SESSION['id']) !isset($_SESSION['level']) !isset($_SESSION['password'])) { $cookieInfo=getCookieInfo($_COOKIE['cookname'], $_COOKIE['cookid']); if ($cookieInfo==0) { return 0; } if ($cookieInfo==1) { setcookie(cookname, , time()-60*60*24*100, /); setcookie(cookid, , time()-60*60*24*100, /); return 1; } if ($cookieInfo==2) { setcookie(cookname, , time()-60*60*24*100, /); setcookie(cookid, , time()-60*60*24*100, /); return 2; } } } if (isset($_SESSION['name']) isset($_SESSION['id']) isset($_SESSION['level']) isset($_SESSION['password'])) { if (loginUser($_SESSION['username'], $_SESSION['password'],'') != 1) { unset($_SESSION['name']); unset($_SESSION['id']); unset($_SESSION['level']); unset($_SESSION['password']); $_SESSION = array(); // reset session array session_destroy(); // destroy session. // incorrect information, user not logged in return 0; } // information valid, user okay return 1; } else { // user not logged in return 2; } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ?=? style
Short tags in the php.ini file. On 4/6/06, Dallas Cahker [EMAIL PROTECTED] wrote: What is that called and where in the php.ini file do I enable it? Sorry if this is a stupid question but since I dont know what its called it makes it difficult to google it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php security
I would look here for an idea. http://phpsec.org/projects/guide/ I think you'll find many opinions on the matter. One thing to remember is that once the app goes live your job doesnt stop there you'll need to be just as stringent about security and checking logs and errors as you were when you were developing. On 4/6/06, Dallas Cahker [EMAIL PROTECTED] wrote: I was looking to see if there was a quick checklist of settings for php to be disabled/enabled in the ini file to make the application more secure. I'm making sure the apps we come out with dont allow sql injections, or form injections and so forth, I have just seen some posts about magic quotes and so on and so I was curious. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] server/PHP security
http://www.hardened-php.net/advisory_202005.79.html check this out On 4/6/06, Wolf [EMAIL PROTECTED] wrote: I woke up on thanksgiving morning to find my server hacked through a hole left by a file upload area of my site. I restored the backup and placed a few blocks in place on the server, so they can get in, but they can't get out ;) What I am interested in finding out is what the best way is to make sure that I can rework the upload area to allow upload and download from it while keeping script kiddies from exploiting it again. I can post the scripts (if you are interested in pulling them apart or such) as I have accumulated 3 different versions now, but I am wondering what you guys use currently as standard PHP security and still do file parsing and such. Thanks, Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] server/PHP security
WHat types of files were they, if you dont mind me asking? On 4/6/06, Wolf [EMAIL PROTECTED] wrote: I woke up on thanksgiving morning to find my server hacked through a hole left by a file upload area of my site. I restored the backup and placed a few blocks in place on the server, so they can get in, but they can't get out ;) What I am interested in finding out is what the best way is to make sure that I can rework the upload area to allow upload and download from it while keeping script kiddies from exploiting it again. I can post the scripts (if you are interested in pulling them apart or such) as I have accumulated 3 different versions now, but I am wondering what you guys use currently as standard PHP security and still do file parsing and such. Thanks, Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php security
php.ini-anal-retentive-paranoid. I'm editing mine for that right now, everything is off, the sever has a keyboard, mouse, monitor no cd/dvd, no floppy, no usb and is unplugged from the network, there are 6 security guards that surround you and they give you 5 minutes on a timer. On 4/6/06, Kevin Kinsey [EMAIL PROTECTED] wrote: Dallas Cahker wrote: I was looking to see if there was a quick checklist of settings for php to be disabled/enabled in the ini file to make the application more secure. I'm making sure the apps we come out with dont allow sql injections, or form injections and so forth, I have just seen some posts about magic quotes and so on and so I was curious. Well, generally php comes with a php.ini-dist and a php.ini-recommended; for tighter security, use the recommended version. Examining a diff of the files could help shed some light, as well. Of course, some of us could be waiting for the day when they ship with a php.ini-ironclad, php.ini-stealthmode, or php.ini-anal-retentive-paranoid, but I'm not sure those are slated, even for PHP6 ;-) HTH, Kevin Kinsey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php security
Cool Chris I'm going to take a look at that movie. Dallas there is a section at the top of the ini file that lists some directives and their status to address security or performance issues, but as Chris mentioned your code could be as big of a risk as anything so pay attention to that. On 4/6/06, Chris Shiflett [EMAIL PROTECTED] wrote: Dallas Cahker wrote: I was looking to see if there was a quick checklist of settings for php to be disabled/enabled in the ini file to make the application more secure. Although there are some directives worth disabling (register_globals, magic_quotes_gpc, allow_url_fopen), most vulnerabilities in PHP applications are a result of flaws in the PHP code. There are no magic php.ini configuration directives that can make your applications secure - not that you were suggesting this, but it's woth explicitly stating. A couple of years ago, I tried to summarize several good practices into a single mantra - filter input, escape output (FIEO). These practices don't eliminate everything, but they're a very good first step and can provide a solid foundation for secure PHP programming. I made a movie (webcast, screencast, or whatever you call them) about auditing PHP applications, and it also covers filtering input and escaping output: http://brainbulb.com/php-security-audit-howto.mov There's also the PHP Security Guide: http://phpsec.org/projects/guide/ We're in the process of writing a second version of the guide, in order to address the following shortcomings: 1. The guide is several years old, so some techniques have been refined and/or simplified in the meantime. 2. The vocabulary is slightly inconsistent with the rest of the industry in some cases. 3. Not all major areas are covered, so it is incomplete. 4. Some explanations are ambiguous and can yield misinterpretations. Lastly, I want to point out two of the primary attacks that are not prevented with FIEO: 1. Cross-Site Request Forgeries (CSRF) 2. Session Fixation Hope that helps get you started. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] looking for shopping cart
X-Cart, ZenCart (osCommerce like), http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/index.html if you look in the archives you will find similar questions with a lot better response. On 4/8/06, Lisa A [EMAIL PROTECTED] wrote: I need a shopping cart for a website that once I install and set up, my client can easily add merchandise to it. They use Paypal. It has to be very easy for them to upload images and products, prices, etc. If anyone knows of something, please let me know. I host my own websites, so not interested in paying a monthly fee. thanks, Lisa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] parsing/replacing for special MS Word characters
I have a friend who I wrote some very simple publishing software, basically he takes his writtings and puts them online. Well his writtings are in Word and so he has alot of special characters that he inputs, some unknowingly, into the database. Are there any classes or samples of what others have done to strip/replace/find these special characters, I have asked him to be careful, but he will do it once or twice and then forget and lapse, and I get a call saying can you help me get these out. Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] User Login Problem
Or make your own, might be easier to do. On 6/20/06, suresh kumar [EMAIL PROTECTED] wrote: Hi, I am facing one problem in my project.i want to restrict more than one user login in the same account .Is there any functions available to check r we can implement using session. A.suresh - Yahoo! India Answers: Share what you know. Learn something new Click here Send free SMS to your Friends on Mobile from your Yahoo! Messenger Download now -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] rss feeds from db
I'm having some problems where some undefined entity are getting in, these entities are usually html entities. sad thing isquot;brvbar;bringing in these large chains is putting the xml doc points to the in ;brvbar as the problem. what do I need to do to get this stuff cleaned up? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Update site through email
There are several blog software packages and cms packages that do something like this you might want to download and take a peek. Wordpress one that comes to mind. On 6/29/06, Mathieu Dumoulin [EMAIL PROTECTED] wrote: How i'd do it is not simple, i'm sure there is an easier method but here goes for mine. First you have to setup an inbox that you can read, it can be POP3 or IMAP, as long as your PHP script can read it it's fine. Second, create a script that can actually connect to that inbox and read for a new message periodically. You can use a CRONJOB or a Scheduled Task if it's available, else, you'll have to check the mailbox from time to time when your page launches from a web browser (Try not to do it all the time or your page will suffer from this process if it is launched all the time). That script will have to read the emails in the inbox, finds the appropriate email and stores the content the way you want, database or file, your choice. Then, your web page will have to read from that stored source of your choice and echo the content at it's right place. As you can see, it CAN be done, it's just a strange way of doing it. Furthermore i see problems to that. You can probably get very easily hacked using this method. Its easy to read the incoming data in the server, find the email address used to update the content and then send a mail yourself. There is nothing you can do to stop that except encrypt your email using SSL... But thats a bit hardcore and there are much simpler ways than using SSL encrypted email to update a page ;) Math Rodrigo de Oliveira Costa wrote: Hy guys I'd like to know if there is a way to update a site through sending an email. Something like this, you send an email and the body of the email substitutes a text you use in your site. Igreat apreciate any help since I couldn't find anything on this topic. Thanks, doRodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: creating a threaded message system--sorting messages
I've come into this discussion pretty late so please bear with me if I go over something that has been ruled out. You are trying to print out in a threaded method the first post in a thread followed by each post after that, that is a child/reply to that post. Is that correct? So something like Example 1 Thread1 Post1 Post2 Post3 Post4 . or Example 2 Thread1 Post1 Post2 - reply to post 1 Post3 - reply to post 2 Post4 - reply to post 1 Post5 - reply to post 1 Post6 - reply to post 2 Post7 - reply to post 3 Example 1 is very common and is the easiest to implement. From what I remember you would need a couple of DB tables for post, post_thread, post_post, thread So for your question thread isnt very relative but I thought I would throw it in. thread { threadid int(11) auto_increment, threadname threadsort ... thread_post { threadid int(11) postid int(11) post { postid int(11) auto_increment, postname posttext ... post_post postid int(11), postid2 int(11) Please note I have two kids fighting over the cat, trying to cook dinner and stave off a flood of water from the rising river so the SQL structure is for example. You can get everything in one query from the DB and lay it out based on the id of the post, if you DB is properly indexed and setup and queries are optimized you'll hardly notice a blip when the load gets up. You do not want to be doing multiple queries on a page when one well written query will do the trick. Either way if this is more what you are looking for we can get into specifics later. Dan On 6/29/06, KermodeBear [EMAIL PROTECTED] wrote: Hello, As Adam pointed out, this can be deadly to your database, especially as the number of posts grows. If you want to go that route, I would recommend selecting all the posts in that particular thread and sorting the data out in PHP somehow. No need to slam your database with (potentially) hundreds of queries to display a discussion. Multiply that by several page views at once... If you don't mind the extra work and investigation, I would recommend downloading some PHP forum software that supports threaded discussion and see how they implement it. I found several listed in DMOZ: http://dmoz.org/Computers/Programming/Languages/PHP/Scripts/Forums/ Let us know what you come up with! I'd like to see how you work this out. This is a good computer science type of problem with practical application - the kind of stuff they should have taught me in school but never did. ~(o: Best of luck, -K.Bear SOLVED, almost. I read the article suggested by K.Bear and found the recommended solution to be a bit more complicated than I wanted to implement. I then found another way to do this using the existing Adjacency List Model through a recursive function. So basically, you query the database for the post_id of the very first post in the discussion. You then call a function that displays that post, searches for all children of that post and then calls itself recursively on each of the children it discovers. This works great for spitting out the posts in the proper order. Now I'm trying to figure out how to make sure the indenting looks right in the browser. - Ben Wouldn't that involve a separate SQL query for every post? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] url obfuscation
Looking for a good way to obfuscation the name value pairs in a URL, so it might be something like http://www.domain.com/page=fjdsaflkjdsafkfjdsakfjdsalkfjsda983dsf or something like that, I was looking at base64_encode, but was wondering what others might do or use. It doesnt have to be super secure, but I would still like the information to not be really visable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Bug Tracking
This one? http://dev.mysql.com/downloads/other/eventum/ On 7/6/06, Chris Hemmings [EMAIL PROTECTED] wrote: Can anyone point me in the direction where I can find a place to download the bug track system that PHP/PEAR PECL uses. I seem to remember it is available but can't find it anymore! Ta! Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php