[PHP] PHP HELP
Can anyone help me to install APC in Xampp on windows ?
Re: [PHP] PHP Help
There's a few things about your post I'd like to comment on. One, if you're not using APC, I definitely agree with the fact that you're just wasting resources. However, you mention micro-optimizations and say that they're hardly useful, but in some cases it's a huge difference. ' vs. " is like a 0.1% speed difference or something equally negligible, but using isset($foo['bar']) instead of in_array($foo, 'bar') is almost an exponential speedup (it approaches that level of difference as the array size gets larger and larger), so there are some definite good practices with common fundamental structures that are worth paying attention to. And finally, you mention optimizing the LAMP stack, when the fact of the matter is the best way to optimize that stack is to get rid of it. Apache is huge and slow and there are very fast and viable replacements for it (I use nginx, but a lot of people are satisfied with lighttpd) and using either spawn-fcgi or fpm, php concurrency can increase by as much as 50%. And regarding MySQL, installing XtraDB, Percona's enhanced InnoDB build with a whole boatload of patches, is the easiest way to squeeze more performance out of MySQL. To the OP, though, the point is that there is a definite scalability path with regards to PHP and it's not something to really fret over, as there are tons of documentation, talks, presentations, blog posts, strategies, etc to achieve the most with PHP. Although, in the end, PHP itself is rarely your bottleneck, but instead the way you have your webserver setup bottlenecks your clientele and the way you have your queries written bottlenecks your server. I don't want to say that PHP speed is negligible, but if you write the world's worst PHP, but have an opcode cache and a fast DB implementation (and a 100 ySlow score) no one is ever going to notice how bad your code is, whereas someone else could write great code on a poorly performing site and wind up in a much worse situation. On Tue, Jun 2, 2009 at 10:20 AM, Topbit wrote: > On Tue, Jun 2, 2009 at 5:33 AM, tRace DOliveira > wrote: > > I think that PHP is the best scripting language ever created...I'm > currently doing a study of PHP and I want to know how APC can be used to > improve PHP performance and how it can be implemented and also if there is > some other alternative other than APC of improving PHP performance ? The > problem that I face is that as many requests are made the server is placed > under alot of pressure and cannot deal with it > > A large part of the reason PHP is so good at what it does is that > scaling it up on a single, and then to multi-machine sites and from > there to even millions of users is a well understood path. > > For APC, if you are running your own server and running a PHP site on > there, if you're not already running APC or a similar caching system > on there, you are just wasting CPU effort. > > There are a number of websites already out there that demonstrate the > sort of caching and optimisations that can be performed on a LAMP > stack, both within PHP code (but the various micro-optimisations of > changing quotes and using one kind of array handling over another is > only useful at the most extreme end of optimisations - and if you > wonder if you need them - then you don't). I'll be writing on the > topic of scaling on my blog soon as well, so it might be useful to > keep an eye on the in the next few weeks as well. > > For now, http://google.com/search?q=scaling+PHP will give you a lot of > food for thought. > > Topbit > http://topbit.co.uk/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] PHP Help
On Tue, Jun 2, 2009 at 5:33 AM, tRace DOliveira wrote: > I think that PHP is the best scripting language ever created...I'm currently > doing a study of PHP and I want to know how APC can be used to improve PHP > performance and how it can be implemented and also if there is some other > alternative other than APC of improving PHP performance ? The problem that I > face is that as many requests are made the server is placed under alot of > pressure and cannot deal with it A large part of the reason PHP is so good at what it does is that scaling it up on a single, and then to multi-machine sites and from there to even millions of users is a well understood path. For APC, if you are running your own server and running a PHP site on there, if you're not already running APC or a similar caching system on there, you are just wasting CPU effort. There are a number of websites already out there that demonstrate the sort of caching and optimisations that can be performed on a LAMP stack, both within PHP code (but the various micro-optimisations of changing quotes and using one kind of array handling over another is only useful at the most extreme end of optimisations - and if you wonder if you need them - then you don't). I'll be writing on the topic of scaling on my blog soon as well, so it might be useful to keep an eye on the in the next few weeks as well. For now, http://google.com/search?q=scaling+PHP will give you a lot of food for thought. Topbit http://topbit.co.uk/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help
On Tue, Jun 2, 2009 at 12:33 AM, tRace DOliveira wrote: > > I think that PHP is the best scripting language ever created...I'm currently > doing a study of PHP and I want to know how APC can be used to improve PHP > performance and how it can be implemented and also if there is some other > alternative other than APC of improving PHP performance ? The problem that I > face is that as many requests are made the server is placed under alot of > pressure and cannot deal with it > Thank you, > Leonard D'Oliveira > > > memchaced eAccelerator custom caching scripts opcode caching to cache bytecode stfw eAccelerator -- Bastien Cat, the other other white meat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help
I think that PHP is the best scripting language ever created...I'm currently doing a study of PHP and I want to know how APC can be used to improve PHP performance and how it can be implemented and also if there is some other alternative other than APC of improving PHP performance ? The problem that I face is that as many requests are made the server is placed under alot of pressure and cannot deal with it Thank you, Leonard D'Oliveira
Re: [PHP] PHP Help Needed
lol, Ashley! Ayemowa, http://www.google.com/search?q=becoming+a+programmer&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a You need to take your 2 steps below and break them down into smaller steps...and smaller steps...and still smaller steps. What PHP files will your application require? Will there be forms? What will the user interface look like? Don't start with a 'PHP script'. Start by defining in excruciating detail what your application is going to do, how it will do it and then describe every little part (variables, functions, models, views, controllers...whatever) that will make it work. Once you have that description, you can start to think about the code by writing it's documentation. Then, once you have the documentation, you can write code based on the documentation...revising the docs as necessary. It's a lengthy, complicated process that is going to demand a little more of you than just reducing your app to 2 steps and asking a mailing list how to do it. Good luck, let us know how it goes and how we can help you take (much smaller) steps. John Corry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help Needed
2008/12/27 Daniel Brown : >If you've already created the UPLOAD page, then the more difficult > of the two tasks is done. Chances are, you (or whomever wrote the > code for you) should know how to do #2 if you (or another) already did > #1, but if not: > >http://www.google.com/search?q=php+mysql+file+download+script >http://www.joeclipart.com/blog/images/2007/06/20070628crack.jpg >http://www.phpbuilder.com/tips/item.php?id=5 > That was subtle :) -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP Help Needed
On Sat, Dec 27, 2008 at 10:47, Ayemowa Toyin wrote: > Hi, > > I am new to PHP and require your help regarding a PHP Script. Below is what > I am tryin to achieve You require an RTFM and STFW session. * http://php.net/ * http://google.com/ > 1. I have created a FILE UPLOAD page that lets users Upload a FIle to the > site. This and other details regarding the file stored in a MySQL Database. > > 2. I need to create a FILE DOWNLOAD page that will read details from the > MYSQL database for users to dwnload already uploaded files. If you've already created the UPLOAD page, then the more difficult of the two tasks is done. Chances are, you (or whomever wrote the code for you) should know how to do #2 if you (or another) already did #1, but if not: http://www.google.com/search?q=php+mysql+file+download+script http://www.joeclipart.com/blog/images/2007/06/20070628crack.jpg http://www.phpbuilder.com/tips/item.php?id=5 -- daniel.br...@parasane.net || danbr...@php.net http://www.parasane.net/ || http://www.pilotpig.net/ Unadvertised dedicated server deals, too low to print - email me to find out! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help Needed
2008/12/27 Ashley Sheridan : > RTFM > > http://www.php.net > Or STFW http://justfuckinggoogleit.com/search?q=php%20mysql%20file%20download%20script -- Dotan Cohen http://what-is-what.com http://gibberish.co.il א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-ي А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я ä-ö-ü-ß-Ä-Ö-Ü
Re: [PHP] PHP Help Needed
On Sat, 2008-12-27 at 07:47 -0800, Ayemowa Toyin wrote: > Hi, > > I am new to PHP and require your help regarding a PHP Script. Below is what > I am tryin to achieve > > 1. I have created a FILE UPLOAD page that lets users Upload a FIle to the > site. This and other details regarding the file stored in a MySQL Database. > > 2. I need to create a FILE DOWNLOAD page that will read details from the > MYSQL database for users to dwnload already uploaded files. > > Your help will be most appricated. > > Thanks > > Toyin AYemowa > UK > > > RTFM http://www.php.net Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help Needed
Hi, I am new to PHP and require your help regarding a PHP Script. Below is what I am tryin to achieve 1. I have created a FILE UPLOAD page that lets users Upload a FIle to the site. This and other details regarding the file stored in a MySQL Database. 2. I need to create a FILE DOWNLOAD page that will read details from the MYSQL database for users to dwnload already uploaded files. Your help will be most appricated. Thanks Toyin AYemowa UK
[PHP] Php Help
I cannot get Php to run on Solaris 10... Here is the error I am getting Trying to run php outside of apache ld.so.1: php: fatal: libldap-2.3.so.0: open failed: No such file or directory With ApacheApache will not load when trying to load the php modules Syntax error on line 110 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libphp5.so into server: ld.so.1: httpd: fatal: libldap-2.3.so.0: open failed: No such file or directory Environmental Setting DISPLAY= HOME=/ HZ=100 LOGNAME=wayne MAIL=/var/mail/wayne PATH=/usr/sbin:/usr/bin PS1=# SHELL=/bin/sh TERM=xterm TZ=US/Eastern ___ I have gone to the lib directory and can find libldap-2.4.so.2 .. Can you point me in the right direction??? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php help.
Jim Lucas schreef: Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me head around this error.(lack of knowledge L) With regard to [function.file-get-contents] can anyone explain this error to me...please :-) Warning: file_get_contents(http://www.ecofriendz.com/groups/orca/?action=group_last_t opics&forum=Bea-Tropical&trans=1) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/ecofriendz.com/public_html/inc/classes/BxDolGroups.php on line 419. I cannot resolve this issue. any help will be gratefully appreciated. With Kindest Regards Belinda Marsh sounds like you are not allowed to access URL on the internet. this is indeed more likely than having missed quotes around the URL (someone else mentioned that possibility). chances are that Belinda's using shared hosting and that allow_url_fopen is turned off server wide ... I'll bet money the sys admins won't turn it on for her. now the real question! why is code that blatantly belongs to ecofriendz.com trying to grab output from a 'page script' that exists in the same site ... it's just plain wrong to have site screen scraping it's own output, the underlying data should be retrieved from the datasource directly. maybe you'd care to explain what it is your trying to achieve? There is a setting within PHP that either allows or denies you the ability to access remote URLs like the one in your example. You will need to make sure that in your php.ini configuration file that you have allow_url_fopen set to '1' and that it is not diabled. Here is the page that references these settings: http://us2.php.net/manual/en/ini.php#ini.list It is the second one in the big list of things. I noticed that they also added a new one as of v5.2.0 It is for the allow_url_include You might need to do something with this also. Not sure. But, I would start with making sure that the allow_url_fopen is set to '1'. If you need to change the value, make sure that you restart your web server so the settings will take effect. Hope this helps. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php help.
Belinda wrote: Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me head around this error.(lack of knowledge L) With regard to [function.file-get-contents] can anyone explain this error to me...please :-) Warning: file_get_contents(http://www.ecofriendz.com/groups/orca/?action=group_last_t opics&forum=Bea-Tropical&trans=1) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/ecofriendz.com/public_html/inc/classes/BxDolGroups.php on line 419. I cannot resolve this issue. any help will be gratefully appreciated. With Kindest Regards Belinda Marsh sounds like you are not allowed to access URL on the internet. There is a setting within PHP that either allows or denies you the ability to access remote URLs like the one in your example. You will need to make sure that in your php.ini configuration file that you have allow_url_fopen set to '1' and that it is not diabled. Here is the page that references these settings: http://us2.php.net/manual/en/ini.php#ini.list It is the second one in the big list of things. I noticed that they also added a new one as of v5.2.0 It is for the allow_url_include You might need to do something with this also. Not sure. But, I would start with making sure that the allow_url_fopen is set to '1'. If you need to change the value, make sure that you restart your web server so the settings will take effect. Hope this helps. -- Jim Lucas "Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them." Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php help.
On Saturday 19 July 2008 01:11:38 pm Belinda wrote: > Good morning > > I have just been browsing the web for help with a php problem that is > driving me mad. I didn't want to post to the site so hope that this email > may get a response. I thank you in advance. > > I am learning php myself(self-learning) but just can get me head around > this error.(lack of knowledge L) > > > > With regard to [function.file-get-contents] can anyone explain this error > to me...please :-) > > > > Warning: > file_get_contents(http://www.ecofriendz.com/groups/orca/?action=group_last_ >t opics&forum=Bea-Tropical&trans=1) [function.file-get-contents]: failed to > open stream: Connection refused in > /home/sites/ecofriendz.com/public_html/inc/classes/BxDolGroups.php on line > 419. >> i think you are missing " " in the function : >> see below : >>[EMAIL PROTECTED]:~/py> php -r ' >>file_get_contents("http://www.ecofriendz.com/groups/orca/?action=group_last_t";); >> ' >>[EMAIL PROTECTED]:~/py> >> the URL must be inside " " > > > > I cannot resolve this issue. any help will be gratefully appreciated. > > > > With Kindest Regards > > > > Belinda Marsh
[PHP] php help.
Good morning I have just been browsing the web for help with a php problem that is driving me mad. I didn't want to post to the site so hope that this email may get a response. I thank you in advance. I am learning php myself(self-learning) but just can get me head around this error.(lack of knowledge L) With regard to [function.file-get-contents] can anyone explain this error to me...please :-) Warning: file_get_contents(http://www.ecofriendz.com/groups/orca/?action=group_last_t opics&forum=Bea-Tropical&trans=1) [function.file-get-contents]: failed to open stream: Connection refused in /home/sites/ecofriendz.com/public_html/inc/classes/BxDolGroups.php on line 419. I cannot resolve this issue. any help will be gratefully appreciated. With Kindest Regards Belinda Marsh
[PHP] [X-PHP] [PHP] help register domain name
Is there also a prize for those who STILL think that everyone uses the same font so their ASCII artwork will display as intended? :-) tedd This person should be awarded with some great prize :) Great topic. -snip- -- *** phpgurru.com [A php resource provider] *** \\\|/// \\ - - // ( @ @ ) PHP is too logical for my brain +---oOOo-(_)-oOOo--+ |Mian Shafiq ur Rehman |phpgurru.com [A php resource provider] |107 B, New Town, Multan Road |Lahore Pakistan | | Mobile:0300 423 9385 | | ooo0 http://www.phpgurru.com | () 0ooo E-Mail: [EMAIL PROTECTED] +---\ (( )--+ \_)) / (_/ -- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP help Quotations, Quotations, Quotations
Stg wrote: > Thanks a lot for that, I am really grateful, now it sends along the link > properly, which is great, however it is now having trouble converting spaces > to %20 and it does it for some and not others, eg > > It does this: > http://localhost/knewsl/NewsletterName.pdf > > When it should be: > http://localhost/knewsl/Newsletter%20Name.pdf > ... urlencode() http://php.net/manual/en/function.urlencode.php -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins signature.asc Description: OpenPGP digital signature
RE: [PHP] PHP help Quotations, Quotations, Quotations
Thanks a lot for that, I am really grateful, now it sends along the link properly, which is great, however it is now having trouble converting spaces to %20 and it does it for some and not others, eg It does this: http://localhost/knewsl/NewsletterName.pdf When it should be: http://localhost/knewsl/Newsletter%20Name.pdf Cheers, Simon -Original Message- From: Stephen Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, 11 March 2005 1:32 PM To: stg Cc: php-general@lists.php.net Subject: Re: [PHP] PHP help Quotations, Quotations, Quotations http://www.php.net/stripslashes On Mar 10, 2005, at 9:17 PM, stg wrote: > Hello, > > > > I am having a small issue with posting from forms; > > > > It goes like such: > > > > I have a form in which a user can type in a message and in a hidden > text > field a link is sent, then in the page the form goes to it sends and > email > to a mailing list with the message and a link underneath bottom. > > > > However when I submit a hyperlink in a form like > > href="http://localhost/knewsl/" > > > > > It is received in the next page with a "\" before every " " " for > example: > > http://localhost/knewsl/file.pdf\";>Click here to view > newsletter - Which obviously doesn't work. > > > > I would be most grateful if anyone could help. > > > > Cheers, > > Simon > > * Stephen Johnson [EMAIL PROTECTED] http://www.thelonecoder.com --continuing the struggle against bad code-- * -- 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 help Quotations, Quotations, Quotations
http://www.php.net/stripslashes On Mar 10, 2005, at 9:17 PM, stg wrote: Hello, I am having a small issue with posting from forms; It goes like such: I have a form in which a user can type in a message and in a hidden text field a link is sent, then in the page the form goes to it sends and email to a mailing list with the message and a link underneath bottom. However when I submit a hyperlink in a form like http://localhost/knewsl/" > It is received in the next page with a "\" before every " " " for example: http://localhost/knewsl/file.pdf\";>Click here to view newsletter - Which obviously doesn't work. I would be most grateful if anyone could help. Cheers, Simon * Stephen Johnson [EMAIL PROTECTED] http://www.thelonecoder.com --continuing the struggle against bad code-- * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP help Quotations, Quotations, Quotations
Hello, I am having a small issue with posting from forms; It goes like such: I have a form in which a user can type in a message and in a hidden text field a link is sent, then in the page the form goes to it sends and email to a mailing list with the message and a link underneath bottom. However when I submit a hyperlink in a form like http://localhost/knewsl/" > It is received in the next page with a "\" before every " " " for example: http://localhost/knewsl/file.pdf\";>Click here to view newsletter - Which obviously doesn't work. I would be most grateful if anyone could help. Cheers, Simon
Re: [PHP] php-help
The manual to the rescue http://jp2.php.net/stripslashes There is alot of good information in the manual, think it would benefit you alot going through some of it, especially the central chapters -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message - From: "K Karthik" <[EMAIL PROTECTED]> To: Sent: Thursday, March 10, 2005 4:01 PM Subject: [PHP] php-help sir, i'll explain my problem.and if anyone could help me i'll be thankful. i am displaying a content read from a file into a text area of a form. when i make changes andretrieve back in the text area, i encounter a problem.. i.e., when i enter text="please enter" i have an outputas text= /" please enter/" thanks, kkarthik -- 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] php-help
sir, i'll explain my problem.and if anyone could help me i'll be thankful. i am displaying a content read from a file into a text area of a form. when i make changes andretrieve back in the text area, i encounter a problem.. i.e., when i enter text="please enter" i have an outputas text= /" please enter/" thanks, kkarthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-help
The following should be pretty selfexplanatory * 0 * * * /usr/local/bin/php /usr/local/www/cron/sync.php -- Lars B. Jensen, Internet Architect CareerCross Japan Japan's premier online career resource for english speaking professionals http://www.careercross.com - Original Message - From: "K Karthik" <[EMAIL PROTECTED]> To: Sent: Wednesday, March 09, 2005 3:48 PM Subject: [PHP] php-help hello sir, i am so happy about the immiediate response for any of my question. i would like to create a static html page. using cronjob regenerate it every 24 hours. how can i do it using php. thanks, kkarthik -- 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] php-help
hello sir, i am so happy about the immiediate response for any of my question. i would like to create a static html page. using cronjob regenerate it every 24 hours. how can i do it using php. thanks, kkarthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-help
K Karthik wrote: sir, iam new to php i'll explain my problem .if u could help i'll be very thankful... in my mysql database i have two tables i.e., table1 and table2. i have an array of result from one query "select feild1 from table1 " i have to use this result in another query. "select field2 from table 2 where field1 = (array of first query iterated)" can u help me doing this in php. thanks, karthik This isn't PHP. Check the MySQL manual. You can construct your query to select from both tables at the same time, so chances are you don't need to get data from one table just so you can use that to retrieve data from another table. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-help
Hi, MySQL is capable of doing very complex queries. You could boil down your query into just one single line: 'SELECT * FROM table1, table2 WHERE table2.field2 = table1.field1' A good starting point would be the MySQL manual. I would also strongly recommend you to take a look at the PHP manual for information about connecting to a MySQL database from PHP, gaining results and processing these results. If you could post some PHP code to this list, I am sure members of this list will gladly help you with debugging the code. Regards, Frank 2005-03-08 kl. 11.26 skrev K Karthik: sir, iam new to php i'll explain my problem .if u could help i'll be very thankful... in my mysql database i have two tables i.e., table1 and table2. i have an array of result from one query "select feild1 from table1 " i have to use this result in another query. "select field2 from table 2 where field1 = (array of first query iterated)" can u help me doing this in php. thanks, karthik Frank Arensmeier Marketing Support NIKE HYDRAULICS AB Box 1107 631 80 Eskilstuna Sweden tel +46 16 82 34 fax +46 16 13 93 16 email: [EMAIL PROTECTED] www.nikehydraulics.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-help
sir, iam new to php i'll explain my problem .if u could help i'll be very thankful... in my mysql database i have two tables i.e., table1 and table2. i have an array of result from one query "select feild1 from table1 " i have to use this result in another query. "select field2 from table 2 where field1 = (array of first query iterated)" can u help me doing this in php. thanks, karthik
Re: [PHP] php-help
K Karthik wrote: dear friends, can u help me to find the current directory where my php files are.. using php. echo dirname($_SERVER['PHP_SELF']); Please, read the manual and search the archives. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php-help
dear friends, can u help me to find the current directory where my php files are.. using php. thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [php] -help me
Tyler Replogle wrote: $str_array = explode("/", ""/home/karthik/welcome.php/view.php"); // $str_array[4] shoud be view.php From: K Karthik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800 Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for <[EMAIL PROTECTED]>; Fri, 18 Feb 2005 00:49:59 -0500 Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 - Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 - X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90= Return-Path: <[EMAIL PROTECTED]> X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: <mailto:[EMAIL PROTECTED]> list-unsubscribe: <mailto:[EMAIL PROTECTED]> list-post: <mailto:php-general@lists.php.net> Delivered-To: mailing list php-general@lists.php.net Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) FILETIME=[AEF42BA0:01C5157D] i have got string as "/home/karthik/welcome.php/view.php" i just need "view.php" how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php or use basename() -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [php] -help me
$str_array = explode("/", ""/home/karthik/welcome.php/view.php"); // $str_array[4] shoud be view.php From: K Karthik <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] [php] -help me Date: Fri, 18 Feb 2005 11:20:29 +0530 MIME-Version: 1.0 Received: from lists.php.net ([216.92.131.4]) by MC8-F21.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Feb 2005 21:49:59 -0800 Received: from ([216.92.131.4:8115] helo=lists.php.net)by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTPid CA/4E-28819-70285124 for <[EMAIL PROTECTED]>; Fri, 18 Feb 2005 00:49:59 -0500 Received: (qmail 87241 invoked by uid 1010); 18 Feb 2005 05:49:25 - Received: (qmail 87119 invoked by uid 1010); 18 Feb 2005 05:49:22 - X-Message-Info: JGTYoYF78jHVyuGSbP1BO8du3qnIwzSNq7BOh4Qcf90= Return-Path: <[EMAIL PROTECTED]> X-Host-Fingerprint: 216.92.131.4 lists.php.net Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm Precedence: bulk list-help: <mailto:[EMAIL PROTECTED]> list-unsubscribe: <mailto:[EMAIL PROTECTED]> list-post: <mailto:php-general@lists.php.net> Delivered-To: mailing list php-general@lists.php.net Delivered-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Host-Fingerprint: 203.193.155.110 alps.manageengine.org Linux 2.4/2.6 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: en-us, en X-OriginalArrivalTime: 18 Feb 2005 05:50:00.0026 (UTC) FILETIME=[AEF42BA0:01C5157D] i have got string as "/home/karthik/welcome.php/view.php" i just need "view.php" how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- 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] -help me
On Thu, 2005-02-17 at 23:50, K Karthik wrote: > i have got string as "/home/karthik/welcome.php/view.php" > i just need "view.php" how shall i remove rest of the string. > please do help me.i am new to php. > -thanks, > karthik > Lets see if you can learn to fish. Since you are new you should learn that one of the greatest resources in all of opensource software is the php.net documentation. try entering php.net/searchterm in the browser ie: php.net/filename hmm looks like there is a function called basename you might want to look at. The manual has all functions arranged by functional area ( eg filesystem) I can't tell you enough what a powerful resource this was to me a a beginning php programmer and remains so to this day. Bret -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [php] -help me
i have got string as "/home/karthik/welcome.php/view.php" i just need "view.php" how shall i remove rest of the string. please do help me.i am new to php. -thanks, karthik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help
TonyC wrote / napísal (a): I have used Dreamweaver 4.0 for editing my html files and love its 'design view; so I know exactly what the file looks like before I upload to the server. We currently now are incorporating a shopping cart into our site and the files are in 'php' format. When I open a 'php' file in Dreamweaver in 'design mode' it looks nothing like the page does on the web. How do I view it so it looks the way an 'html' file does in 'design mode'. Or, another program that can do what I need is fine too. Thanks. Deb Curiale Probably cause php is interpreted by the php interpreter and try not to think of it like about html. Try to look in the browser through the webserver like http://localhost/dir/some.php trobi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help
I have used Dreamweaver 4.0 for editing my html files and love its 'design view; so I know exactly what the file looks like before I upload to the server. We currently now are incorporating a shopping cart into our site and the files are in 'php' format. When I open a 'php' file in Dreamweaver in 'design mode' it looks nothing like the page does on the web. How do I view it so it looks the way an 'html' file does in 'design mode'. Or, another program that can do what I need is fine too. Thanks. Deb Curiale -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 1/6/2005 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help
Hey, Im making a site to where I can fill out a form and it adds updates to the main page, but I only want the site to display 5 updates on it, now I know how to make it only show 5 updates, but then that means when a new update is posted to the site, it just stores the old updates in the database and over time this can make the database quite large, How would I make it delete the oldest update and just add the newest update to the top of the list ? So this way I only have 5 updates stored in the database at all times. Thanks ConbuD --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.744 / Virus Database: 496 - Release Date: 8/24/2004 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP help files in pdf
Does anyone have the pdf format of the php help files with proper page numbering -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php help
Hello, I am Dipesh from BG Broadband, India.. I have configured freetds with php as well as apache. I am also able to connect to the sql server 2000 server through the tsql utility of the freetds. But when I am connecting with the php script by the mssql_connect or sybase_connect function then the error log shows that the connection is refused or the user is denied permission. The same thing done manually works but via php doesn't Can u help me Thanx in advance Regards, Dipesh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php help : configuring freetds with php
Hi, I am Dipesh from Iqara Broadband. I am just now trying to configure the Freetds with PHP on Red Hat Linux 7.2 I have configured PHP with all options including Sybase as it is shown below; './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-sybase=/usr/local/freetds0.53/' '--with-odbc' '--with-mysql' '--with-ldap' '--with-pgsql' '--with-oci8=/home/oracle/m01/app/oracle/product/8.1.7/' '--with-gbdm' '--enable-dbase' '--enable-calendar' '--enable-bcmath' '--enable-filepro' '--enable-track-vars' '--enable-force-cgi-redirect' as it should be. All other databases like mysql, Oracle and pgsql are successfully tested from php. but the problem is with MS SQL server. Through the utility tsql provided by freetds we can manually connect to the SQL server by providing the user name and password But when I am writing a php script like $connect = mssql_connect("172.16.3.36","dips","dips") or die("\ncant connect"); then it can't connect and the error in the log is saying that Connection is refused. Kindly help if u know anyting regarding this. Regards, Dipesh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php help for project!!
hi, check the PHP Manual about MySQL functions: http://www.php.net/manual/en/ref.mysql.php you can also check for HTML forms (including checkboxes) here: http://www.w3schools.com/html/html_forms.asp and tables (for the reports): http://www.w3schools.com/html/html_tables.asp if you face a particular problem, send here again khalid _ Unlimited Internet access for only $21.95/month. Try MSN! http://resourcecenter.msn.com/access/plans/2monthsfree.asp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php help for project!!
Hello I need help with A project that I'm doing for a fantasy football league.. Where I'm doing auto add/delete of players of a roster With maintaing a salary cap of $40.000.00 I have done the mysql database.. I just need help with Code and forms I want to use check boxes to do the add and delete And show reports as well of players stats and other things. karl
[PHP] -=-=-=- PHP help about Java & SSL -=-=-=-=-
Hi , I 'm using RedHat 7.2 +Apache 1.3.20 + Java 1.4.0 + PHP 4.2.1 (compiled with Java support) . I configured php for using Java. I wrote some Java code which uses SSL certificate . I can run my code from CLI (Command Line Interface) and it works fine but when I try to run from browser it returns error code. Did anyone have some trick about this situation (Apache+PHP+Java+SSL). Sincerely. Emin CALIKLI -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP help needed
Hello, I need a PHP programmer to assist me with updates to childrens website. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP --help
In article <002b01c1f115$7ae52790$2f7e3393@TB447CCO3>, [EMAIL PROTECTED] (1lt John W. Holmes) wrote: > Use $_GET["fn"] and $_GET["ln"], or $_POST[], depending on your action. > > Does anybody read the release notes for a product before you download and > install it? I'm just going to save a standard message that covers this > because I see questions like this continuing until everybody upgrades. Since there are still people using PHP3, that could be a very looong time. -- CC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP --help
Use $_GET["fn"] and $_GET["ln"], or $_POST[], depending on your action. Does anybody read the release notes for a product before you download and install it? I'm just going to save a standard message that covers this because I see questions like this continuing until everybody upgrades. ---John Holmes... - Original Message - From: "Pelillo, Mark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 30, 2002 6:13 PM Subject: [PHP] PHP --help > I have two linux boxes running Apache 2.0.35 with PHP 4.2.0RC4. Sunday I > did a bunch work from home on one system, moved to the second system and > everything was working on both systems.. This morning I modifed one section > of code on the second system work and now I don't seem to get anything to > work. I went back to the old stuff that was working and nothing. I have > check the old code and the updated code on system one and it is still > working. > > So I went back to the basics. I can execute phpinfo() without a > problem, but if I try to use a simple form to pass variable from an html > page to the php script, I don't get anything from the php script. > > Here is the simple html file: > > > > *First Name: > > > *Last Name: > > > > > > > > The php script has the following lines > echo $fn; > echo $ln; > ?> > > > I have tried using both POST and GET. At least with GET I see the url as > "insert-user.php?fn=mark&ln=pelillo". But the echo statements output > nothing. > > > Any thoughts?? > > Mark Pelillo > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP --help
I have two linux boxes running Apache 2.0.35 with PHP 4.2.0RC4. Sunday I did a bunch work from home on one system, moved to the second system and everything was working on both systems.. This morning I modifed one section of code on the second system work and now I don't seem to get anything to work. I went back to the old stuff that was working and nothing. I have check the old code and the updated code on system one and it is still working. So I went back to the basics. I can execute phpinfo() without a problem, but if I try to use a simple form to pass variable from an html page to the php script, I don't get anything from the php script. Here is the simple html file: *First Name: *Last Name: The php script has the following lines I have tried using both POST and GET. At least with GET I see the url as "insert-user.php?fn=mark&ln=pelillo". But the echo statements output nothing. Any thoughts?? Mark Pelillo
Re: [PHP] PHP Help
You aren't going to be able to build a php application with frontpage or any other WYSIWYG HTML editor. You are going to have to type it out, the PHP that is. If this is something that you need done right away, I suggest you hire an experienced PHP programmer. If you don't know much about MySQL or PHP you aren't going to be able to build anything worthwhile, at least not in the next 3 months. On Sat, 2 Mar 2002, Josiah Wallingford wrote: > I do not know very much about MySql or PHP but need to build a pretty > complex database and script. I need a program like (I hate to say this) > Front Page or UltraDev that will allow me to do it visually. I am on a > Mac but can run the software on a PC. I hate Front Page so I hope nobody > says that. Anybody know of anything like that? I have the whole project > in my head and can explain it in detail if I need to. If this program is > written in php that would be awsome! > Thanks. > > > -- K E I T H V A N C E Software Programmer http://www.vanceconsulting.net [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help
On Sat, 2 Mar 2002, Josiah Wallingford wrote: >I do not know very much about MySql or PHP but need to build a pretty >complex database and script. I need a program like (I hate to say this) >Front Page or UltraDev that will allow me to do it visually. I am on a >Mac but can run the software on a PC. I hate Front Page so I hope nobody >says that. Anybody know of anything like that? I have the whole project >in my head and can explain it in detail if I need to. If this program is >written in php that would be awsome! >Thanks. Are you looking to hire someone? PHP is a scripting language, and as such you'll have a hard time finding a gui editor that can do "everything" you need done. Everytime I see or hear about a new "PHP" editor, I go check it out. And in every case so far, after a few hours or less, I find myself uninstalling it and going back to using vim and editplus. Learn the code or hire someone, not much way around it else. -- --- Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help
I do not know very much about MySql or PHP but need to build a pretty complex database and script. I need a program like (I hate to say this) Front Page or UltraDev that will allow me to do it visually. I am on a Mac but can run the software on a PC. I hate Front Page so I hope nobody says that. Anybody know of anything like that? I have the whole project in my head and can explain it in detail if I need to. If this program is written in php that would be awsome! Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Help Requested
> I have a template stored in a database which contains variables. Then, > in a separate file, I have the variables set, and I call the template and run > it through eval(). Unfortunately, it only is parsing a few of them. Could > somebody take a look and give me some input? Here's what my template table looks like: CREATE TABLE templates ( id tinyint(4) unsigned NOT NULL auto_increment, name varchar(16) NOT NULL default '', template text NOT NULL, PRIMARY KEY (id), UNIQUE KEY name (name) ) Then here is my template function that preps the data for use with eval(): function template($name, $set="main"){ global $tb_templates; $sql = " select * from $tb_templates where name = '$name' "; if($query = sql_query($sql)){ if(sql_num_rows($query)==1){ $array = sql_fetch_array($query); $template = str_replace("\\'","'",addslashes($array["template"])); } else { $template = $name . " template not found."; } } return $template; } Then here is how to use eval() properly: $template_name = template("template_name"); eval("\$template_name = \"$template_name\";"); This will parse all your $vars you store in the templates. Greg Donald - http://destiney.com/ http://phprated.com/ | http://phplinks.org/ | http://phptopsites.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP Help Requested
Hello =) I have a template stored in a database which contains variables. Then, in a separate file, I have the variables set, and I call the template and run it through eval(). Unfortunately, it only is parsing a few of them. Could somebody take a look and give me some input? Thanks -- Script: http://penfieldsocrates.org/test.php -- Script Source: http://penfieldsocrates.org/test.txt -- Template: http://penfieldsocrates.org/from_db.txt (need to view source)
Re: [PHP] php help needed, is there a bright spark out there!
Hello hamish, [msg converted from HTML to simple-text format] I have been asked to do a project that seems to be baffling me. It's not really the php which is the hard part, but the mathematical problem behind the project that is causing me to have a headache! ... =This reminds me of the test-problems we were given at Uni - in fact one of my contracts (was self-supporting not a scholarship student) was to support a post-grad student doing exactly this sort of thing - the routing of milk tankers around farm pick ups and delivering to a network of factories. =Sadly I have difficulty remembering that far back... What is my name again? =The issues of least-path, network analysis or even linear programming are discussed (big time) in Operations Research text books. Factory layout is a fairly 'standard' problem. A visit to a decent Uni/mgmt/technical library should give you a bunch of models and formulae to play with! =Regards, =dn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php help needed, is there a bright spark out there!
Heheh... Nice problem :) But the approach I would take (ALERT PERSONAL OPINION) step one: Check in which row an item order by row desc (C first L last) is located (ROW C,F,I,L in your Xcel sheet) step two: Loop in list of row. And let him always start at the first row! step three: Three options! option a: Next Item is in same row option b: Next Item is the next row and the item is more then half way the row, option c: Next Item is in the next row and the item is less than half way the row. actions: a. Walk on b. Walk on and let him go to the other row at the top c. Walk back and go to the next row. step 4. Get Item step 5. two options. a: More items available b: no more items actions: a. Goto step 3 b. - step 6. Go back to start point HTH Jerry Verhoef -Original Message- From: hamish [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 06, 2002 5:00 PM To: [EMAIL PROTECTED] Subject: [PHP] php help needed, is there a bright spark out there! Hello All, I have been asked to do a project that seems to be baffling me. It's not really the php which is the hard part, but the mathematical problem behind the project that is causing me to have a headache! Imagine an ecommerce site where a user can pick 5 products (it must be 5) from a possible 60. That's the easy bit. The project that I have to do is to do with the way the order is dealt with. Imagine the company has a warehouse (the attached layout) where the yellow boxes are bins of 1 product in each (A1 would be the bin with all products A1 in). P1, P2, and P3 are stations where pickers (people who pack each order) receive the order. I have to build some PHP that shows the picker the optimum way around the warehouse to pick up all the 5 products, and then return him to the starting station. I hope there is a bright spark out there that can solve this easier than I have (my way requires calculating all the possible ways of picking up the 5 products and then calculating the shortest route from a stored database, but it would require 780 sql statements, that just isn't going to work!) Here are the rules that I have to follow: An Order Picking slip for a complete order is printed at 1 of 3 packing locations (P1, P2, or P3). A picker must start at one of these packing locations, collect all products required for that order then return back to the start position to deposit all items for packing. Note: A picker can only move one square at a time (& not diagonally) Pickers cannot walk through bin locations! A picker can only access a bin location when standing directly at the side. e.g. A picker standing at 'X' can access locations B8 or C8 from this position. A picker standing at 'Y' cannot access any locations. I live in hope! Hamish The information contained in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, production, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately. The content of the email is not legally binding unless confirmed by letter bearing two authorized signatures. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php help needed, is there a bright spark out there!
Hello All, I have been asked to do a project that seems to be baffling me. It's not really the php which is the hard part, but the mathematical problem behind the project that is causing me to have a headache! Imagine an ecommerce site where a user can pick 5 products (it must be 5) from a possible 60. That's the easy bit. The project that I have to do is to do with the way the order is dealt with. Imagine the company has a warehouse (the attached layout) where the yellow boxes are bins of 1 product in each (A1 would be the bin with all products A1 in). P1, P2, and P3 are stations where pickers (people who pack each order) receive the order. I have to build some PHP that shows the picker the optimum way around the warehouse to pick up all the 5 products, and then return him to the starting station. I hope there is a bright spark out there that can solve this easier than I have (my way requires calculating all the possible ways of picking up the 5 products and then calculating the shortest route from a stored database, but it would require 780 sql statements, that just isn't going to work!) Here are the rules that I have to follow: An Order Picking slip for a complete order is printed at 1 of 3 packing locations (P1, P2, or P3). A picker must start at one of these packing locations, collect all products required for that order then return back to the start position to deposit all items for packing. Note: A picker can only move one square at a time (& not diagonally) Pickers cannot walk through bin locations! A picker can only access a bin location when standing directly at the side. e.g. A picker standing at 'X' can access locations B8 or C8 from this position. A picker standing at 'Y' cannot access any locations. I live in hope! Hamish warehouse layout.xls Description: MS-Excel spreadsheet -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
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]
[PHP] PHP Help required
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]
Re: [PHP] php help probably basic (used stripslashes but probably not the right way to do it)
On Tue, 11 Sep 2001 14:20, Lance Rochelle wrote: > I am having the following problem. > I have a database that is setup as follows > > CREATE TABLE test ( > id tinyint(4) NOT NULL auto_increment, > text text NOT NULL , > PRIMARY KEY (id) > ) TYPE=MyISAM; > > I have a page after a form that confirms all data to be entered the > html is as follows > > text=\"test \'ve\" > id=1 > > If this isn't in an echo statement you shouldn't be escaping the double quotes here. That should look more like other wise what is seen is > > > > > however in the next page I am doing a print of the insert statement for > testing and all I get is the following > insert into test (id,text) values ('1','\') > > I have tried the following > $test = stripslashes($test); > > but it just gets worse any ideas would be helpful > > I am using php 4.0.6, apache 1.3.20, mysql 3.23.42, and Linux kernel > 2.4.3 > > > Lance Rochelle > [EMAIL PROTECTED] > http://ulands.idlegames.com > (607) 775-2681 > --- > Being a Systems Administrator is like > hitting yourself in the bead with a brick. > After a while you don't feel the pain. > -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Not a real tagline, but an incredible soy substitute. -- 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] php help probably basic (used stripslashes but probably not the right way to do it)
I am having the following problem. I have a database that is setup as follows CREATE TABLE test ( id tinyint(4) NOT NULL auto_increment, text text NOT NULL , PRIMARY KEY (id) ) TYPE=MyISAM; I have a page after a form that confirms all data to be entered the html is as follows text=\"test \'ve\" id=1 however in the next page I am doing a print of the insert statement for testing and all I get is the following insert into test (id,text) values ('1','\') I have tried the following $test = stripslashes($test); but it just gets worse any ideas would be helpful I am using php 4.0.6, apache 1.3.20, mysql 3.23.42, and Linux kernel 2.4.3 Lance Rochelle [EMAIL PROTECTED] http://ulands.idlegames.com (607) 775-2681 --- Being a Systems Administrator is like hitting yourself in the bead with a brick. After a while you don't feel the pain. -- 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] PHP Help!
Hello, I am a Newbie at PHP and I have what may be a simple question. I will try and describe my situation the best I can. I am trying to setp up a form that does an automatic execution between mine and another's site. I have a list of tasks that need to be done. They are all the same tasks, but each have different variables from the database, like codes and amounts, etc. When I click on "Perform Now" on one of the tasks, it works perfectly., but then when I clcik on the next task, it stated that I already did that task. It appears that it is using the same info from the last task, instead of updating the form with the new task's info. Even when I hit refresh it says the same thing. The only way I can go on to the next task is by opening an entirely new window. This defeats the purpose of time saving, because if I open a new window, I have to type in my login and password information to even get into the admin section. Then have to click on the link to get tot the page. Then I would have to do it all over again for the over two hundred tasks I have. I hope you can understand what I am trying to do. Is there a code that resets the variables to nill, so that it can grab the new info? Hopefully, you won't need the code that I've used in order to answer my problem, but if you do, I will privately email it to you. Thank you in advance for your help for my situation. Anthony -- 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]