[PHP] How does one reply to messages on this list?

2010-12-16 Thread Sam Smith
If I just hit 'Reply' I'll send my reply to the individual who created the message. If I hit 'Reply All' my reply will be sent to: Govinda govinda.webdnat...@gmail.com, PHP-General List php-general@lists.php.net and the creator of the message. Neither option seems correct. What's up with that?

[PHP] PDO: good, popular?

2010-12-14 Thread Sam Smith
Searching for PHP CRUD in hopes of learning the best way to access databases and to use PEAR or what I came across PDO. I want to know the communities opinion of PDO: everyone uses it or no one uses it or it's great or what? Thanks

[PHP] Parse info from 1,000 files to file

2010-06-02 Thread Sam Smith
Can someone briefly point me to the functions I'll need to parse some information from thousands of files in a single directory and then prepare the extracted info into a single file for SQL import? Like file() or readfile() and some regex and writefile?? Thanks -- PHP General Mailing List

[PHP] preg_replace insert newline

2010-06-02 Thread Sam Smith
$string = 'text with no newline'; $pattern = '/(.*)/'; $replacement = '${1}XX\nNext line'; $string = preg_replace($pattern, $replacement, $string); echo $string; Outputs: text with no newlineXX\nNext line Instead of: text with no newlineXX Next line How does one insert a newline with

[PHP] Tracking the progress of download

2009-12-16 Thread Sam
Hello to all! Who knows how to track the progress of the download using PHP and JavaScript? I have a script that downloads file from net to the server, and I want to the process including the speed to the clientside. How can I do that? Best regards, Sam -- PHP General

Re: [PHP] A PHP-driven script to determine if the environment is configured correctly (checklist)

2009-12-16 Thread Sam
if folder with script, override some directive thru it, like php's max execution time. thencreatephpscript,getphp value that you've changed(max_execution_time), compare to the value you gave in .htaccess, if values are the same, .htaccess is working! -- Sam

Re: [PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-05 Thread Sam Ghods
You can see the slides from the talk here: http://assets.en.oreilly.com/1/event/27/Goal%20Driven%20Performance%20Application%20Paper.pdf Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 ext. 60 fax: (650) 529-0392 On Nov 5, 2009, at 2:45 PM, Michael

[PHP] Free tech talk by Percona tonight in Palo Alto, CA

2009-11-03 Thread Sam Ghods
post http://blog.box.net/?p=1363 and RSVP here: http://www.socializr.com/event/665235025 Please be sure to RSVP so that we have enough food for everyone. Thanks, and hope to see you there! Sam Ghods s...@box.net Box.net - Vice President of Engineering office: (877) 269-6736 ext. 60 fax

Re: [Fwd: [PHP] Sessions in databases]

2009-10-06 Thread Sam Stelfox
If you are distributing your application over multiple servers, using a database for session tracking allows a user to continue there session regardless of which server their request bounces too. It prevents the need for 'sticky' network connections which time out anyways. Databases can make

Re: [PHP] What type of barcode used for document management system ?

2009-09-04 Thread Sam Stelfox
As a matter of fact... For a while I was using a barcode generator to test out inventory system before getting them professionally made. I personally chose to go with Interleaved 2 of 5 as our barcode scanner was able to read them accurately and it was the same format as our campus ID cards.

Re: [PHP] how to strip empty lines out of a txt using preg_replace()

2009-09-04 Thread Sam Stelfox
The following snippet is untested and using Ash's regex (it is accurate \s matches any white space). $content is what is getting stripped of the new lines and $filtered is the cleansed output. See if that does the trick for you. $lines = str_split(PHP_EOL, $content); $filtered = ''; foreach

Re: [PHP] Re: Dan Brown

2009-08-04 Thread Sam Stelfox
tedd wrote: Sam: That's interesting. I wasn't aware that paper could be used in such a fashion but I can't help but think that the cost of the paper would exceed the cost of optical disk storage for the same data. And paper is more sensitive to environmental exposure than DVD's. Cheers

Re: [PHP] Re: Dan Brown

2009-08-03 Thread Sam Stelfox
tedd wrote: Everything is backed up at least three fold. I am considering online backup and waiting for the cost to go down. You should add paper backups to that list! http://ollydbg.de/Paperbak/ Sam Stelfox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] EXEC and SYSTEM delay

2009-07-23 Thread Sam Stelfox
Well if the server your running on is linux based (and I haven't tried this) you could try adding a nohup and background the task for example rather than doing: system('updatedb'); try system('nohup updatedb '); It should background the task and let it continue running even when the php

[PHP] Website crawler auto image downloader

2009-01-16 Thread Sam Smith
I need a script that will crawl a list of websites and download all .jpg, .gif, .png files. I can think of some ways how to start like, fopen() or maybe curl(). And it downed on me I'd need to handle files writing over with the same name. And it would be cool to save the full URL to the file in

Re: [PHP] Zend Framework...where to start? -- don't.

2009-01-15 Thread Sam Stelfox
Daevid Vincent wrote: The pages are significantly slower than straight PHP by orders of magnitude: http://paul-m-jones.com/?p=315 http://www.codinghorror.com/blog/archives/001198.html I know this blog isn't specifically about PHP but he makes a good general point that can be applied to this

Re: [PHP] Change tracking

2008-10-31 Thread Sam Stelfox
I've always used a version field (just an incrementing id) rather than an effective date field. I can see the benefits of being able to look back and see when the changes were made and if done correctly make it so things don't change until a certain date. Hmmm nifty. Stephen wrote: -- On Fri,

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
It sounds to me like your problem is now about the authentication. By default most linux distributions do not give apache a password. I personally think using apache would be a bad idea. How about creating a user on the linux box your trying to put the files on to make it's primary group apache

Re: [PHP] Copy Function Errors

2008-07-17 Thread Sam Stelfox
You need to test using regular FTP, SFTP goes over SSH, while the PHP script your trying to use is making use of regular old FTP. Make sure that the linux machine has the ports open for FTP and that you have an FTP server running on it (SSH is not one). Wei, Alice J. wrote: It sounds to me like

[PHP] xml reader/writer

2007-08-27 Thread Sam Baker
So I don't have to reinvent anything, does such a thing exist anywhere that anyone knows of: I'm looking for a php script that will read any xml file, display the contents in html, with the option of adding an entry (in the same scheme, whatever that might be) or deleting existing entries. I

[PHP] FDF PDF - Content-type: application/vnd.fdf

2006-09-27 Thread Sam Smith
When loaded into a browser that can display PDF files (Win IE and Firefox, Mac Safari) the FDF file (snip below) should open linked PDF and populated it with the data from the FDF file. It works fine when the FDF file is loaded from within the browser with Open File (or simply

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread sam
On Jun 13, 2006, at 1:58 PM, tedd wrote: At 11:33 AM -0700 6/13/06, sam wrote: Wow this is hard I can't wait till I get the hang of it. Capitalize the first letter of a word. Try: ?php $word = yikes; $word[0]=strtoupper($word[0]); echo($word); ? This blows my mind. What should one

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread sam
And hey yo, Jochem, I did RTFM, for hours, I always do before I post to the list. I just I'd tell you to RTFM (although I did tell you to read the manual regarding the specifics of using preg_replace()'s 'e' modifier after showing you a working example of how to use it, based on your

[PHP] preg_replace \\1 yIKES!

2006-06-13 Thread sam
Wow this is hard I can't wait till I get the hang of it. Capitalize the first letter of a word. echo preg_replace('/(^)(.)(.*$)/', strtoupper('\\2') . '\\3', 'yikes!'); // outputs yikes! Nope didn't work. So I want to see if I'm in the right place: echo preg_replace('/(^)(.)(.*$)/', '\\1' .

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread sam
for Eyes burning; caffein shakes; project overdue Thanks Why not just use ucfirst http://us2.php.net/manual/en/ function.ucfirst.php? -Original Message- From: sam [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 2:34 PM To: PHP Subject: [PHP] preg_replace \\1 yIKES! Wow

[PHP] parsing out quoted text

2006-06-09 Thread sam
$str='bass electric organ bagpipes'; $parser($str); $query=SELECT * FROM table WHERE tb_instr = bass AND tb_instr = electric organ //quoted phrase AND tb_instr = bagpipes; Anybody know where I can just copy code that will do the above? thanks -- PHP General Mailing List

[PHP] reset a resource?

2006-06-08 Thread sam
After I've looped through a resource do I have to run the query again to load up 'mysql_fetch_assoc' or is there some kind of reset function I can't find? $q = SELECT * FROM table; $s = mysql_query($q, $pe) or die(mysql_error()); while ($row_s = mysql_fetch_assoc($s)) { echo $i++;

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
I wanted to add texts from an html form to existing pdf. I was able to create a pdf but not to edit it. Please give me guidance how to. FDF is what you're after if I understand this brief post. Google FDF PDF PHP. PHP writes the FDF file which fills out a linked PDF form. Notice I said

Re: [PHP] Editing an existing pdf?

2006-03-10 Thread Sam Smith
Thankyou for the quick reply Sam. Infact I took this option at first but I didnot proceed because creating a pdf form is new to me. And also I donot have the tool. what do you advise me. I would like to hang out on a yacht off the coast of Saint Tropez where Paris Hilton and her friends

[PHP] What's a Blog?

2006-02-13 Thread Sam Smith
I have a client who wants to blog or he wants a blog on his website. I don't know anything about these blogs except it's sort of a fad I think. Isn't a blog just a simple web form with a big textarea on the blogger's side writing to a database and then the data is displayed in chronological

Re: [PHP] how to learn php

2006-02-11 Thread Sam Smith
I started out by getting a reference manual, one with every function describing what the function does. Just like the php.net online function reference but one that can be read lying on the couch. Now when I need some code to do something I'll remember there's a function for it (maybe) and I go

[PHP] str_replace ? \r

2006-02-07 Thread Sam Smith
. Thanks, sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] shell_exec(zip.. ?

2005-08-03 Thread Sam Smith
shell_exec(zip -r ddd ddd); // don't work safe_mode off, works from command line php. What could it be? Details: drwxr-xr-x 2 zamzmith zamzmith 512 Aug 3 18:34 execTest/ -rw-r--r-- 1 zamzmith zamzmith 107 Aug 3 18:33 mkdir.php mkdir.php: ?php shell_exec(mkdir ddd; touch ddd/fff;); ?

[PHP] PDF FDF $_POST

2005-07-31 Thread Sam Smith
I need PHP fill out the form fields and prepare for download a PDF from an HTML form submission. One way would be to use a PDF with pre-configured form fields where an FDF is created from PHP. The FDF 'merges' with the PDF when the FDF is opened. I got all that from:

[PHP] what is this: dirname(__FILE__)?

2005-07-31 Thread Sam Smith
I don't recognize this something(__SOMETHING__) format. I know what it's doing but I don't know how it's doing it. The whole thing is $fdf_dir=dirname(__FILE__).'/results'; and of course it's setting that var $fdf_dir to the path to a file. Is there something significant about the double

[PHP] if(true false) //??

2005-07-09 Thread Sam Smith
I have some code that I barrowed that works but I don't get how it could possible work, obviously I don't understand how false works: How can this ever pass?: if (isset($_SESSION['PrevUrl']) false) { Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] phpMyAdmin authentication error

2005-05-13 Thread Sam Smith
On OS X 10.3 I installed the latest MySQL from dev.mysql.com for OS X 10.3. It was a Apple style installer package with a binary of the server and the client. The docs weren't exactly written for OS X but I survived the set up and am able to login as the root MySQL user with the command line

[PHP] MySQL: Collation?

2005-05-13 Thread Sam Smith
I need a new book? What's up with this filtering thing, Collation in phpMyAdmin? It's defaulting to latin1_swdish_ci. What can I just set it to to forget about it till I can read up on it? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Best CC gateway

2005-05-12 Thread Sam Smith
Any recommendation for the easiest credit card gate way for PHP running on FreeBSD? Authorize.net? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Editing PDF

2005-05-10 Thread Sam Smith
I have an existing PDF file that I want to add text to or make changes to text with data from an HTML form via PHP. The PDF looks like this: 20 0 obj/Length 5586/Filter[/ASCII85Decode/FlateDecode]stream 8;X-DgMYb:(An746bc%oU,Mo*Snfn`(:.P:CnHNZLL%2;CCTp,[EMAIL PROTECTED]'+2VqIkV -$2%Ipq]A

Re: [PHP] Editing PDF

2005-05-10 Thread Sam Smith
Sam Smith wrote: I have an existing PDF file that I want to add text to or make changes to text with data from an HTML form via PHP. The PDF looks like this: 20 0 obj/Length 5586/Filter[/ASCII85Decode/FlateDecode]stream 8;X-DgMYb:(An746bc%oU,Mo*Snfn`(:.P:CnHNZLL%2;CCTp,[EMAIL PROTECTED

RE: [PHP] Server Uptime

2005-02-07 Thread Sam Masiello
There is no function, but you could shell out and grab the output from the uptime command and use regex to parse the resultsor use one command line with uptime piped to awk to pull out what you need. HTH! --Sam -Original Message- From: Brad Ciszewski [mailto:[EMAIL PROTECTED

[PHP] sessions

2005-01-23 Thread Sam Webb
\Games\main.php:3) in C:\Program Files\Apache Group\Apache2\htdocs\Games\main.php on line 3 Any suggestions? Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Parse Error... how to fix?

2004-12-16 Thread Sam
GH wrote: Hi All... Got a problem... here is the error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in /var/www/html/ahrc_computerclub/ahrc_computerclub.php on line 42... I am not sure on how to fix it... line 42 is: TITLE $language['program_name']

[PHP] if($var) vs. if(isset($var))

2004-11-23 Thread Sam Smith
What's the difference between: if($var) and if(isset($var)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] MySQL Excel

2004-11-12 Thread Sam Smith
up? thanks sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] POST losing SESSION vars?

2004-11-09 Thread Sam Smith
I have a page that will be redirected to a login page if the SESSION var 'authenticatedUser' is not set. The page has a form in it. When the page is loaded http://thePage the authentication works fine. When the submit button is pressed it doesn't. With POST it acts as if the required session

Re: [PHP] Square brackets tags

2004-10-19 Thread Sam Smith
I was just reading a little on this. This is the way you build a template system. Smarty uses { }. Maybe you could check out the Smarty page and get an idea. http://smarty.php.net/ Or maybe you could just use Smarty, you can change the { } to anything you want. Hi All, I need to write a

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Sam Smith
can think off the top of my head is maybe line break? - Original Message - From: Sam Smith [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Sunday, October 10, 2004 3:28 PM Subject: [PHP] textarea vs. type=text data difference? I have a form with both textarea and text

Re: [PHP] textarea vs. type=text data difference?

2004-10-10 Thread Sam Smith
- Original Message - From: Sam Smith [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Sunday, October 10, 2004 4:25 PM Subject: Re: [PHP] textarea vs. type=text data difference? ##The data is the same. I've been up a long time. BUT something is still very weird. Doc1.php

[PHP] Quotes in form textarea fields

2004-10-08 Thread Sam Smith
I swear I googled for an hour first. A user enters in a textarea field of FORM1.php: Bob is high Submitted to FROM2.php we get: Bob is \high\ In a hidden field in FROM2.php we store the value: type=hidden, value=? echo stripslashes($_POST['textarea']); ? Value now Bob is high Then from

Re: [PHP] mail() and Verizon

2004-10-05 Thread Sam Smith
The solution was a simple -f (see it in the extra headers just before the last [EMAIL PROTECTED]). Sets the envelope sender address when using sendmail with the -f sendmail option. mail([EMAIL PROTECTED], [EMAIL PROTECTED], Testing the simple mail functions, Did you get this one?, From:

Re: [PHP] mail() and Verizon

2004-10-05 Thread Sam Smith
The solution was a simple -f (see it in the extra headers just before the last [EMAIL PROTECTED]). Sets the envelope sender address when using sendmail with the -f sendmail option. mail([EMAIL PROTECTED], [EMAIL PROTECTED], Testing the simple mail functions, Did you get this one?, From:

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
Hello, On 10/01/2004 12:47 AM, Sam Smith wrote: Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 To: addresses. Below is the header from the successful mail to the second address. Each address will receive different message copies

Re: [PHP] Re: mail() and Verizon

2004-10-01 Thread Sam Smith
have you tried sending the same message, via the same path (i.e., smtp server), but not generated via php, to this recipient? by same that includes the same rfc821 from/return-path. I logged on to the web server where php is running and did telnet localhost 25 hello ... The mail was reported

[PHP] mail() and Verizon

2004-09-30 Thread Sam Smith
Can anyone tell why the mail (see below) is not being relayed to [EMAIL PROTECTED]: #Note: There were 2 To: addresses. Below is the header from the successful mail to the second address. header Return-Path: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: (qmail 70862 invoked by uid

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Sam Hobbs
Raditha Dissanayake [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam Hobbs wrote: I have posted over 12,000 messages in the CodeGuru.com Visual C++ forum, Do you have a life ? I hope the moderators protest posts such as this. -- PHP General Mailing List (http://www.php.net

Re: [PHP] mysql_connect does not connect

2004-09-19 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Would you mind spilling the beans? I'm sure everyone is dying to know what the resolution of this thread is. I definitely mind. I don't believe in rewarding bad behavior. It is reasonable to contribute to the productive

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Sam Hobbs: And the relevant portion of that says external access, which is not applicable here. I do not see anything else on that page that is relevant. what is relevant? only the last one? :sigh: I don't

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Um.. you do realize you have more problems than php not being able to connect to the database. This is the type of unproductive comment that causes problems. The only reason you are saying this is because you are desperate

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
nothing. I hope the moderators agree. Would I be correct if I paraphrased the above as: The wrong way to get Sam Hobbs to try something that might help in solving his problem: [JD] The firewall might be blocking your attempts to connect to mysql. Try disabling it. [SH] Yeah and what makes you

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Steve Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sam, if you wouldn't mind answering a question: are you still unable to connect to your mysql server? I am able to connect now. I'm sorry that you feel its a time-consuming process. I'm sorry that you are confused about

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Matthew Sims [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You should check as XP SP2 firewall is turned on by default. http://support.microsoft.com/default.aspx?kbid=842242 Saying You should check assumes I did not check. I did check. I said as far as I know it is off. I am

Re: [PHP] mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
That is the type of comment that causes problems. Reasonable and knowledgable people know it is not true and saying it just causes problems. Of course, many people would advise to just ignore comments such as that and I will in the future. I just want to make it clear for the benefit of others

Re: [PHP] Re: mysql_connect does not connect

2004-09-18 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Unfortunately (fortunately?) there are packages out there which install all Apache/MySQL/PHP for you or whatever. So unless you state which package you're using then typical is still meaningless. It's just helpful when

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The firewall is relevant depending on your circumstances. In any case it would take you all of one minute to disable your firewall to test out this wild far out suggestion. At the most you would have lost one minute but

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Markus Mayer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It is our experience at my employer that the firewall in XP-SP2, as well as other firewalls that are available, are very relevant. Thank you. I have not seen anything that states that explicitly. I doubt that SP2 makes

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
It is innacuracies such as this that make it difficult for me to pursue the useful suggestions. Chris Dowell [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] All this is irrelevant; while you're still trying to use MySQL 5 with mysql_connect() instead of mysqli_connect(), it WILL

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] IIRC the OP did have a successful test case when connecting from the mysql client. Yes, I did get it to work. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] The MySQL functions work fine in php5. It just doesn't support all the features available in MySQL = 4.1.0. Unlike php4, support for MySQL isn't bundled in php5, but when enabled, it works. Thank you. I will try to

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] IIRC the OP did have a successful test case when connecting from the mysql client. For whomever is interested, see my mess(ages) in the php internals. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] RTFM. mysql: This MySQL extension doesn't support full functionality of MySQL versions greater than 4.1.0. For that, use MySQLi. mysqli: The mysqli extension is designed to work with the version 4.1.3 or above of

Re: [PHP] Re: mysql_connect does not connect

2004-09-17 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm not familiar with MySQL under Windows, but I believe that there are different installers available from various sources. So saying Typical installation option doesn't really mean much. There is only one Windows

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
I appreciate your attempts to help, but you must understand that when attempts to help just cause time to be wasted, then it might be appropriate to not appreciate the help. Then when I try to explain that you are not helping, you make comments such as this, trying to blame me. If I am the

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I lost track of who the original poster was, but anyway... Why not disconnect from the internet, turn off all the firewalls, and then see if it works. If it doesn't then post some error messages and code for what's being

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
Andrew Kreps [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 14 Sep 2004 10:11:24 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: Also, are the warning messages documented? As I asked in my original question, is 10061 an error code? 10061 is a generic winsock error for a timeout

Re: [PHP] Re: mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So now are you fully convinced it's your firewall that's the root of your problem? No, not really. At the moment I am assuming it is a bug in something somewhere. The versions of php and MySQL that I am using are not fully

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
Greg Donald [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Yeah, seeing how we don't have physical access to your system that's all you will get is guesses and suggestions. If you want definative answers, hire a consultant, bring them to your pc, and pay them to fix it. I have

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Sam Hobbs
Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Now that you have figured out, that it is possible its your firewall, which, many, and i think you claimed before was impossible, what exactly makes you sure i said anything invalid. It is my understanding that the

[PHP] Re: php/MYSQL remove duplicate records

2004-09-15 Thread Sam Hobbs
I do that a lot using Microsoft Access. I just finished on a project where I had to eliminate duplicates from each of three or more queries, a couple of which have three keys. However I am not much more experienced han you are; Microsoft Access generates SQL for us so I am not sure what the SQL

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Janbro [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I connect to a MySQL 4.1 with the following String: if ($db_verbin=mysqli_connect($mysql_host,$mysql_user,$mysql_passw,$DB_n ame)) watch the i in mysqli_connect! I think I've read somewhere that you are required to use

[PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Janbro [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I connect to a MySQL 4.1 with the following String: if ($db_verbin=mysqli_connect($mysql_host,$mysql_user,$mysql_passw,$DB_n ame)) watch the i in mysqli_connect! I think I've read somewhere that you are required to use

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Windows XP Firewall, or any other firewall for that matter must be off. Jason Can someone else confirm that this is correct? For one thing, when I use MySQL directly outside of a web page, it works. The sample C program

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I don't know anything about WindowsXP or it's 'firewall', but you _may_ have to open the port for which you have MySQL running on. I haven't followed this thread, but if MySQL, and your php enabled webserver are on the

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, a google on the error returns hundreds of results.. http://www.google.ca/search?hl=enie=UTF-8q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29btnG=Searchmeta= Yes, I could have searched more

Re: [PHP] Re: mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Andrew Kreps [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, 14 Sep 2004 10:11:24 -0700, Sam Hobbs [EMAIL PROTECTED] wrote: Also, are the warning messages documented? As I asked in my original question, is 10061 an error code? 10061 is a generic winsock error for a timeout

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Also, a google on the error returns hundreds of results.. http://www.google.ca/search?hl=enie=UTF-8q=Can%27t+connect+to+++MySQL+server+on+%27localhost%27+%2810061%29btnG=Searchmeta= One thing I did find in the

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
. You dont have disable it, i should have been specifc i suppose, you must allow for the mysql port to be open. :) Whats for others to confirm, try it yourself and see if it works. Jason Sam Hobbs [EMAIL PROTECTED] wrote: Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
:[EMAIL PROTECTED] Sam Your problem probably does stem from the extension not being installed. You say you're using (IIRC) mySQL 4.1 This requires you to use the mysqli extension, not the mysql extension As you're on windows, it's probably just a case of uncommenting the extension

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Jason Davidson wrote: The webpage of coarse, is not local, regardless of where its hosted, so a firewall will come into play when trying to connect. You dont have disable it, i should have been specifc i suppose, you must

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Sam Hobbs
And the relevant portion of that says external access, which is not applicable here. I do not see anything else on that page that is relevant. Jason Davidson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok, well, i just posted a link for you to check out, it gives insight on how

[PHP] mysql_connect does not connect

2004-09-13 Thread Sam Hobbs
I have: PHP Version 5.0.1 MySQL 5.0.1 Apache 2.0.48 Winows XP Pro SP2 MySQL is working fine as best as I can see; I have tried the various samples in the MySQL manual and I have executed the myTest sample provided with MySQL. They all work. However I can't get mysql_connect to

[PHP] get_class_vars

2004-09-11 Thread Sam Hobbs
Using the code shown below, I get nothing from get_class_vars but I do get very useful results from get_class_methods. I realize that this is how it is supposed to be, but it would be useful to be able to get the property members of the class. The reason I want to see the properties of

Re: [PHP] problem with front page files downloaded to dev machine OT

2004-09-05 Thread Sam Hobbs
John Nichel [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How about middle posting? I have noticed that usually when people say things like don't top post, the reasons provided for not doing it apply equally as much to bottom-posting. What they really maen is that they want us to

[PHP] Re: PHP to replace javascript

2004-09-03 Thread Sam Hobbs
Jack Gates [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Javascript can open a separate and specifically sized window from a web page when a user clicks on a link that might reference a note or picture etc. Can this be done with PHP? If yes, will someone tell me where in the

Re: [PHP] Popup with recent IE updates

2004-09-03 Thread Sam Hobbs
Lester Caine [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] So don't know what goes wrong, but were running Apache 2.0.50, PHP5.0.0 on XP-SP1 and probably style sheets were going wrong. Switch back to W2k SP3 and all is fine (SP4 screws up various other network apps) so we stay

[PHP] Is a PECL a black whole?

2004-09-03 Thread Sam Hobbs
It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out of a (the?) PECL. As far as I knew, there is a danger of all of PHP being in a PECL. I could not (and

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread Sam Hobbs
Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote Sam Hobbs: It took me a while to find an explanation of what a PECL is. I kept reading comments about things being moved to a PECL but I saw nothing about what is in a PECL or how to get anything out

[PHP] Re: Copying HTML from a document to another document

2004-09-03 Thread Sam Hobbs
Sam Hobbs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] foreach($ContentsDocument-childNodes as $Node) $Cell-appendChild($Node); If there is not a different solution that should be used instead, then can anyone confirm this should work? In other words, does this appear

Re: [PHP] Is a PECL a black whole? OT

2004-09-03 Thread Sam Hobbs
Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] black whole? [/snip] As in, Is PECL the wholeness of black? or Is PECL all that is black? *snicker* It just struck me funny, but everyone knew that you meant black hole. I already replied to you, Jay, offline

  1   2   3   >