Re: [PHP] problem connecting php and mysql

2005-04-26 Thread Hegeds Balzs
Hi, i'm not so good at running php on microsoft stuff, but it seems you dont have mysql support compiled in or not tuned php.ini properly. You can try php 4.3.11 zip package from http://php.net 'cause it said it has mysql support compiled in. Again, it's just a tip. Balazs Hegedus rahot man

RE: [PHP] problem connecting php and mysql

2005-04-26 Thread Rob Agar
hi Rahot From: rahot man I have windows server 2003, PHPv5.0.3, Mysql v4.1 and IIS 6 and i am working in Macromedia Dreamweaver MX2004 i am unable to connect to the mysql server. but my php files are running fine and my mysql server is also running fine. i) i had changed the

Re: [PHP] problem connecting php and mysql

2005-04-26 Thread Prathaban Mookiah
Hi, I had this same problem and I followed the the following instructions found in the online manual on installing PHP for windows: If you've run other versions of PHP in the past and are having trouble upgrading to PHP5, particularly in loading the dynamic link library

Re: [PHP] Help outputting an array?

2005-04-26 Thread Petar Nedyalkov
On Tuesday 26 April 2005 06:55, Brian Dunning wrote: Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but perhaps my skills at dealing with the array are not where I thought they were. My array print_r's out like this:

[PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
Hi All, again, I'm following an example from webmonkey, http://webmonkey.wired.com/webmonkey/99/21/index3a_page2.html?tw=programming and I'm changing only what's relevant to me. I haven't altered the code basics, though. But I get the error regarding else. I don't see what it is. Anyone..?

Re: [PHP] array from folder

2005-04-26 Thread Petar Nedyalkov
On Monday 25 April 2005 20:24, Ed Dorsch wrote: Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree,

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Prathaban Mookiah
Mark, Back to basics budy!! 25 if ($myrow = mysql_fetch_array($result)); { should be 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent [EMAIL PROTECTED] To: php-general@lists.php.net

Re: [PHP] Re: Opera 8.0 cache ????

2005-04-26 Thread Thomas Goyne
On Mon, 25 Apr 2005 06:46:58 -0700, Jason Barnett [EMAIL PROTECTED] wrote: William Stokes wrote: ... This works fine in IE and Firefox but Opera remembers users previous choice and prints wrong info to user. After pressin refresh button it's back to normal. So does Opera store variable

Re: [PHP] Re: 1 web site, 3 servers, 3 countries - best practises?

2005-04-26 Thread Jochem Maas
Richard Davey wrote: Hello Jochem, Friday, April 22, 2005, 8:13:15 AM, you wrote: JM in a round about way he seems to be asking 'why'? which is not JM totally invalid. To be honest when I ask people why? I actually use that word (or at least something closely related to it). JM do you want/need a

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
Ed Dorsch wrote: Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree, house,boat). Any ideas for how to

Re: [PHP] Zend Certification Exam

2005-04-26 Thread M Saleh EG
M Saleh EG wrote: Any advice from the ones that passed? Thanks Aaron Gould wrote: What exactly are you after? Why does it matter if a person has passed or not? As long as someone has taken the exam, that should be sufficient enough to provide some advice. I dont understand what's the problem

Re: [PHP] array from folder

2005-04-26 Thread Mark Sargent
Mark Sargent wrote: Ed Dorsch wrote: Can PHP generate an array based on file names in a folder? For example, if I have a folder called photos that includes three files -- tree.jpg, house.jpg and boat.jpg -- can PHP look at the file and generate a variable $photos= array (tree, house,boat).

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Mark Sargent
Prathaban Mookiah wrote: Mark, Back to basics budy!! 25 if ($myrow = mysql_fetch_array($result)); { should be 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap -- Original Message --- From: Mark Sargent [EMAIL PROTECTED] To:

Re: [PHP] Zend Certification Exam

2005-04-26 Thread Chris Ramsay
snip I dont understand what's the problem if I asked? So why such a reply? I don't understand. /snip Perhaps it came across as a bit cheeky to Aaron - I kind of got the impression that an answer from someone who has had a go but not passed the exam was not good enough for you... Really, I

[PHP] Cache control

2005-04-26 Thread William Stokes
Hello, I have an web application that checks users rights to specific parts of the apllication at the beginning of each page. However I noticed, with the help of Jason Barnett, that opera caches pages locally and the users rights check fails. The application works fine with Firefox and IE. So I

[PHP] Re: PHP Designer 2005

2005-04-26 Thread Aidan Lister
Contact the company who wrote the software you're trying to use for support. The Disguised Jedi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Some might consider this OT, but I need to figure this out somehow, and google has been no help. I downloaded and installed PHP Designer

[PHP] Re: Help outputting an array?

2005-04-26 Thread Aidan Lister
Hi Brian, Try this function, http://aidan.dotgeek.org/lib/?file=function.array2table.php Brian Dunning [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all - it seems the longer I use PHP, the stupider my questions are getting. I finally got my XML parsed into an array, but

[PHP] Re: Cache control

2005-04-26 Thread William Stokes
Talkin' to myself... does this solve the issue? header (Cache-Control: no-cache); -Will William Stokes [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] Hello, I have an web application that checks users rights to specific parts of the apllication at the beginning of each page.

RE: [PHP] Re: Cache control

2005-04-26 Thread Mark Rees
One rather brute force way to get round this is to append a unique (per-session at least) id to the querystring of each page, which means that the page will be requested from the server rather than the cache. I believe this works in Opera as well as other browsers. There is more to

[PHP] Some Question

2005-04-26 Thread Khorosh Irani
Hello I have some questions: 1.How I can make a optional argument in function that if I dont mention it in my code does not make problem? 2.How I can see apache or IIS headers? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Opera 8.0 cache ????

2005-04-26 Thread William Stokes
I just tested this on a normal http site header (Cache-Control: no-cache); with Opera 8.0 and it seems to me that the browser respects the no-cache header. -Will Thomas Goyne [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] On Mon, 25 Apr 2005 06:46:58 -0700, Jason Barnett [EMAIL

RE: [PHP] Some Question

2005-04-26 Thread Mark Rees
Hello I have some questions: 1.How I can make a optional argument in function that if I dont mention it in my code does not make problem? Start here http://www.php.net/manual/en/functions.arguments.php#functions.variable- arg-list 2.How I can see apache or IIS headers? Thanks

Re: [PHP] Some Question

2005-04-26 Thread Khorosh Irani
Hello 1.I dont have this mean I want this: for example I write this function :myfunction ($para1, $para2, $para3=123) .And I want to make $para1 optional that If I didnt write it (for example:myfunction(1,123) ) It does not make problem 2.I want to see all of header not HTTP_USER_AGENT? Thanks On

[PHP] want to take credit card payments (novice)?

2005-04-26 Thread AndreaD
Does anyone have any handy links/tip/tutorials for a newbee who wants to take credit card payments? Using php never set up a SSL or anything. thanks Ross -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse error: parse error, unexpected T_ELSE

2005-04-26 Thread Petar Nedyalkov
On Tuesday 26 April 2005 11:10, Mark Sargent wrote: Prathaban Mookiah wrote: Mark, Back to basics budy!! 25 if ($myrow = mysql_fetch_array($result)); { should be 25 if ($myrow = mysql_fetch_array($result)) { Note that extra semicolon? Prathap --

Re: [PHP] want to take credit card payments (novice)?

2005-04-26 Thread Chris Ramsay
Personally, I avoid it at all costs - let a large organisation with all the associated security, insurance etc such as Worldpay handle these things...also, search the archives of this list - I believe there was a protracted discussion of this a few weeks ago... Chris -- PHP General Mailing List

[PHP] Line feed in a echo

2005-04-26 Thread Mario de Frutos Dieguez
How can i make a line feed in a echo instruction? like printf(foo\n); -- Mario de Frutos Dieguez División de Ingeniería del Software y Comunicaciones CARTIF -Parque Tecnológico Boecillo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] want to take credit card payments (novice)?

2005-04-26 Thread Angelo Zanetti
you need another IP address for the SSL certificate on your server. Its best to let the payment gateway handle the credit card processing. AndreaD wrote: Does anyone have any handy links/tip/tutorials for a newbee who wants to take credit card payments? Using php never set up a SSL or

Re: [PHP] Line feed in a echo

2005-04-26 Thread Andri Heryandi
Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem connecting php and mysql

2005-04-26 Thread rahot man
i have installed php 4.3.10.exe and now the previous error that mysql_connect() function undefined is not there now. Also i have got the service of mysql. i checked it with phpinfo() But now one more problem is coming that is Warning: mysql_connect(): Client does not support authentication

Re: [PHP] Line feed in a echo

2005-04-26 Thread Chris Ramsay
Like echo foo\n -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Line feed in a echo

2005-04-26 Thread Ken
On 4/26/05, Andri Heryandi [EMAIL PROTECTED] wrote: Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Line feed in a echo

2005-04-26 Thread Ken
On 4/26/05, Ken [EMAIL PROTECTED] wrote: On 4/26/05, Andri Heryandi [EMAIL PROTECTED] wrote: Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); -- PHP General Mailing List

[PHP] Re: want to take credit card payments (novice)?

2005-04-26 Thread AndreaD
Been looking into and and you both are right. All I have to do is sort out the SSL!! AndreaD [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Does anyone have any handy links/tip/tutorials for a newbee who wants to take credit card payments? Using php never set up a SSL or

Re: [PHP] Line feed in a echo

2005-04-26 Thread Mario de Frutos Dieguez
Andri Heryandi escribió: Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); yes that's it thx -- Mario de Frutos Dieguez División de Ingeniería del Software y Comunicaciones CARTIF -Parque

[PHP] Show data in two columns

2005-04-26 Thread Amir Mohammad Saied
Hi, i want to extract the data from my DB (it's an articles database) and want to show them in 2 columns way, like zend.com's articles section, could any one help me? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem connecting php and mysql

2005-04-26 Thread rahot man
i have also solved this problem i found the help from mysql website in the following address http://dev.mysql.com/doc/mysql/en/old-client.html i executed the queries as given in this website and now it is all set and now the mysql and php connection is working properly. Thank you all for

[PHP] Problems with HPHP on AIX and Solaris

2005-04-26 Thread Markus Mayer
Hi All, I have interesting problems with PHP/Hardened PHP 4.3.11 on Apache 2.0.54 on AIX 5.1 and 5.2, and on Solaris 9. I have a directory permissions scheme which has the absolute minimum of rights for the web server to work, that is a directory gets the permissions drwx--s--x (711) with the

Re: [PHP] Show data in two columns

2005-04-26 Thread Chris Ramsay
Looks like they've done something like the following: while (row = data output from db) { print the following: tabletr td width=50% tabletrtdrow1/td/tr/table tabletrtdrow2/td/tr/table tabletrtdrow3/td/tr/table /td td width=50% tabletrtdrow4/td/tr/table tabletrtdrow5/td/tr/table

[PHP] number of cookies and if there are any cookies set?

2005-04-26 Thread AndreaD
I need two bits of info... (i) Are there ANY cookies set? (ii) How many cookies are set? how do I find this information out? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strtotime() lost precision?

2005-04-26 Thread Mario de Frutos Dieguez
Hi! I'm back hahaha :D I'm making functions to calculate the duration (only laboral days) between 2 dates and the initial and final date between a duration give me in laboral days. I use the following function to make the diference between 2 dates: function

Re: [PHP] Line feed in a echo

2005-04-26 Thread Ken
On 4/26/05, Mario de Frutos Dieguez [EMAIL PROTECTED] wrote: Andri Heryandi escribió: Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); yes that's it thx -- Mario de Frutos

Re: [PHP] number of cookies and if there are any cookies set?

2005-04-26 Thread Ken
On 4/26/05, AndreaD [EMAIL PROTECTED] wrote: I need two bits of info... (i) Are there ANY cookies set? (ii) How many cookies are set? how do I find this information out? AD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Line feed in a echo

2005-04-26 Thread M. Sokolewicz
Ken wrote: On 4/26/05, Mario de Frutos Dieguez [EMAIL PROTECTED] wrote: Andri Heryandi escribió: Use echo something br; is that what you mean? Mario de Frutos Dieguez wrote: How can i make a line feed in a echo instruction? like printf(foo\n); yes that's it thx -- Mario de Frutos Dieguez

[PHP] Re: number of cookies and if there are any cookies set?

2005-04-26 Thread M. Sokolewicz
AndreaD wrote: I need two bits of info... (i) Are there ANY cookies set? if(count($_COOKIES) 0) { echo 'cookies are set'; } else { echo 'no cookies set, or to be more precise, no cookies are set which are available to this site'; } (ii) How many cookies are set? echo count($_COOKIES); how do I

Re: [PHP] Zend Certification Exam

2005-04-26 Thread Aaron Gould
Chris Ramsay wrote: Perhaps it came across as a bit cheeky to Aaron - I kind of got the impression that an answer from someone who has had a go but not passed the exam was not good enough for you... Really, I doubt whether there is any difference in doing the exam whatever the outcome, seeing as

[PHP] encrypting pwds using blowfish encryption

2005-04-26 Thread Bosky, Dave
Does anyone have a simple code example of encrypting passwords using the blowfish encryption method? I've only used blowfish with Java and I'm unsure of the syntax. Thanks, Dave HTC Disclaimer: The information contained in this message may be privileged and confidential and protected

Re: [PHP] Zend Certification Exam

2005-04-26 Thread M Saleh EG
Well glad that now u put it this way! For me all that matter is jus knowing wat's gonna be up at the exam. When I said someone who passed it realy wanned to know how to tackel the whole thing... u might fail once n pass the second time. I still dont get/understand the negative way of looking

Re: [PHP] Re: Cache control

2005-04-26 Thread The Disguised Jedi
I think I need to prevent the pages from beeing cached. How this can be done? I'm totally inexperinced with this stuff. Look at the examples and user notes in the header statement in the manual. http://php.net/function.header That should help you, they have a whole section on how to stop

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread The Disguised Jedi
Contact the company who wrote the software you're trying to use for support. Already done. They haven't responded in more than a week. -- The Disguised Jedi [EMAIL PROTECTED] Now you have my $0.02. Or .01 Pounds, .014 Euros, or $0.025 CAN. I'm world-wide BABY! PHP rocks! Knowledge is

[PHP] step by step learning

2005-04-26 Thread Paul Kain
Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and understand html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: encrypting pwds using blowfish encryption

2005-04-26 Thread M. Sokolewicz
$encrypted_data = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $input, MCRYPT_ENCRYPT); http://www.php.net/mcrypt Dave Bosky wrote: Does anyone have a simple code example of encrypting passwords using the blowfish encryption method? I've only used blowfish with Java and I'm unsure of the syntax. Thanks,

Re: [PHP] step by step learning

2005-04-26 Thread Petar Nedyalkov
On Tuesday 26 April 2005 16:16, Paul Kain wrote: Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning Get a book, there are thousands LAMP (Linux, Apache, MySQL, PHP) oriented books on

RE: [PHP] step by step learning

2005-04-26 Thread Mike
Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and understand html -- I'm not sure of any sites, but there's plenty of books. I started with the SAMs Teach

Re: [PHP] step by step learning

2005-04-26 Thread Joseph Connolly
hey paul, php is not like html. HTML is a markup language and PHP is a scripting languange. Once you get through installing PHP, it is not like HTML where you start with the basic tags and learn them one by one. PHP has functions and you need to know which funcitons you need for the right

Re: [PHP] encrypting pwds using blowfish encryption

2005-04-26 Thread John Nichel
Bosky, Dave wrote: Does anyone have a simple code example of encrypting passwords using the blowfish encryption method? I've only used blowfish with Java and I'm unsure of the syntax. http://us4.php.net/mcrypt -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General

Re: [PHP] Error en PHP

2005-04-26 Thread Jason Barnett
Pedro Luis Cruz Riguetti wrote: como puedo salir de sta lista q esta llenando mi correo. 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] step by step learning

2005-04-26 Thread Jay Blanchard
[snip] I'm not sure of any sites, but there's plenty of books. I started with the SAMs Teach Yourself PHP4 book (which may be dated now, who knows) and then switched to a more robust book after getting the language basics (I think the SAMs series are great for getting a cursory look at a

[PHP] PHP safe_mode

2005-04-26 Thread kioto
Hi all i have problem with safe_mode i don't understand the logic to apply to avoid owners problem with script. Can you step by step ho to solve ? Thanks so much in advice. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] step by step learning

2005-04-26 Thread [EMAIL PROTECTED]
try webmonkey.com my first tutorial was this http://webmonkey.wired.com/webmonkey/programming/php/tutorials/tutorial4.html little bit out of date (1999), but it's good one. maybe will be helpful for you. :) -afan Paul Kain wrote: Hi there are there any sites online that show one how to learn php

[PHP] Re: PHP Designer 2005

2005-04-26 Thread Jason Barnett
The Disguised Jedi wrote: Some might consider this OT, but I need to figure this out somehow, and google has been no help. I downloaded and installed PHP Designer 2005, and I really like it so far, but I'm having some problems. Any time it is running, my CPU Usage goes up to 100% and the

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Ryan A
On 4/26/2005 3:12:10 PM, The Disguised Jedi ([EMAIL PROTECTED]) wrote: Contact the company who wrote the software you're trying to use for support. Already done. They haven't responded in more than a week. Keep pestering theman email every day or maybe 2+ emails everyday. -Ryan

[PHP] Re: step by step learning

2005-04-26 Thread Jason Barnett
Paul Kain wrote: Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and understand html Googling PHP Tutorial will give you more, but here's a few: PHPFreaks.com Zend.com

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Joseph Connolly
Sorry, but i have had NO problems with PHP Designer 2005 I have it running on 3 machines...never a problem with memory usagei think it is the greatest thing since sliced bread. Jason Barnett wrote: The Disguised Jedi wrote: Some might consider this OT, but I need to figure this out somehow,

Re[2]: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Richard Davey
Hello Ryan, Tuesday, April 26, 2005, 3:11:31 PM, you wrote: Already done. They haven't responded in more than a week. RA Keep pestering theman email every day or maybe 2+ emails RA everyday. No - sorry but this advice isn't fair. PHP Designer 2005 is a FREE product, even if the original

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Jason Barnett
Joseph Connolly wrote: Sorry, but i have had NO problems with PHP Designer 2005 I have it running on 3 machines...never a problem with memory usagei think it is the greatest thing since sliced bread. Then perhaps you can help out the OP? Do you have any idea why it's eating up CPU? --

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread John Nichel
Joseph Connolly wrote: Sorry, but i have had NO problems with PHP Designer 2005 I have it running on 3 machines...never a problem with memory usagei think it is the greatest thing since sliced bread. That doesn't exactly help the OP does it? -- John C. Nichel ÜberGeek KegWorks.com

Re: [PHP] modify array data

2005-04-26 Thread Jon Aston
I am wanting to rotate the array 45 degrees. Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, April 22, 2005 8:46 am, Jon Aston said: Is there a way to easily rotate array data? what I want to do is change from bob | bill | frank joe | jose | sam

[PHP] Any clever ideas on how to find some random records?

2005-04-26 Thread Brian Dunning
I have a MySQL database with about a million records. I'd like to use the SQL command order by RAND() but my ISP won't let me: whenever the server gets spidered, Google overloads their MySQL server because of all the overhead of that command. I can't just cloak the spiders because I need

Re: [PHP] Re: want to take credit card payments (novice)?

2005-04-26 Thread Angelo Zanetti
yes actually I started the post but I cant remember the subject...but if you can find that thread it will be beneficial to what you want to do... HTH AndreaD wrote: Been looking into and and you both are right. All I have to do is sort out the SSL!! AndreaD [EMAIL PROTECTED] wrote in message

RE: [PHP] modify array data

2005-04-26 Thread Jay Blanchard
[snip] I am wanting to rotate the array 45 degrees. Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Fri, April 22, 2005 8:46 am, Jon Aston said: Is there a way to easily rotate array data? what I want to do is change from bob | bill | frank joe | jose |

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Joseph Connolly
Well, it does help to know that pther people are using the product on multiple machines and are not having problems. It may be that there is something conflicting with the program. HE may have not yet looked into that? He also may have a memory problem. PHPD2005 does not seem to eat up

[PHP] Re: Any clever ideas on how to find some random records?

2005-04-26 Thread Jason Barnett
Brian Dunning wrote: I have a MySQL database with about a million records. I'd like to use the SQL command order by RAND() but my ISP won't let me: whenever the server gets spidered, Google overloads their MySQL server because of all the overhead of that command. I can't just cloak the

[PHP] problem with array diff, need to reindex array according to key

2005-04-26 Thread Angelo Zanetti
HI all, I am using the array_diff function. The problem im having is the array that gets returned. Well here's an example: this is where i assign the values to two different arrays $a[]=0; $a[]=1; $a[]=2; $a[]=3; $b[]=1; $b[]=4; $b[]=0; $diff = array_diff_assoc($a, $b); then compare the

Re: [PHP] Problems reading a DOMDocument out of a session

2005-04-26 Thread Jochem Maas
Cas wrote: Tried the newest libXML stable release (2.6.19) and recompiled mod_php with it but I still have get the error: Warning: Couldn't fetch DOMDocument in /var/www/localhost/htdocs/pluxbox/test.php on line 20 foo May I ask what your system specs are? (OS, PHP and libXML version). sure, I

[PHP] Re: problem with array diff, need to reindex array according to key

2005-04-26 Thread Jason Barnett
Angelo Zanetti wrote: HI all, I am using the array_diff function. The problem im having is the array that gets returned. Well here's an example: this is where i assign the values to two different arrays $a[]=0; $a[]=1; $a[]=2; $a[]=3; $b[]=1; $b[]=4; $b[]=0; $diff = array_diff_assoc($a, $b); /*

Re: [PHP] Re: step by step learning

2005-04-26 Thread Lancer Emotion 16
you can go to www.w3schools.com,too On 4/26/05, Jason Barnett [EMAIL PROTECTED] wrote: Paul Kain wrote: Hi there are there any sites online that show one how to learn php in a step by step fashion? I am really lost and would need to start at the very beginning I already know and

Re: [PHP] Persistent Database Connections

2005-04-26 Thread Michael Phillipson
Thanks, Philip (and Richard also), for offering your impressions. Per Philip's suggestion, I ran ab (Apache Benchmark) to stress test the page that loads my persistent connection. Depending on the parameters I set for ab, I was able to increase the number of connections from my initial 9 to

Re: [PHP] Re: problem with array diff, need to reindex array according to key

2005-04-26 Thread Angelo Zanetti
sorry I'm not using array_diff_assoc just array_diff... Jason Barnett wrote: Angelo Zanetti wrote: HI all, I am using the array_diff function. The problem im having is the array that gets returned. Well here's an example: this is where i assign the values to two different arrays

RE: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Chris W. Parker
Joseph Connolly mailto:[EMAIL PROTECTED] on Tuesday, April 26, 2005 8:12 AM said: Well, it does help to know that pther people are using the product on multiple machines and are not having problems. It may be that there is something conflicting with the program. HE may have not yet looked

Re: Re[2]: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Ryan A
Hello Ryan, Hey Rich, Already done. They haven't responded in more than a week. RA Keep pestering theman email every day or maybe 2+ emails RA everyday. No - sorry but this advice isn't fair. PHP Designer 2005 is a FREE product, even if the original poster had made a donation to

Re: [PHP] Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource

2005-04-26 Thread Chris Shiflett
Mark Sargent wrote: *Warning*: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in */var/www/html/phpmysqltable.php* on line *36* Below are snippets of my code, Line 22: $result = mysql_query(SELECT product_name, product_model_number, product_serial_number FROM

RE: [PHP] Any clever ideas on how to find some random records?

2005-04-26 Thread David Tucker
[OP] I have a MySQL database with about a million records. I'd like to use the SQL command order by RAND() but my ISP won't let me: whenever the server gets spidered, Google overloads their MySQL server because of all the overhead of that command. I can't just cloak the spiders because I need them

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Lester Caine
The Disguised Jedi wrote: Contact the company who wrote the software you're trying to use for support. Already done. They haven't responded in more than a week. Just as an aside - I have had exactly the same problem with a number of home brew applications. Built using Builder5 and 6. It is

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread Greg Donald
On 4/26/05, Lester Caine [EMAIL PROTECTED] wrote: I have had exactly the same problem with a number of home brew applications. What's that mean, 'home brew' ? The application seems very professional to me, even if it is free. -- Greg Donald Zend Certified Engineer http://destiney.com/ --

[PHP] Can this code go faster?

2005-04-26 Thread René Fournier
I've looked in the docs and don't see anything for this per se... I need to convert a binary number of arbitrary length to a signed integer. This is how I'm doing it now: CODE function bin2int ($bin) { if (substr($bin,0,1) == 1) { $val = 0 -

Re: [PHP] Re: PHP Designer 2005

2005-04-26 Thread John Hinton
Greg Donald wrote: On 4/26/05, Lester Caine [EMAIL PROTECTED] wrote: I have had exactly the same problem with a number of home brew applications. What's that mean, 'home brew' ? The application seems very professional to me, even if it is free. Home brew... like free stuff... stuff you

Re: [PHP] Re: problem with array diff, need to reindex array according

2005-04-26 Thread Jason Barnett
Angelo Zanetti wrote: sorry I'm not using array_diff_assoc just array_diff... /* Should also be able to re-index the diff of two arrays */ $diff = array_values(array_diff($a, $b)); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Timetables

2005-04-26 Thread Jared Williams
On Mon, April 25, 2005 3:14 pm, Richard Collyer said: This is probably more of a db question but... Probably. I am writing an employee database for work. The majority of it is simple enough however I am stuck on the timetabling. It has to be done in PHP as there are 40 plus

[PHP] Re: Can this code go faster?

2005-04-26 Thread Jason Barnett
René Fournier wrote: I've looked in the docs and don't see anything for this per se... I need to convert a binary number of arbitrary length to a signed integer. This is how I'm doing it now: CODE function bin2int ($bin) { if (substr($bin,0,1) == 1) { $val = 0 -

[PHP] Re: Can this code go faster?

2005-04-26 Thread Jason Barnett
Well that was retarded of me... I missed that you said you needed negative integers... in which case I don't know of anything better than what you've already coded. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] logical advise

2005-04-26 Thread Ryan A
Hey, am a bit stumped as to how to do this: We are allowing users to make categories , then they upload their pics to one of these categories. Should I have two tables: user_categories pic_details or should I use one table for both? Seems silly , but my heads feeling loopy :-p Thanks, Ryan

[PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Ryan A
Hi, several classes that provide different kinds of Flash integration: http://www.phpclasses.org/browse/class/102.html True, but going there has become a real pain in the ...you know where coz you get a crapload of popups, snip I understand you do not like ads. I do not like them either,

RE: [PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Jay Blanchard
[snip] The bottom line is this: you can easily reduce the number of ads on that site without hurting yourself in any way, but you have decided to take the RIAA way and thump the very people who made your product a success just because you can and greedyness.. but please correct me if I am

RE: [PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Ryan A
Hey Jay, I think that your entire response was out of line Ryan. Anyone who wants to make a profit deserves to do so. I would have to bet that the margin is not nearly high enough to 'buy a Ferrari'. He has worked hard for any success he has gained and for you to take him on over it is beyond

Re: [PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Jason Barnett
I would normally prefer to not get involved at all, but in this case I would ask that we *just let this thread die*. All of the people that have responded to this thread are regular / helpful contributors to this group. If you take personal offense to ads or whatever then make this a private

[PHP] handling a user pressing browser's back button

2005-04-26 Thread James
Currently I have an application with PHP scripts that passes POST variables to keep track of ID's of records, the processing mode and such. I totally didn't design it to handle when a user hits the Back button in the browser...everything is tightly controlled...The user clicks on

Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread Greg Donald
On 4/26/05, James [EMAIL PROTECTED] wrote: What have people done in the past to deal with states and such and keeping these things straight when the user hits the BACK button? Use GET instead of POST for your form method. And if you need both methods just handle the incoming requests from the

Re: [PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Ryan A
I would normally prefer to not get involved at all, but in this case I would ask that we *just let this thread die*. All of the people that have responded to this thread are regular / helpful contributors to this group. If you take personal offense to ads or whatever then make this a

Re: [PHP] Re: Opera 8.0 cache ????

2005-04-26 Thread Thomas Goyne
On Tue, 26 Apr 2005 02:03:28 -0700, William Stokes [EMAIL PROTECTED] wrote: I just tested this on a normal http site header (Cache-Control: no-cache); with Opera 8.0 and it seems to me that the browser respects the no-cache header. -Will Load the page, then navigate away and hit the back

  1   2   >