[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sergey
Check a conformity of php and gd versions. I had same problem, I donload Nusphere Techplat and took its php_gd2.dll. I can send u one if u want ddiffa [EMAIL PROTECTED] ???/ ? ?: news:[EMAIL PROTECTED] Okay I at loss. I have tried but i can seem to get the

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
ddiffa wrote: Okay I at loss. I have tried but i can seem to get the php_gd2.dll to work properly. Any help this is what i have done so far. I have in my php.ini file, check phpinfo() that you are using the right php.ini ; Directory in which the loadable extensions (modules)

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-15 Thread Sebastian Mendel
Dotan Cohen wrote: Hi gurus. I'm having fun replacing the text within [ and ] to XML format on 4000+ files on a windows XP machine. I installed php (and an apache server) on the machine because it is the only language the I am remotely familiar with. I want and text that is with [ and ] to

Re: [PHP] Retrievable weather service info?

2005-06-15 Thread Burhan Khalid
Murray @ PlanetThoughtful wrote: Hi All, Just wondering if anyone knows of a free weather service that can be interrogated by PHP for information such as current temperature for a range of cities around the world? iirc, weather.com provides a XML feed of such information. Free signup. -- PHP

Re: [PHP] Retrievable weather service info?

2005-06-15 Thread Mike Smith
How about: http://www.capescience.com/webservices/globalweather/index.shtml -- Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Retrievable weather service info?

2005-06-15 Thread Clive Zagno
Hi Murray Ive managed to get the local weather in cape town or for any airport that has a ITIA code. the webservice is provide by: http://www.capescience.com/webservices/globalweather/index.shtml you will need to get nusoap from sourceforge to make use of the webservice. regards clive --

[PHP] Apple software updater kills php cli ?

2005-06-15 Thread Dan Rossi
Hi, I had made a feedback complaint to Apple without any reply, I was wondering if anyone has had any issues with their php cli crapping out whenever an apple update occurs under OSX ? It seems to revert back to php 4.3 or whatever is the default in the base system. I run a php5 system. Here

[PHP] Compiling problem (apxs)

2005-06-15 Thread Shane Presley
Hello, I have a RedHat system running Apache and PHP Version 4.3.2. These were pre-installed Red Hat packages. Things worked nicely. But I needed to recompile PHP, because I need Oracle support, and this package wasn't compiled with --with-oracle=/path/to/oracle/home/dir

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
Sebastian Mendel wrote: ; Directory in which the loadable extensions (modules) reside. extension_dir = C:\PHP\extensions I have also uncommented the extension = php_gd2.dll I have in the c:\php\extension folder the php_gd2.dll I have restarted IIS but still nothing I am using

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Kristen G. Thorson
Hopefully I understand your question correctly. You have this SQL: $media_query = 'SELECT media_id,media_name FROM media GROUP BY media_name'; And For every media_id which is associated with $cartoon in the table media_art, check the box; for all others leave them unchecked. The problem

[PHP] Re: retreiving postal/zip codes with PHP

2005-06-15 Thread I. Gray
I. Gray wrote: Hi. I was wandering whether anyone knew how i can use php to retrieve info from a postal code (probably mainly in the UK) so that when a person enters the post code it comes up with the address or I can do other things with the info. Is there a php class that can do this?

[PHP] Image upload form

2005-06-15 Thread Jack Jackson
Hi, After a disastrous first attempt (which uploaded images but only by chance) it was suggested I rework the entire thing. This one seems to check the file against getimagesize and if that doesn't prove false, check the type and make the extension then rename the file. But the moving part is

[PHP] Re: retreiving postal/zip codes with PHP

2005-06-15 Thread Lester Caine
I. Gray wrote: The Royal Mail, I don't think will stop charging for the service. I wish there was a decent world wide database that was free to use. I do have a start http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html I'd like to put the full UK one in, but apart from

[PHP] Re: retreiving postal/zip codes with PHP

2005-06-15 Thread Lester Caine
I. Gray wrote: The Royal Mail, I don't think will stop charging for the service. I wish there was a decent world wide database that was free to use. I do have a start http://home.lsces.co.uk/ibWebAdmin_0_98/FirebirdFederationDataArchive.html I'd like to put the full UK one in, but apart from

[PHP] Apache fails to start (oracle path problem?)

2005-06-15 Thread Shane Presley
Hello, I'm having trouble compiling and running PHP with oracle support. I was able to compile with the appropriate configure script, but only after I set my Oracle environment variables in my shell. That was no problem. The problem is, when Apache goes to load the php module, it fails,

[PHP] gzcompress in 4.3.7?

2005-06-15 Thread Jay Blanchard
I am working with a class to create zip files and the class requires gzcompress(). An undefined function error is thrown (Fatal error: Call to undefined function: gzcompress() in /var/li...) yet the TFM says that gzcompress is available in (PHP 4 = 4.0.1, PHP 5). I am running 4.3.7 on this

[PHP] RE: gzcompress in 4.3.7?

2005-06-15 Thread Jay Blanchard
[snip] I am working with a class to create zip files and the class requires gzcompress(). An undefined function error is thrown (Fatal error: Call to undefined function: gzcompress() in /var/li...) yet the TFM says that gzcompress is available in (PHP 4 = 4.0.1, PHP 5). I am running 4.3.7 on this

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Sebastian Mendel
; Directory in which the loadable extensions (modules) reside. extension_dir = C:\PHP\extensions I have also uncommented the extension = php_gd2.dll I have in the c:\php\extension folder the php_gd2.dll I have restarted IIS but still nothing I am using Window XP $ 2000 with IIS 5.0

Re: [PHP] RE: gzcompress in 4.3.7?

2005-06-15 Thread John Nichel
Jay Blanchard wrote: [snip] I am working with a class to create zip files and the class requires gzcompress(). An undefined function error is thrown (Fatal error: Call to undefined function: gzcompress() in /var/li...) yet the TFM says that gzcompress is available in (PHP 4 = 4.0.1, PHP 5). I am

RE: [PHP] RE: gzcompress in 4.3.7?

2005-06-15 Thread Jay Blanchard
[snip] Harumphmy day had been sailing along reasonably smoothly. [/snip] Never mind. I just found out that the network admin recompiled PHP on this server without zlib. snip See, if you would have looked at your phpinfo() you would have known this. ;) *ducks* [snip] *throws* Well,

[PHP] php/osx and firebird

2005-06-15 Thread James
I have a windows machine with Firebird and the default database. I've configured another machine with Apache and PHP. I want to write PHP scripts to remotely access the Firebird database. I followed the instructions at: http://us3.php.net/ibase I changed the php.ini to enable the

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Okay, I started seeing some of my mistakes. I am still having a great deal of trouble: newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg image_file returns: images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg images/jpg/test is set to 777 but I still get (Could not move file to

Re[2]: [PHP] Image upload form

2005-06-15 Thread Richard Davey
Hello Jack, Wednesday, June 15, 2005, 5:38:11 PM, you wrote: JJ newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ image_file returns: JJ images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ images/jpg/test is set to 777 but I still get (Could not move file to JJ destination). What am

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Richard Davey wrote: Hello Jack, Wednesday, June 15, 2005, 5:38:11 PM, you wrote: JJ newfile returns: 0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ image_file returns: JJ images/jpg/test/0fdae2e9e6aa43f067a9dd780a5a36a6.jpg JJ images/jpg/test is set to 777 but I still get (Could not move file to

Re: [PHP] Image upload form

2005-06-15 Thread Jason Wong
On Thursday 16 June 2005 00:38, Jack Jackson wrote: //try to get image size; this returns false if this is not an actual image file. $image_test = getimagesize($local_file); if ($image_test !== false) { $mime_type = $_FILES['userfile']['type'];

Re: [PHP] php/osx and firebird

2005-06-15 Thread Kristen G. Thorson
Undefined service gds_db/tcp. Sounds to me like it's not finding the port in services. I don't know what default port Firebird is listening on, but you should have an entry like gds_db/tcp 1234/tcp in c:\windows\system32\drivers\etc\services. You'll have to find out exactly which

Re: [PHP] Apache fails to start (oracle path problem?)

2005-06-15 Thread Kristen G. Thorson
I ran into a similar problem trying to get ODBC working with a Progress database. I managed to solve it by setting the environment variables in the httpd startup script. Not much help, I know, but a suggestion. ;) good luck kgt Shane Presley wrote: Hello, I'm having trouble compiling

Re: [PHP] Image upload form

2005-06-15 Thread Jack Jackson
Yes, Jason, Those did it! Thanks so much for the help! Jason Wong wrote: On Thursday 16 June 2005 00:38, Jack Jackson wrote: //try to get image size; this returns false if this is not an actual image file. $image_test = getimagesize($local_file); if ($image_test !== false) {

[PHP] Sessions

2005-06-15 Thread Brian D. McGrew
Greetings from San Diego! I call session_start() on all my pages and then ? echo session_id(); ? and everything is the same from all the pages. However if I stuff a variable into $_SESSION it's never transferred between pages. So if I do a ? $_SESSION[Username] = Brian; ? and then go to

Re: [PHP] Sessions

2005-06-15 Thread Greg Donald
On 6/15/05, Brian D. McGrew [EMAIL PROTECTED] wrote: Greetings from San Diego! Greetings from someplace-else. I call session_start() on all my pages and then ? echo session_id(); ? and everything is the same from all the pages. However if I stuff a variable into $_SESSION it's never

Re: [PHP] php/osx and firebird

2005-06-15 Thread James
Here's the answer! http://community.borland.com/article/0,1410,25290,00.html I updated the SERVICE file on my Apache/PHP machine and all is well. At 12:04 PM -0400 6/15/05, James wrote: I have a windows machine with Firebird and the default database. I've configured another machine with

[PHP] Reading binary file data into variable

2005-06-15 Thread Jay Blanchard
I am following Coggeshall's article on Zend for creating ZIP files. I seem to have run into a problem with PDF's though. In his code you have to read the file into a variable. I have tried file_get_contents, readfile, a combination of fopen, fpassthru, etc $filedata =

Re: [PHP] Reading binary file data into variable

2005-06-15 Thread John Nichel
Jay Blanchard wrote: I am following Coggeshall's article on Zend for creating ZIP files. I seem to have run into a problem with PDF's though. In his code you have to read the file into a variable. I have tried file_get_contents, readfile, a combination of fopen, fpassthru, etc $filedata =

[PHP] Feedback on the various PHP-MVC implementations

2005-06-15 Thread Pablo Gosse
Hi, folks. I'm looking for some feedback on a couple of the php mvc implementations out there. The two that I've seen referenced the most are php.MVC (http://www.phpmvc.net) and Phrame (http://phrame.sourceforge.net). I've looked around and found some okay opinions on both, but I'd really like

RE: [PHP] Reading binary file data into variable

2005-06-15 Thread Jay Blanchard
[snip] Did you try using fopen's binary safe read? Something like : $binary_data = ; $fp = fopen ( $file, rb ); while ( ! feof ( $fp ) ) { $binary_data .= fgets ( $fp ); } fclose ( $fp ); Don't know if it will work (or if you already tried it)...more like a guess. [/snip] Yes, tried

[PHP] incrementing a register global

2005-06-15 Thread Aaron Todd
I dont know it this is possible, but here it goes. Hopefully I cac explain it well enough for someone to understand. I am posting data to a php script. I have several variables that are the same except the number at the end is different. So the url of the called script will be something

[PHP] PHP module permissions

2005-06-15 Thread JamesBenson
After upgrading my fedora core 3 box with the latest selinux update i get the following error when trying to start apache (2.0.54-prefork) Cannot load /usr/local/apache2/modules/libphp4.so into server: /usr/local/apache2/modules/libphp4.so: cannot restore segment prot after reloc:

RE: [PHP] incrementing a register global

2005-06-15 Thread Jay Blanchard
[snip] I dont know it this is possible, but here it goes. Hopefully I cac explain it well enough for someone to understand. I am posting data to a php script. I have several variables that are the same except the number at the end is different. So the url of the called script will be

RE: [PHP] Reading binary file data into variable

2005-06-15 Thread Jay Blanchard
[snip] Did you try using fopen's binary safe read? Something like : [/snip] Shy of being able to do this in the way that I imagined, does anyone know of a class (not requiring PHP 5, as one does on phpclasses.org) that will allow me to specify several PDF and/or other files in a directory to be

[PHP] Anyone ever upgraded PHP at GoDaddy?

2005-06-15 Thread Brian Dunning
GoDaddy's Virtual Dedicated Servers come with PHP 4.2 - anyone ever upgraded this to 4.3 or later? I've never done any command line stuff or anything like that - is there an easier way? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Checkboxes From Intersection Redux

2005-06-15 Thread Jack Jackson
That did it exactly, Kristen Thanks so much for the help! (and sorry for sending this to you and not the list the first time!) JJ Kristen G. Thorson wrote: Hopefully I understand your question correctly. You have this SQL: $media_query = 'SELECT media_id,media_name FROM media

Re: [PHP] Anyone ever upgraded PHP at GoDaddy?

2005-06-15 Thread Greg Donald
On 6/15/05, Brian Dunning [EMAIL PROTECTED] wrote: GoDaddy's Virtual Dedicated Servers come with PHP 4.2 - anyone ever upgraded this to 4.3 or later? I've never done any command line stuff or anything like that - is there an easier way? Make yourself a phpinfo() page. Your PHP configuration

Re: [PHP] Anyone ever upgraded PHP at GoDaddy?

2005-06-15 Thread Brian Dunning
On Jun 15, 2005, at 2:28 PM, Greg Donald wrote: Make yourself a phpinfo() page. Your PHP configuration will be at the top of the page. You can use that configure line to build/upgrade to a newer PHP. I see that, thanks - but if you'll forgive an ignorant question, what do I do with that

Re: [PHP] Apache fails to start (oracle path problem?)

2005-06-15 Thread Shane Presley
Thank you! That fixed it. I just had to define the Oracle env variables on the httpd startup script. So that was a huge help :) Shane On 6/15/05, Kristen G. Thorson [EMAIL PROTECTED] wrote: I ran into a similar problem trying to get ODBC working with a Progress database. I managed to solve

[PHP] COM integration problems

2005-06-15 Thread Jonathan Kart
Hi all, I'm trying to interface with verisign's payflow pro on windows using the COM workaround. This code was originally taken from an example listed with the manual as a workaound for the fact that the php pfpro functions are not supported on windows. It worked for some time until the server

Re: [PHP] Anyone ever upgraded PHP at GoDaddy?

2005-06-15 Thread Laurent Duchesne
Hi, you need to get the appropriate php tarball from http://www.php.net/downloads.php and check out this page: http://www.geocities.com/tipsforlinux/articles/27.html It will tell you how to: - extract the sources - run configure (this is where you use the configure line from phpinfo) -

Re: [PHP] Anyone ever upgraded PHP at GoDaddy?

2005-06-15 Thread Greg Donald
On 6/15/05, Brian Dunning [EMAIL PROTECTED] wrote: On Jun 15, 2005, at 2:28 PM, Greg Donald wrote: Make yourself a phpinfo() page. Your PHP configuration will be at the top of the page. You can use that configure line to build/upgrade to a newer PHP. I see that, thanks - but if

Re: Re[2]: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-15 Thread Dotan Cohen
On 6/15/05, Tom Rogers [EMAIL PROTECTED] wrote: Hi, Wednesday, June 15, 2005, 4:42:24 AM, you wrote: DC On 6/14/05, Sebastian Mendel [EMAIL PROTECTED] wrote: Dotan Cohen wrote: Hi gurus. I'm having fun replacing the text within [ and ] to XML format on 4000+ files on a windows XP

Re: [PHP] Re: Converting [and] to XML format- help/advise requested

2005-06-15 Thread Dotan Cohen
On 6/15/05, Sebastian Mendel [EMAIL PROTECTED] wrote: Dotan Cohen wrote: Hi gurus. I'm having fun replacing the text within [ and ] to XML format on 4000+ files on a windows XP machine. I installed php (and an apache server) on the machine because it is the only language the I am

[PHP] ftruncate() and stream wrappers

2005-06-15 Thread Justin Hannus
I dont see support for using ftruncate() on user defined stream wrappers. When I try to truncate one I get an E_WARNING: Warning: ftruncate() [function.ftruncate]: Can't truncate this stream! Does anyone know of a way to truncate a user defined stream wrapper using php's file system or stream

[PHP] passthru() passing variables

2005-06-15 Thread Chris Herold
Hi, I have been told that in order to pass variables via passthru() to another script (in my case, a perl script) one can do the following ... passthru(home/test.cgi $var) and that $var will then be passed through to the cgi. I have tried this and failed. Is this the proper format or is

Re: [PHP] incrementing a register global

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 12:43 pm, Aaron Todd said: I dont know it this is possible, but here it goes. Hopefully I cac explain it well enough for someone to understand. I am posting data to a php script. I have several variables that are the same except the number at the end is different. So

Re: [PHP] Sessions

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 10:38 am, Brian D. McGrew said: I call session_start() on all my pages and then ? echo session_id(); ? and everything is the same from all the pages. However if I stuff a variable into $_SESSION it's never transferred between pages. So if I do a ? $_SESSION[Username] =

[PHP] How to print variable name and contents

2005-06-15 Thread nntp.charter.net
I want to write a trace procedure and call it with variable names, and I am having trouble with the syntax. My goal is to have a procedure that will echo lines such as: Trace: $myvar=the contents of $myvar My attempt that didn't work is to write a function: function my_trace($m){ echo

Re: [PHP] How to print variable name and contents

2005-06-15 Thread Richard Davey
Hello, Wednesday, June 15, 2005, 2:33:48 PM, you wrote: ncn I want to write a trace procedure and call it with variable ncn names, and I am having trouble with the syntax. My goal is to ncn have a procedure that will echo lines such as: ncn Trace: $myvar=the contents of $myvar ncn My attempt

Re: [PHP] Re: Retrievable weather service info?

2005-06-15 Thread xfedex
http://weather.noaa.gov/pub/data/observations/metar/stations/SABE.TXT Here you get the METAR report in plaintext format..now is your work to decode it.HAVE FUN !! I already made something to read thouse text files...If you want I can share it. cheers! pancarne. On 6/15/05, Clive

Re: [PHP] passthru() passing variables

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 5:36 pm, Chris Herold said: I have been told that in order to pass variables via passthru() to another script (in my case, a perl script) one can do the following ... passthru(home/test.cgi $var) and that $var will then be passed through to the cgi. I have tried this

Re: [PHP] php/osx and firebird

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 9:04 am, James said: $host = 10.1.4.58:c:\fbwin50\fbdata\fbdata.fdb; $username = SYSDBA; $password = masterkey; $dbh = ibase_pconnect ($host, $username, $password); $stmt = SELECT * FROM EVENTTYP; $sth = ibase_query ($dbh, $stmt); Warning: ibase_pconnect()

Re: [PHP] Compiling problem (apxs)

2005-06-15 Thread Richard Lynch
On Wed, June 15, 2005 6:39 am, Shane Presley said: I have a RedHat system running Apache and PHP Version 4.3.2. These were pre-installed Red Hat packages. Things worked nicely. What you are missing is the RPM apache-devel or httpd-devel or somethinghereaboutapache-devel The *-devel RPMs

[PHP] OT Major Release Versions

2005-06-15 Thread Richard Lynch
This is Computer Software philosophical musing, not specifically related to just PHP, but applicable to PHP and, well, all other OpenSource software... As I sit here surrounded by machines (physically and virtually) and realizing that while I've got most of them on auto-update as much as I can,

[PHP] Re: unable to load php_gd2.dll

2005-06-15 Thread Nadim Attari
Try extension_dir = ./extensions Nadim Attari Alienworkers.com Okay I at loss. I have tried but i can seem to get the php_gd2.dll to work properly. Any help this is what i have done so far. I have in my php.ini file, ; Directory in which the loadable extensions (modules) reside.

[PHP] Re: Image upload form

2005-06-15 Thread Nadim Attari
http://www.php-help.net/sources-php/image.upload.function.353.html Regards, Nadim Attari Alienworkers.com Hi, After a disastrous first attempt (which uploaded images but only by chance) it was suggested I rework the entire thing. This one seems to check the file against getimagesize and if