[PHP] PHP vs Algorithm

2004-03-17 Thread Firman Wandayandi
Hi All, I want to make algorithm representation of my code for my homework, but I have no idea to convert PHP code to algorithm. Can anyone help me? Code: --- begin code --- function doAdd($command, $options, $params) { $kategori = new Silaris_Kategori($params); $res =

[PHP] Take post values

2004-03-17 Thread Tassos T
Hello, I use a simple form and I cannot take the values when I do submit. I use post method. How I take te post values ? Thanks Tassos t -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] e - comerce website

2004-03-17 Thread Galen
You have a major challenge. First, I notice you don't seem to speak English natively. I don't know how well you comprehend English (this varies from person to person) but you might see if there's a PHP manual in your native language. It might help. Second, you don't seem to know all that much

Re: [PHP] Take post values

2004-03-17 Thread Duncan Hill
On Wednesday 17 March 2004 09:07, Tassos T wrote: Hello, I use a simple form and I cannot take the values when I do submit. I use post method. How I take te post values ? Thanks Tassos t http://www.php.net/manual/el/language.variables.predefined.php

Re: [PHP] Take post values

2004-03-17 Thread Andreas Brunschweiler
How I take te post values ? $_POST['field_name'] php.net is your friend... http://ch2.php.net/manual/en/language.variables.predefined.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Conditional Include

2004-03-17 Thread Andreas Brunschweiler
Hello When I want to include a php file only conditionally, I use include instead of require. At the moment I am trying to solve the following problem. I haven't found anything in the news archive, perhaps I searched with the wrong phrase... code snippet- ?php $includefiles=1;

[PHP] Informix and PHP

2004-03-17 Thread Pietuka Krustiòð
Hi, Everybody is so amazed by the ease and power of MySQL that some nice products do not get the needed attention from tutorial writers. Why are'nt we using the more powerful MaxDB instead of MySQL? I can't find no really useful tutorials on MaxDB and Informix in connection with PHP. Now i have

[PHP] PHP 4.3.4, aspell-0.50.3-16 creating and using specialised dictionary

2004-03-17 Thread Owen Williams
Hello, I want to use spell checking and suggestions in PHP but with only one dictionary, one I've created. The dictionary I've created is called 'en_GB-modules.rws'. I wanted to call it 'li_GB-modules.rws'. 'li' meaning library. I didn't get anywhere with it in PHP but in one iteration I

[PHP] Re: E-mail account security warning.

2004-03-17 Thread Serban Gh. Ghita
I guess this is a hoax or spam. Serban [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear user of e-mail server Php.net, Your e-mail account will be disabled because of improper using in next three days, if you are still wishing to use it, please, resign your account

[PHP] Cron Jobs and php as apache module

2004-03-17 Thread Daryl Meese
Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to do this. Any help would be appreciated. TIA Daryl Meese -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Duncan Hill
On Wednesday 17 March 2004 11:03, Daryl Meese wrote: Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to do this. Any help would be appreciated. TIA Daryl

[PHP] Re: Cron Jobs and php as apache module

2004-03-17 Thread David Robley
[EMAIL PROTECTED] (Daryl Meese) wrote in news:[EMAIL PROTECTED]: Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to do this. Any help would be appreciated.

RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Daryl Meese wrote on woensdag 17 maart 2004 12:04: Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to do this. Any help would be appreciated. TIA Daryl

Re: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 06:03, Daryl Meese wrote: Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to do this. Possibly you can't have PHP configured in Apache as a

RE: [PHP] Cron Jobs and php as apache module

2004-03-17 Thread Thijs Lensselink
Thijs Lensselink wrote on woensdag 17 maart 2004 12:17: Daryl Meese wrote on woensdag 17 maart 2004 12:04: Hello all, Ok, I run php as an apache module but need to have some php scripts called from a cron. Since you can't have php installed as a cgi apache module I don't know how to

Re: [PHP] How to make sure a redirect works

2004-03-17 Thread Benjamin
Henry Grech-Cini wrote: 1) Do not redirect if the page is visited as the result of a POST Why is that? I do it all the time and it seems to work fine. I have read through all the emails for this thread and didn't find anything mentioned. Am I doing something wrong? Benjamin -- PHP General

Re: [PHP] How to make sure a redirect works

2004-03-17 Thread John W. Holmes
Benjamin wrote: Henry Grech-Cini wrote: 1) Do not redirect if the page is visited as the result of a POST Why is that? I do it all the time and it seems to work fine. I have read through all the emails for this thread and didn't find anything mentioned. Am I doing something wrong? No,

[PHP] str_replace problem

2004-03-17 Thread Labunski
Probleema sekojosha: Shiim koda rindinjaam buutu jaanolasa IP adrese no temp.txt faila, tad ieksh log.txt faila jaasameklee identiska IP adrese (taada pati kaa temp.txt failaa) un jaaizdzçð taa no log.txt faila. Itkaa jau vienkaarshi, BET tas skripts nedarbojas :( The problem is that str_replace

[PHP] reading a pdf file into an array

2004-03-17 Thread Benjamin Jeeves
Hi All Was hoping some one might be able to point me down the right road I would like to be able to read the context of a pdf file into an array then search that array for a word is this possible with php. e.g can I read a pdf file into an array ? Thank you Ben

[PHP] Fmod with PHP 4.2.0 ?

2004-03-17 Thread BEOI 7308
Bonjour ... My ISP's PHP is 4.2.0, and the fmod function was not available before 4.2.0 My question : is there a replacement to fmod, or what can i do to do a fmod without it ? Thanks in advance, -Quentin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Informix and PHP

2004-03-17 Thread Tom Dangler
Go to http://www.unixodbc.org The 'Manuals' page has a variety of information including setting up unixodbc and using the Informix driver. Tom Pietuka Krustiòð [EMAIL PROTECTED] 03/17/04 03:36AM Hi, Everybody is so amazed by the ease and power of MySQL that some nice products do not get

Re: [PHP] Fmod with PHP 4.2.0 ?

2004-03-17 Thread John W. Holmes
From: BEOI 7308 [EMAIL PROTECTED] My ISP's PHP is 4.2.0, and the fmod function was not available before 4.2.0 My question : is there a replacement to fmod, or what can i do to do a fmod without it ? Read second comment here: http://us2.php.net/fmod ---John Holmes... -- PHP General

Re: [PHP] Fmod with PHP 4.2.0 ?

2004-03-17 Thread Jason Wong
On Wednesday 17 March 2004 22:05, BEOI 7308 wrote: My ISP's PHP is 4.2.0, and the fmod function was not available before 4.2.0 My question : is there a replacement to fmod, or what can i do to do a fmod without it ? Write your own function: If r = fmod(x, y) x = i * y + r Then $i =

Re: [PHP] Informix and PHP

2004-03-17 Thread Pietuka Krustiòð
We have a Informix on Windows server and I am trying to reach that from my RedHat 9. I have read that information on unixODBC site about unixODBC+Informix, but when I try ./isql -v database i get nothing more but: [ISQL]ERROR: Could not SQLConnect We have set up UnixODBC and Informix CSDK We

[PHP] mail() to own domain not working

2004-03-17 Thread Gerard L Petersen
Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this?

[PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Filip de Waard
Hey guys. I just recieved Advanced PHP Programming by George Schlossnagle (that's a mouth full) from an online shop. I had very high expectations of the book, since everybody starts to cheer once this book gets mentioned. I instantly started to read and I'm very happy with the quality and

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Ooo, I had this recently when we moved to beamhost.co.uk I'll mail them and ask them what they did to fix it... I'll be back... Gerard L Petersen [EMAIL PROTECTED] 17/03/2004 14:59 To Php-General [EMAIL PROTECTED] cc Subject [PHP] mail() to own domain not working Hi all Im having a

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Well, they replied: Do you mean the email is not working at the moment or you\'re asking for the solution we did last time? We modified your code and changed @ to \\@ within the mail header. Any use? [EMAIL PROTECTED] 17/03/2004 15:21 To Gerard L Petersen [EMAIL PROTECTED] cc Php-General

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Sorry, had an extra \ == Do you mean the email is not working at the moment or you're asking for the solution we did last time? We modified your code and changed @ to \@ within the mail header. Tristan Pretty/Infinity 17/03/2004 15:37 To [EMAIL PROTECTED] cc Gerard L

Re: [PHP] str_replace problem

2004-03-17 Thread Jason Wong
On Wednesday 17 March 2004 20:16, Labunski wrote: The problem is that str_replace isn't working preperly: So *how* does it not work properly? -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications

Re: [PHP] Conditional Include

2004-03-17 Thread Jason Wong
On Wednesday 17 March 2004 17:33, Andreas Brunschweiler wrote: In this code, the include file is always parsed, even if $includefiles is set to 0. Even the files which are 'required()' inside incfile.php are parsed (observed with the program Filemon, which registers file access). I tried

Re: [PHP] Reading a image resource

2004-03-17 Thread Jason Wong
On Tuesday 16 March 2004 23:55, Ewout de Boer wrote: Is there a function to get the raw image data from a image resource ? (resource created by imagecreatefrom) I want to read and manipulate an image from a file and store it in a database without the use of a temp. file One thing you can

Re: [PHP] array $_POST problem

2004-03-17 Thread Joey Kelly
On Tuesday 16 March 2004 12:16, thou spake: You're the Joey Kelly who runs the LUG in NoLA, yes? Yes, that's me. Have you been to one of our meetings lately? We redid our website recently: http://www.nolug.org Thanks for saying hi :-) snip Upon post, you need to get materials as such:

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Raditha Dissanayake
Gerard L Petersen wrote: Hi all Im having a problem with sending mails using the mail function to my own domain. Mails to any other domain works perfectly. Also our mail server sitting on a different machine. Any ideas how to fix this? If you are getting any php related error messages please

[PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
I have a form variable I want to increment by a value of 1 each time the page loads. Here's what I have so far: if(!isset($correct)) { $correct = 0; } else { $correct = $correct++; } Seems like it should work? Thanks! Shane -- PHP General Mailing List

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
No. $correct++; Is all you need for the second condition, it automatically sets itself back. On Wed, 2004-03-17 at 11:52, Shane McBride wrote: I have a form variable I want to increment by a value of 1 each time the page loads. Here's what I have so far: if(!isset($correct)) {

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Jake McHenry
No. $correct++; Is all you need for the second condition, it automatically sets itself back. Does this always work? In my timesheet app, I have to do $counter = $counter + 1, because for some reason the $counter++; doesn't work. It just doesn't work, no incrementation of the variable. Is

[PHP] PDF Creating

2004-03-17 Thread Robert Sossomon
I'm looking into this and getting all my ducks in a row before I get buried here, but I'm hoping you guys might have the answers since so far my search has been fruitless. I have the PDF librarys from FPDF and from Potential Tech, I have not decided which one to use yet. If you follow this and

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
It doesn't seem to work either way for me. Shane -Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:01 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Simple: Whats wrong with this? No. $correct++; Is all you need for the second

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
Not that I'm aware of. In every incantation I've ever seen of the incrementing, $correct++; Is always, 100% equal to: $correct = ($correct + 1); But, maybe you ran into a case where it's not, you never know. On Wed, 2004-03-17 at 12:00, Jake McHenry wrote: No. $correct++; Is all you

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Sam Masiello
This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: No. $correct++; Is all you need for the second condition, it automatically sets itself back. Does this always work? In my

Re: [PHP] PDF Creating

2004-03-17 Thread Adam Voigt
I don't know if this is still the case, but when I was using the PDF library to generate PDF's, the only way to know when to stop the current page and start the next, was by keeping track of what your pixel position on the page was, and if you were within such and such of the margin, you should

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Adam Voigt
Well I accidentally deleted your original email, but I didn't see where you were getting the counter variable from. Where is the variable being stored? You do know that setting $counter++ for one visitor, doesn't translate the value of $counter to another, right? On Wed, 2004-03-17 at 12:05,

Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Richard Davey
Hello Jake, Wednesday, March 17, 2004, 5:00:52 PM, you wrote: $correct++; JM Does this always work? In my timesheet app, I have to do $counter = $counter JM + 1, because for some reason the $counter++; doesn't work. It just doesn't JM work, no incrementation of the variable. Is there something

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Red Wingate
Maybe you guys should take a read about pre- and post-increment :-) Sam Masiello wrote: This drove me nuts for a while and instead of doing $variable++ I started using ++$variable and never had the problem again. --Sam Jake McHenry wrote: No. $correct++; Is all you need for the second

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Jake McHenry mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:01 AM said: Does this always work? In my timesheet app, I have to do $counter = $counter + 1, because for some reason the $counter++; doesn't work. It just doesn't work, no incrementation of the variable. Is there

Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Richard Davey
Hello Sam, Wednesday, March 17, 2004, 5:04:21 PM, you wrote: SM This drove me nuts for a while and instead of doing $variable++ I SM started using ++$variable and never had the problem again. Yes, that's a pre-increment operator. Quite different to a post-increment. You need to use the right

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris W. Parker
Filip de Waard mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 7:20 AM said: Hey guys. hi. I instantly started to read and I'm very happy with the quality and level of the book. Of course I haven't read the complete book yet, but from what I've read so far this was money well

RE: [PHP] PDF Creating

2004-03-17 Thread Daniel Purdy
[snip] My question is how to I know how/where the pages will break, and how can I make the generation of the PDF files work automagically? The first page will always have a header set of information, and then the quote following it, all other pages will just have the quoted items. [/snip] My

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
I am just trying to get the variable to increment, than I will be working on a session. It's basically being used to keep track of correct/incorrect answers for an online quiz. Here's what I am trying: if(!isset($correct)) { $correct = 0; } else { $correct++ }

RE: [PHP] PHP vs Algorithm

2004-03-17 Thread Chris W. Parker
Firman Wandayandi mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 12:22 AM said: I want to make algorithm representation of my code for my homework, but I have no idea to convert PHP code to algorithm. Can anyone help me? i think your problem is that you are misunderstanding the

Re: Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Jason Wong
On Thursday 18 March 2004 01:07, Richard Davey wrote: ++ is a _post_ increment. This means it'll returns $correct first and then increment it by one. There is a section in the PHP manual on this (search for Incrementing/Decrementing Operators. Whether it's pre or post depends on whether it is

[PHP] Help with adding an image to a table row

2004-03-17 Thread Mark
I have the following snippet of code that I cannot seem to find a way to add an image to a TR. The line in question is the first one under the else statement: print TR BGCOLOR=\#381499\; This line, I would like to show a image called backgrnd.png instead of a backgound color. Any help would

Re: [PHP] PDF Creating

2004-03-17 Thread Jason Wong
On Thursday 18 March 2004 00:59, Robert Sossomon wrote: I have the PDF librarys from FPDF and from Potential Tech, I have not decided which one to use yet. Have you tried pc4p? [snip] My question is how to I know how/where the pages will break, and how can I make the generation of the PDF

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Shane McBride mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:16 AM said: I am just trying to get the variable to increment, than I will be working on a session. It's basically being used to keep track of correct/incorrect answers for an online quiz. and so now that you've

Re: Re[2]: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 12:19, Jason Wong wrote: On Thursday 18 March 2004 01:07, Richard Davey wrote: ++ is a _post_ increment. This means it'll returns $correct first and then increment it by one. There is a section in the PHP manual on this (search for Incrementing/Decrementing

Re: [PHP] Help with adding an image to a table row

2004-03-17 Thread Arthur Pelkey
background= Mark wrote: I have the following snippet of code that I cannot seem to find a way to add an image to a TR. The line in question is the first one under the else statement: print TR BGCOLOR=\#381499\; This line, I would like to show a image called backgrnd.png instead of a

RE: [PHP] Help with adding an image to a table row

2004-03-17 Thread Chris W. Parker
Mark mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:24 AM said: Any help would be much appreciated as this is not a php related question and that this is a very basic question it would be most beneficial for you to join a list like thelist from http://evolt.org or webdesign-l (i

[PHP] header() vs. fsockopen for Location: http:www.d.com....

2004-03-17 Thread Scott Fletcher
Hi! Let's say there are 3 webpages with webpage #1 for customer filling out the form and submit it to webpage #2 for processing and database insert/update then php header(Location: http://www.whatever.com;) to redirect the webapge to webpage #3. (or back to webpage #1). That way, the

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Shane McBride
No, the value still is not incrementing. -Original Message- From: Chris W. Parker [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 12:25 PM To: Shane McBride; PHP; [EMAIL PROTECTED] Subject: RE: [PHP] Simple: Whats wrong with this? Shane McBride mailto:[EMAIL PROTECTED] on

RE: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Chris W. Parker
Shane McBride mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:40 AM said: No, the value still is not incrementing. then you must be resetting it unknowingly or the else block in your if..else statement is not being executed like you are expecting it to be. one thing i do to debug

Re: [PHP] Help with adding an image to a table row

2004-03-17 Thread Brian V Bonini
On Wed, 2004-03-17 at 12:23, Mark wrote: I have the following snippet of code that I cannot seem to find a way to add an image to a TR. The line in question is the first one under the else statement: print TR BGCOLOR=\#381499\; This line, I would like to show a image called backgrnd.png

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker: Filip de Waard mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 7:20 AM said: Hey guys. hi. I instantly started to read and I'm very happy with the quality and level of the book. Of course I haven't read the

Re: [PHP] Simple: Whats wrong with this?

2004-03-17 Thread Jake McHenry
I didn't post it, I just added on to someone elses question. I do use counter++; in other scripts, but it's only in my timesheet app that it doesn't work. It's very odd, so I just made them all $counter = $counter + 1; I didn't have time to mess with it. Was just asking. $counter is initially

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Am Mi, 2004-03-17 um 18.12 schrieb Chris W. Parker: Filip de Waard mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 7:20 AM said: Hey guys. hi. I instantly started to read and I'm very happy with the quality and level of the book. Of course I haven't read the complete

Re: [PHP] PDF Creating

2004-03-17 Thread Vicente Werner
We had a similar issue ourselves, we finally solved it using htmldoc to build the pdf from a custom html file. It allows you to explicitly say where you want to split the document, or to rely upon itself to break the stuff into pages. --

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Chris W. Parker
Marco Schuler mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:18 AM said: google, or in this case amazon, is your friend: yes i am well aware of google and amazon but i just wanted to get george some extra exposure by getting a link into an email. maybe to the publishers homepage or

[PHP] Regular expression checker

2004-03-17 Thread memoimyself
Hello all, For a while I tried in vain to find a decent regular expression tester. The closest I found was RegExpEditor, by the same people who produce PHPEdit, but I found it to be slow and didn't like its constant bitching about invalid delimiters or some such thing. Anyway, I ended up

RE: [PHP] Advanced PHP Programming by George Schlossnagle

2004-03-17 Thread Marco Schuler
Hi Am Mi, 2004-03-17 um 19.14 schrieb Chris W. Parker: Marco Schuler mailto:[EMAIL PROTECTED] on Wednesday, March 17, 2004 9:18 AM said: google, or in this case amazon, is your friend: yes i am well aware of google and amazon but i just wanted to get george some extra exposure by

[PHP] Re: Regular expression checker

2004-03-17 Thread Luis Mirabal
an excelent tool: The Regex Coach, its free and you can grab it from http://weitz.de/regex-coach/ and its available for windows and linux! luis. [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Hello all, For a while I tried in vain to find a decent regular expression tester.

Re: [PHP] Regex help - PLease

2004-03-17 Thread Michal Migurski
Sorry I to should have added this this is what im going with so far preg_match(/\d100.*/); This will match a digit, followed by '100', followed by anything. Go with Rob's suggestion. - michal migurski- contact info and pgp key:

[PHP] Re: [ERR] Re: [PHP] php crash and memory_limit

2004-03-17 Thread kringla
No, none at all. Not even any sugestions from anyone what to do. I am stuck. [EMAIL PROTECTED] wrote: Transmit Report: To: [EMAIL PROTECTED], 2004/03/18 03:17:48, 999, »ó´ë¹æ ¼ö½Å¼­¹ö Á¢¼Ó½Ã°£ ÃÊ°ú Subject: Re: [PHP] php

[PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
Hey guys, I've been developing my site on a dev server with MySQL locally installed. I've now moved the site to the production webserver and setup my databases on the production dbserver, which are two different machines. I have begin updating my connection variables and now I find I can't

Re: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
What happens when you try to use the mysql client on the web machine, to connect to the production database server? Does it work? If yes, what lines are you using to connect to your DB with PHP? On Wed, 2004-03-17 at 14:54, Cameron B. Prince wrote: Hey guys, I've been developing my site on a

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
Hi Adam, What happens when you try to use the mysql client on the web machine, to connect to the production database server? It works: bash-2.05# pwd /usr/local/mysql/bin bash-2.05# ./mysql -h 192.168.1.44 -u web -P 3306 -p Enter password: Welcome to the MySQL monitor. Commands end with ;

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
So what error prints out when you try and connect from PHP? On Wed, 2004-03-17 at 15:03, Cameron B. Prince wrote: Hi Adam, What happens when you try to use the mysql client on the web machine, to connect to the production database server? It works: bash-2.05# pwd

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
So what error prints out when you try and connect from PHP? Could not connect : Can't connect to MySQL server on '192.168.1.44' (2) Not very helpful huh? Any ideas? Cameron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
Change your server address, to leave off the port number. Any different? On Wed, 2004-03-17 at 15:07, Cameron B. Prince wrote: So what error prints out when you try and connect from PHP? Could not connect : Can't connect to MySQL server on '192.168.1.44' (2) Not very helpful huh? Any

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Cameron B. Prince
Change your server address, to leave off the port number. Any different? $DBhost = 192.168.1.44; $DBuser = web; $DBpwd = user; $DBreg = registration; $DBconf = config; # setup database handle and load configuration data $dbh = mysql_connect($DBhost, $DBuser, $DBpwd) or die(Could not

RE: [PHP] MySQL Connect Problem

2004-03-17 Thread Adam Voigt
What does your MySQL error log say on your production database server? It should be in the var directory named something .err. On Wed, 2004-03-17 at 15:16, Cameron B. Prince wrote: Change your server address, to leave off the port number. Any different? $DBhost = 192.168.1.44; $DBuser

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Cameron B. Prince
What does your MySQL error log say on your production database server? It should be in the var directory named something .err. These are SunFire 210 Solaris boxes. The MySQL is installed from binary. It doesn't write a log by default as best I can tell, but I did find something. The MySQL on

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Adam Voigt
I would think the mysqlclient library would be backwards compatible, but it's possible I guess. I'm kind of out of ideas, as the can't connect error without something like a bad username or password message, seems to indicate a TCP/IP communication failure. On Wed, 2004-03-17 at 15:26, Cameron

[PHP] js date picker

2004-03-17 Thread Luis Mirabal
anyone knows a good javascript date picker, i need it to be compatible with all major browsers thx, luis. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Replace space from form field using preg_replace

2004-03-17 Thread Vernon
I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Adam Voigt
http://www.php.net/str-replace On Wed, 2004-03-17 at 15:48, Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- Adam Voigt [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Replace space from form field using preg_replace

2004-03-17 Thread Red Wingate
str_replace( ,+,$var); -- red Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] MySQL Connect Problem - Client Lib / Server Version Skew

2004-03-17 Thread Cameron B. Prince
I would think the mysqlclient library would be backwards compatible, but it's possible I guess. I'm kind of out of ideas, as the can't connect error without something like a bad username or password message, seems to indicate a TCP/IP communication failure. Well, after thinking more

[PHP] Stupid question

2004-03-17 Thread Jeff McKeon
I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this- What does this do? I know it has something to do with

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
This is a wee bit off topic, seeing as how this is a PHP mailing list. We'll be happy to help with PHP-related questions. As for JavaScript stuff, use Google to find a good resource. :-) Luis Mirabal wrote: anyone knows a good javascript date picker, i need it to be compatible with all major

Re: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 15:55, Jeff McKeon wrote: I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this-

[PHP] Re: Replace space from form field using preg_replace

2004-03-17 Thread Ben Ramsey
If you're doing this to pass it through a URL, then use urlencode() http://www.php.net/urlencode Vernon wrote: I want to be able to replace a space that comes from a form field (such as in 123 My Street) with a + sign. Can anyone help me with this? Thanks -- Regards, Ben Ramsey

[PHP] Re: Stupid question

2004-03-17 Thread Luis Mirabal
when you are working with classes and objects in php, and you are coding inside a class, you must use the $this variable to access the members of the class, for example: class test { //Class vars (something like properties) var $a; var $b; var $c; var $sum; //Class

Re: [PHP] Stupid question

2004-03-17 Thread Aaron Gould
Jeff McKeon wrote: $this- What does this do? I know it has something to do with classes but can't quite get my head around it. You might want to check out this: http://ca.php.net/oop -- Aaron Gould Parts Canada - Web Developer -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Stupid question

2004-03-17 Thread noginn
Jeff McKeon wrote: I've been using PHP for about 6 months and I'm ok with it but I'm now starting to get into more advanced stuff and inheriting project that other people have coded. One of the major stumpers I have is any line of code that contains: $this- What does this do? I know it has

[PHP] Re: js date picker

2004-03-17 Thread Luis Mirabal
i am using it from a php program... maybe i was not clear enough... but thanx, i found some at phpclasses.org Ben Ramsey [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] This is a wee bit off topic, seeing as how this is a PHP mailing list. We'll be happy to help with PHP-related

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
If you were going to call that function you would use $this-testfunc(); You're on the right track. If you're going to call that function (or method) from within the class, then you use the $this. Also, you can use $this to access member variables from within the class. Outside of the class,

RE: [PHP] Stupid question

2004-03-17 Thread Jeff McKeon
Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff -Original Message- From: Jordan S. Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 17, 2004 4:02 PM To: Jeff McKeon Subject: Re: [PHP] Stupid question That has to deal with Object Oriented

[PHP] Re: js date picker

2004-03-17 Thread Ben Ramsey
If your question was about using dates in PHP, then by all means, ask it here. But I understood your question to be about dates with Javascript. Be specific with your question so people don't pass it off as being off topic. Luis Mirabal wrote: i am using it from a php program... maybe i was

Re: [PHP] Stupid question

2004-03-17 Thread Ben Ramsey
With PHP 5 looming on the horizon (and even many already using it), it'd be a good idea to go ahead and learn OOP now. ;-) Jeff McKeon wrote: Ewe... OOP Ok, I guess I'll have to learn OOP. Thanks for the info! Jeff -- Regards, Ben Ramsey http://benramsey.com

RE: [PHP] Stupid question

2004-03-17 Thread Robert Cummings
On Wed, 2004-03-17 at 16:08, Jeff McKeon wrote: Ewe... OOP That should read: $this-ewww( 'OOP' ) :) -- .. | InterJinn Application Framework - http://www.interjinn.com |

  1   2   >