[PHP] Can I do this?

2004-02-07 Thread John Taylor-Johnston
Can I include a script on another server doing this? $sql = 'SELECT * FROM '.$table.' where number like '.$number.';'; http://foo.com?list.php?number=16 include("http://elsewhere.com/list.php";); My $sql is error-ing - obviously. http://elsewhere.com/list.php is not receiving $number. Can I ev

Re: [PHP] Use a Server or Client Socket?

2004-02-07 Thread Tan Ai Leen
Hi Raditha, Thanks, I have a better idea of how to write the codes. But I wonder, to check that the connection to the external server is on, where should I place the code? I need to do this every 10 minutes. If the connection is dropped, I have to reconnect. Where should I place this check? If

Re: [PHP] Use a Server or Client Socket?

2004-02-07 Thread Tan Ai Leen
Hi Raditha, Thanks, I have a better idea of how to write the codes. But I wonder, to check that the connection to the external server is on, where should I place the code? I need to do this every 10 minutes. If the connection is dropped, I have to reconnect. Where should I place this check? If

Re: [PHP] how to conver a string to float

2004-02-07 Thread Adam Bregenzer
On Sat, 2004-02-07 at 23:50, Michal Migurski wrote: > Another possibility is to pipe the expression to bc, which could do the > input check for you, and probably covers a lot of syntactic ground. > Slightly less resource-efficient, but you don't have to reinvent the > wheel (untested, unix only): >

Re: [PHP] refresh page (might be 0t)

2004-02-07 Thread Adam Bregenzer
On Sat, 2004-02-07 at 23:03, Ryan A wrote: > Heres what I am doing: > I give the client a control panel where he can add,edit and delete accounts, > after each of the actions I have a link back to > the index page of the contol panel...problem is, unless he presses the > refresh button it shows him

Re: [PHP] how to conver a string to float

2004-02-07 Thread Michal Migurski
>> Is there a possibility to convert a string like "10*500" (parsed from a >> XML-File) to a float? When i try to store this String in a float >> variable it only coverts the "10" but nothing after the "*"-sign, but i >> need the result of this expresison... Is there a function to calculate >> such

php-general Digest 8 Feb 2004 04:47:46 -0000 Issue 2577

2004-02-07 Thread php-general-digest-help
php-general Digest 8 Feb 2004 04:47:46 - Issue 2577 Topics (messages 177097 through 177120): Re: Need a way to automate user logout 177097 by: Lowell Allen PHP5 Beta 3 177098 by: Safran von Twesla [ERR] [PHP] PHP5 Beta 3 177099 by: postmaster.hanmir.com PEAR DB 1.6

[PHP] Re: refresh page (might be 0t)

2004-02-07 Thread Paul Furman
.htaccess file on the server maybe? I'm not at all sure though & you might not want to reload the page *every* time it's visited. Ryan A wrote: Hey, Have run into a little problem...any help appreciated. Heres what I am doing: I give the client a control panel where he can add,edit and delete acc

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-07 Thread gohaku
On Feb 7, 2004, at 10:36 PM, Jason Wong wrote: So basically you haven't made any changes to php.ini at all. So whatever got your mail working was because of something else that you had done. I stand corrected. Now I don't remember what I did to fix this. I waited 5 minutes between sending test e

[PHP] refresh page (might be 0t)

2004-02-07 Thread Ryan A
Hey, Have run into a little problem...any help appreciated. Heres what I am doing: I give the client a control panel where he can add,edit and delete accounts, after each of the actions I have a link back to the index page of the contol panel...problem is, unless he presses the refresh button it s

Re: [PHP] how to conver a string to float

2004-02-07 Thread Jason Wong
On Saturday 07 February 2004 23:56, Sebastian wrote: > Is there a possibility to convert a string like "10*500" (parsed from a > XML-File) to a float? > When i try to store this String in a float variable it only coverts the > "10" but nothing after the "*"-sign, but i need the result of this > exp

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-07 Thread Jason Wong
On Sunday 08 February 2004 05:53, gohaku wrote: > > Make sure the path to sendmail is correct in your php.ini. > > Ensure that sendmail is installed. > > Thank You. > all I had to do was change one line in php.ini: > > From > ; For Unix only. You may supply arguments as well (default: "sendmail >

[PHP] Re: function only available if PHP4 compiled using --enable-exif

2004-02-07 Thread Paul Furman
Thanks. I could have sworn I searched php.ini for exif. I had to do both of the below to make it work. Ben Ramsey wrote: php.ini [extension_dir = "c:\PHP\extensions"] [uncomment] extension=php_exif.dll -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: function only available if PHP4 compiled using --enable-exif

2004-02-07 Thread Ben Ramsey
If you're on Windows, you should see a file by the name of php_exif.dll in your PHP\extensions directory. It should've come with the distribution. Depending on the way your php.ini file is set up, you may either leave this file in its current location, or you may need to copy it to your windo

Re: [PHP] how to conver a string to float

2004-02-07 Thread Galen
Look at: exec() Be careful if you don't control the input of course. -Galen On Feb 7, 2004, at 7:56 AM, Sebastian wrote: Is there a possibility to convert a string like "10*500" (parsed from a XML-File) to a float? When i try to store this String in a float variable it only coverts the "10" but

[PHP] function only available if PHP4 compiled using --enable-exif

2004-02-07 Thread Paul Furman
Does this mean I need to recompile from source code? (seems an extreme measure to me but what do I know) Is that difficult to do on a windows machine? I see it in some phpinfo's out there like this: http://www.php.net/~jimw/info.php but that's not in mine or at school or most hosting companies I'

Re: [PHP] Re: Beginner amazes self with image gallery script!

2004-02-07 Thread Ryan A
Hey, a quick update, I know not many people use opera but...i do, and this does not work on Opera 6.05. It degrades gracefully though, it goes straight to the image. HTH. Cheers, -Ryan On 2/7/2004 9:37:36 PM, Joseph Szobody ([EMAIL PROTECTED]) wrote: > > My question is, > I'm updating the pages

[PHP] how to conver a string to float

2004-02-07 Thread Sebastian
Is there a possibility to convert a string like "10*500" (parsed from a XML-File) to a float? When i try to store this String in a float variable it only coverts the "10" but nothing after the "*"-sign, but i need the result of this expresison... Is there a function to calculate such string express

Re: [PHP] Cannot send mail after upgrading to OS X v10.3

2004-02-07 Thread gohaku
On Feb 7, 2004, at 12:20 AM, John Nichel wrote: Hi everyone, I am using OS X v10.3.2 and just discovered that I can't send mail using the mail() function. According to phpinfo(), PHP is configured with sendmail. Before upgrading to v10.3, I did not check if the mail() function worked in v10.2 T

[PHP] Re: Beginner amazes self with image gallery script!

2004-02-07 Thread Joseph Szobody
> My question is, I'm updating the pages by creating a url back to the > same script with some differing $_REQUEST settings for the page number > (&PAGE=2) and on a smaller screen this bumps the page back to the top. > Is there a better way to do this with some kind of update image function > witho

Re: [PHP] Checking if database has been setup

2004-02-07 Thread Don Read
On 07-Feb-2004 Ryan A wrote: > but how do i check if the database/tables have > been setup? > SHOW DATABASES LIKE 'mydb'; SHOW TABLES FROM mydb LIKE 'mytable'; Check if a table exists: SELECT 1 FROM mydb.mytable LIMIT 1; Regards, -- Don Read [EMAIL PR

Re: [PHP] FreeBSD to Linux -- PHP Issues

2004-02-07 Thread Don Read
On 03-Feb-2004 Daryl Meese wrote: > Hello all, > > I am considering changing hosting providers and moving from FreeBSD > to > Linux. > > My question is are there any PHP related issues to moving (functions > that > don't work on Linux but do on FreeBSD, etc)? > > I doubt there are but have to c

Re: [PHP] include_once() isnt!

2004-02-07 Thread Adam Bregenzer
On Tue, 2004-02-03 at 17:04, Rob wrote: > Ive programmed with C/C++ for years and have recently started to dabble in > PHP. Ive written a multi-part script for a friend and Ive run into a > problem. > Heres where the problem lies. Each component is in a separate file, and when > I run the script,

Re: [PHP] explode() an array and grep out a string

2004-02-07 Thread Adam Bregenzer
On Sat, 2004-02-07 at 03:09, Bobby R.Cox wrote: > Is it possible to explode an array and have it exclude a certain > string. I currently have an array that is an ldapsearch that returns > sub-accounts of a parent account. These accounts are then displayed so > customer can either change the pa

[PHP] Re: Problems with ö or ä in script

2004-02-07 Thread DvDmanDT
It's because the HTML or HTTP or whateverdoesn't allow them.. :p -- // DvDmanDT MSN: dvdmandt¤hotmail.com Mail: dvdmandt¤telia.com "Piet From South Africa" <[EMAIL PROTECTED]> skrev i meddelandet news:[EMAIL PROTECTED] > When using ö or ä the hyperlinks or photo references does not work even > th

[PHP] PEAR DB 1.6.0RC5 released, please test it

2004-02-07 Thread Daniel Convissor
Hello Again: Another release of PEAR DB was made yesterday, 1.6.0RC5. The most important change was fixing the bug for people who use arrays for the DSN information when connecting. It also adds a new method called quoteIdentifier(), which is used for delimiting identifiers (such as field names

[PHP] [ERR] [PHP] PHP5 Beta 3

2004-02-07 Thread postmaster
Transmit Report: To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED]) --- Begin Message --- Hi php-general, I have already PHP 4.3.1 running on my apache 2 webserver, on Linux. Now I've tried to make PHP 5 run, everything compiles well, I have set the same configuration parameter

[PHP] PHP5 Beta 3

2004-02-07 Thread Safran von Twesla
Hi php-general, I have already PHP 4.3.1 running on my apache 2 webserver, on Linux. Now I've tried to make PHP 5 run, everything compiles well, I have set the same configuration parameters than for PHP 4, only additionally --disable-libxml because it wouldn't compile then. I added the line with

Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Lowell Allen
> I used cron to do this as well; but i devised a much simpler, elegant > solution that is cross-browser and event-based and not schedule-based. > > I basically have a javascript include file that instantiates a function that > counts down in T-minus 10 minutes fashion. at 9:30 the browser pops a

php-general Digest 7 Feb 2004 16:35:47 -0000 Issue 2576

2004-02-07 Thread php-general-digest-help
php-general Digest 7 Feb 2004 16:35:47 - Issue 2576 Topics (messages 177077 through 177096): Re: Cannot send mail after upgrading to OS X v10.3 177077 by: Jason Wong 177078 by: John Nichel fopen() Problems 177079 by: rabbit.cold-chaos.net 177080 by: Jason Won

[PHP] Re: Beginner amazes self with image gallery script!

2004-02-07 Thread Paul Furman
Paul Furman wrote: This PHP stuff is too cool! Thanks for getting me over the hump folks. Here's my work in progress: http://hills.ccsf.edu/~pfurma02/index.php?SCREEN=ecards.php Only the 'next' button works for now... ...Of course I'll want to be able to click each thumbnail to bring it into the b

[PHP] Beginner amazes self with image gallery script!

2004-02-07 Thread Paul Furman
This PHP stuff is too cool! Thanks for getting me over the hump folks. Here's my work in progress: http://hills.ccsf.edu/~pfurma02/index.php?SCREEN=ecards.php Only the 'next' button works for now but still I'm darn impressed with myself . This will work on any folder of pictures with a subfolder o

Re: [PHP] Re: excel output question

2004-02-07 Thread Paul Furman
Jake McHenry wrote: That just filled my spreadsh**t with quotes around everything... still the amounts larger than 1k are in 2 columns.. did I do something wrong? Sorry it didn't work. Maybe double quotes? I've output data from MS Access that came out smothered in quotes and when importing t

Re: [PHP] Use a Server or Client Socket?

2004-02-07 Thread Raditha Dissanayake
Hi Tan, If you are connecting to another server you are using a client socket you do not need to make a server socket. If you need to listen for connections make use of a server socket. To give you an example your browser makes use of client sockets while apache makes use of server sockets. Th

Re: [PHP] Re: excel output question

2004-02-07 Thread Jake McHenry
- Original Message - From: "Phillip Jackson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 07, 2004 4:37 AM Subject: Re: [PHP] Re: excel output question > I would do it like this: > > $build = " '%s','%s','%s','%s'\n"; > $build = sprintf($build,$field1,$field2,$fie

[PHP] Re: include_once() isnt!

2004-02-07 Thread Eric Bolikowski
"Rob" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Ive programmed with C/C++ for years and have recently started to dabble in > PHP. Ive written a multi-part script for a friend and Ive run into a > problem. > > Ive got 14 include files 3 of which are basic components that may or

Re: [PHP] Need a way to automate user logout

2004-02-07 Thread Phillip Jackson
I used cron to do this as well; but i devised a much simpler, elegant solution that is cross-browser and event-based and not schedule-based. I basically have a javascript include file that instantiates a function that counts down in T-minus 10 minutes fashion. at 9:30 the browser pops a window an

Re: [PHP] Re: excel output question

2004-02-07 Thread Phillip Jackson
I would do it like this: $build = " '%s','%s','%s','%s'\n"; $build = sprintf($build,$field1,$field2,$field3,$fieldN); you could also try escaping the comma. if this doesn't work you can always just dump to html tables and save the file as *.xls (excel spreadsheet); excel understands html tables a

[PHP] explode() an array and grep out a string

2004-02-07 Thread Bobby R . Cox
Hi all. Is it possible to explode an array and have it exclude a certain string. I currently have an array that is an ldapsearch that returns sub-accounts of a parent account. These accounts are then displayed so customer can either change the passwd or delete them.Thing is ldapsearch re

[PHP] Use a Server or Client Socket?

2004-02-07 Thread Tan Ai Leen
Hi all, I have this situation now that requires socket programming. But I am not sure how to realise the requirements in programming whether as a client or server The requirement is like this. I have to connect to an external server constantly to listen for incoming data. How can I make sure that t

[PHP] Problems with ö or ä in script

2004-02-07 Thread Piet from South Africa
When using ö or ä the hyperlinks or photo references does not work even though it point correct like "../banner/Jörns Gästehaus/mainphoto.jpg, i tried specialchars but this does not seem to work, can anyone tell me why? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] Re: excel output question

2004-02-07 Thread Jake McHenry
- Original Message - From: "Paul Furman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 07, 2004 1:56 AM Subject: [PHP] Re: excel output question > Single quote everything should work. > > Jake McHenry wrote: > > > Hi everyone. I'm outputing payroll information to a

Re: [PHP] Re: How can I run php 5 beta 3 on windows?

2004-02-07 Thread Adam Bregenzer
On Fri, 2004-02-06 at 18:47, omer katz wrote: > Help!!! > "Omer Katz" <[EMAIL PROTECTED]> > :[EMAIL PROTECTED] > > Can I update PHPTraid's php files? I'm not sure I understand what you are having a problem with... -- Adam Bregenzer [EMAIL PROTECTED] http://adam.bregenzer.net/ -- PHP General M

[PHP] Re: excel output question

2004-02-07 Thread Paul Furman
Single quote everything should work. Jake McHenry wrote: Hi everyone. I'm outputing payroll information to an excel csv file, and when anyone get's paid over 1k, the amount is split into two fields because of the comma in the amount. Is there anyway I can tell excel that this particular comma is