php-general Digest 23 Nov 2008 16:33:05 -0000 Issue 5806
php-general Digest 23 Nov 2008 16:33:05 - Issue 5806 Topics (messages 283705 through 283713): Re: Open Project 283705 by: sharmishtha gupta Re: Displaying information from table graphically] 283706 by: dzenan.causevic.wise-t.com 283707 by: dzenan.causevic.wise-t.com 283708 by: dzenan.causevic.wise-t.com 283709 by: Ashley Sheridan 283710 by: dzenan.causevic.wise-t.com 283711 by: Ashley Sheridan 283712 by: Nathan Rixham issue with php.ini 283713 by: Alain Roger Administrivia: To subscribe to the digest, e-mail: [EMAIL PROTECTED] To unsubscribe from the digest, e-mail: [EMAIL PROTECTED] To post to the list, e-mail: [EMAIL PROTECTED] -- ---BeginMessage--- Hi Alex I visited your link. i would like to contribute. can you send me more details about the plan and requirements. -Sharmishtha On Sun, Nov 23, 2008 at 7:07 AM, Nathan Rixham [EMAIL PROTECTED] wrote: Craige Leeder wrote: Hi Nathan, Are you fluent with OOP concepts? I'm working on a framework called Ember, and wouldn't mind some help. I literally JUST started the re-code though - Craige Hi Craige, Do send through more details, I'm fluent with OO concepts and design patterns etc, develop in Java, AS3 and PHP5 OO (many others but these are my current primary languages) - had been coding up all of the Java lang.* and util.* classes in PHP but kind of gave that one last week as what's the point! As for a recode - I love a good refactoring! Regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- Hardly any PHP lib's support WSOT? So it's J2EE strictly compatible? Ashley Sheridan wrote: On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) [EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see SOAP, XML-RPC); think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. Yeah. XML web services are the way forward for exchanging data. You can have one service spit out XML that can be used by an AJAX request, Flash and basically anything else that can digest web services. Ash www.ashleysheridan.co.uk WSOT is worth a look if you're so inclined; hardly any php lib's have support for ws-* suite of services like ws-addressing, ws-security etc (native support in soap for sessions, security etc etc) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ---End Message--- ---BeginMessage--- Yes however problem with using DIV's is that they are supported only from IE7, which is significant shortcoming I believe Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP ---End Message--- ---BeginMessage--- Now does it mean that I will have to create and incorporate webservices with my existing PHP web application? Does Flex support PHP in that respect? Sounds like J2EE strictly, but can I do it from PHP? On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) [EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru
Re: [PHP] Displaying information from table graphically]
Hardly any PHP lib's support WSOT? So it's J2EE strictly compatible? Ashley Sheridan wrote: On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) [EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see SOAP, XML-RPC); think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. Yeah. XML web services are the way forward for exchanging data. You can have one service spit out XML that can be used by an AJAX request, Flash and basically anything else that can digest web services. Ash www.ashleysheridan.co.uk WSOT is worth a look if you're so inclined; hardly any php lib's have support for ws-* suite of services like ws-addressing, ws-security etc (native support in soap for sessions, security etc etc) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Yes however problem with using DIV's is that they are supported only from IE7, which is significant shortcoming I believe Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Now does it mean that I will have to create and incorporate webservices with my existing PHP web application? Does Flex support PHP in that respect? Sounds like J2EE strictly, but can I do it from PHP? On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) [EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see SOAP, XML-RPC); think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. Yeah. XML web services are the way forward for exchanging data. You can have one service spit out XML that can be used by an AJAX request, Flash and basically anything else that can digest web services. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
On Sun, 2008-11-23 at 10:20 -0100, [EMAIL PROTECTED] wrote: Yes however problem with using DIV's is that they are supported only from IE7, which is significant shortcoming I believe Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP I'd hope div's were supported by IE6, because I've been using them and testing them in that browser for years! The only thing to be wary of is the box model for IE is different than that of every other browser and the W3C. I've got more details on my site about the box model and how to use conditional comments to have stylesheets just for IE. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Excellent, it's good to know that. I think someone earlier in the discussion mentioned that DIV's were supported from IE7. He probabily meant fully supported, I am not absolutely sure but anyway it's good to know there are other experiences with IE as well. How about IE5? Does anyone have any experience on how IE5 handles DIV's? On Sun, 2008-11-23 at 10:20 -0100, [EMAIL PROTECTED] wrote: Yes however problem with using DIV's is that they are supported only from IE7, which is significant shortcoming I believe Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP I'd hope div's were supported by IE6, because I've been using them and testing them in that browser for years! The only thing to be wary of is the box model for IE is different than that of every other browser and the W3C. I've got more details on my site about the box model and how to use conditional comments to have stylesheets just for IE. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
On Sun, 2008-11-23 at 11:21 -0100, [EMAIL PROTECTED] wrote: Excellent, it's good to know that. I think someone earlier in the discussion mentioned that DIV's were supported from IE7. He probabily meant fully supported, I am not absolutely sure but anyway it's good to know there are other experiences with IE as well. How about IE5? Does anyone have any experience on how IE5 handles DIV's? On Sun, 2008-11-23 at 10:20 -0100, [EMAIL PROTECTED] wrote: Yes however problem with using DIV's is that they are supported only from IE7, which is significant shortcoming I believe Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP I'd hope div's were supported by IE6, because I've been using them and testing them in that browser for years! The only thing to be wary of is the box model for IE is different than that of every other browser and the W3C. I've got more details on my site about the box model and how to use conditional comments to have stylesheets just for IE. Ash www.ashleysheridan.co.uk IE 5 and IE5.5 handle div's the same way that IE6 does, albeit badly. One caveat that you may run into though, IE doesn't like the minimum height of a div to be smaller than the font size, so if you make sure yu set your font sizes for those graph divs to something like 1px, you should be OK. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Robert Cummings wrote: Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. nothing at all was wrong with Stut's suggestion; however us web developers have been boxed in and indeed grown accustomed to using the wrong tools for the job through years of having to bastardise html, javascript and http to do what we want it to, rather that what it was designed for. (/hence ajax!/) In the above scenario you *can* use (x)html to complete the task and get something going, or you can use a tech like flash/flex which was developed primarily for tasks such as this. I'm no going to go into any more detail on this, I'm sure you understand what I mean. Regards! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] issue with php.ini
Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. -- Alain Windows XP x64 SP2 PostgreSQL 8.3.5 / MS SQL server 2005 Apache 2.2.10 PHP 5.2.6 C# 2005-2008
[PHP] Re: Form Input Type=File
I surrender. My web site is too complex to explain here. I accept that IE 6 SP 1 and FireFox 3.0.4 have implemented what Input Type=File ... returns differently. Thanks, Stan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Open Project
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Regards, Nathan Hi Nathan, I am about to launch my own framework called Fred the Framework. Designed to be easy going, it is suppose to be ready to use out of the box, with very little config and a usable user management system - unlike Zend's Auth and ACL. Except, I need someone to develop the Authentication part of it. I've put it on Sourceforge the other day, but I've never developed anything like this before. I'm going to put up a sample app soonish - take a look at the svn if you want. Alex had a look through; it is early day's isn't it! 3 questions: - what do you all want to have in the framework (rough feature set) - why build it? / what do you want to offer that other's don't Fred will offer friendly URLs out of the box. Support for Smarty is a given, along with ADOdb and PHPMailer. The major feature I want implemented is a decent user management system that is simple for developers to use and secure enough for consumers to believe in. Nothing else provides this. - what version of php are you developing in and min support (ie 5.2+ Starting with the current version of PHP5 and branch off to 6 as the developers at a later date see fit. No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.9/1806 - Release Date: 22/11/2008 18:59 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Form Input Type=File
Stan wrote: I surrender. My web site is too complex to explain here. Yes, I poked around on it from the link in your previous email. I must say that it appears that you have made things much more complex than they need to be. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: IMagick confusion - SOLVED but still confused
After messing with this for 2 days I finally got ?php $picture = $_GET['PICTURE']; /* need to get filetype from querystring picture= */ header('Content-type: image/jpg'); $image = new IMagick($picture); $exifArray = $image-getImageProperties(exif:*); $orientation = $exifArray['exif:Orientation']; switch($orientation) { case imagick::ORIENTATION_TOPLEFT: // this is normal break; case imagick::ORIENTATION_TOPRIGHT: break; case imagick::ORIENTATION_BOTTOMRIGHT: break; case imagick::ORIENTATION_BOTTOMLEFT: break; case imagick::ORIENTATION_LEFTTOP: break; case imagick::ORIENTATION_RIGHTTOP: $image-rotateImage(tan, 90); break; case imagick::ORIENTATION_RIGHTBOTTOM: break; case imagick::ORIENTATION_LEFTBOTTOM: $image-rotateImage(tan, -90); break; case imagick::ORIENTATION_UNDEFINED: default: break; } echo $image; ? to return an upright picture in response to img class=framed src=Picture.php?PICTURE=some.jpg border=0 I'm not sure why $orientation = $image-getImageProperty(exif:Orientation); would not work with everything else the same. Thanks, Stan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] file_Exists() and case
If $basePicture = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg and the file actually is ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.JPG (uppercase extension) the following snippet of code --- /* make sure the picture file actually exists */ if(!file_Exists($basePicture)) { echo file = ' . $basePicture . ' doesn't exist.br\n; $extStartsAt = strrpos($basePicture, .) + 1; $extOfBasePicture = substr($basePicture, $extStartsAt); $basePicture = substr_replace($extOfBasePicture,strtoupper($extOfBasePicture),$extStartsAt) ; } else { echo file = \ . $basePicture . \ exists.br\n; } --- generates --- file = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg exists. --- The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it? Thanks, Stan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
I absolutely agree. This type of scenario is exactly what they had in mind when they decided to develop Flex technology. And I have no time to experiment or take risk. I did some aditional reading on Flex in the mean time, and I found out that it is fully integratable with existing PHP web application (and other technologies as well such as JSP's, ColdFusion, and ASP's). It's just gonna serve as add-on, and make my application transition from web 1 to web 2 standard. The only catch is that Flex Builder (plug in for Eclipse) has a commercial licence, and Adobe sells it for 250 Euros for standard version (professional is about 600) Robert Cummings wrote: Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. nothing at all was wrong with Stut's suggestion; however us web developers have been boxed in and indeed grown accustomed to using the wrong tools for the job through years of having to bastardise html, javascript and http to do what we want it to, rather that what it was designed for. (/hence ajax!/) In the above scenario you *can* use (x)html to complete the task and get something going, or you can use a tech like flash/flex which was developed primarily for tasks such as this. I'm no going to go into any more detail on this, I'm sure you understand what I mean. Regards! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
[EMAIL PROTECTED] wrote: I absolutely agree. This type of scenario is exactly what they had in mind when they decided to develop Flex technology. And I have no time to experiment or take risk. I did some aditional reading on Flex in the mean time, and I found out that it is fully integratable with existing PHP web application (and other technologies as well such as JSP's, ColdFusion, and ASP's). It's just gonna serve as add-on, and make my application transition from web 1 to web 2 standard. The only catch is that Flex Builder (plug in for Eclipse) has a commercial licence, and Adobe sells it for 250 Euros for standard version (professional is about 600) now adobe have done an interesting thing, the flex 3 builder trial is fully functional for 60 days, giving yuo more than enough time to get on and learn it + make some app's with it, thus letting you use the software to generate the revenue to pay for it. This is what I did and found that within 2 weeks I'd paid for it with time saved and additional work done. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] file_Exists() and case
Stan wrote: If $basePicture = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg and the file actually is ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.JPG (uppercase extension) the following snippet of code --- /* make sure the picture file actually exists */ if(!file_Exists($basePicture)) { echo file = ' . $basePicture . ' doesn't exist.br\n; $extStartsAt = strrpos($basePicture, .) + 1; $extOfBasePicture = substr($basePicture, $extStartsAt); $basePicture = substr_replace($extOfBasePicture,strtoupper($extOfBasePicture),$extStartsAt) ; } else { echo file = \ . $basePicture . \ exists.br\n; } --- generates --- file = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg exists. --- The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it? Thanks, Stan Yes, case matters, but only of the file name, not the extension (I think). The extension is simply a secondary file-type identifier. .jpg = .JPG = .jPg I could be wrong. - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. You didn't mention if you were editing the php.ini file that phpinfo() tells you it is using. Make your changes to that one, and it should be OK. I have this problem a lot with Windows installations for some reason. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
Yes, i do it in that way but nothing changed On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. You didn't mention if you were editing the php.ini file that phpinfo() tells you it is using. Make your changes to that one, and it should be OK. I have this problem a lot with Windows installations for some reason. Ash www.ashleysheridan.co.uk -- Alain --- Windows XP x64 SP2 PostgreSQL 8.3.5 / MS SQL server 2005 Apache 2.2.10 PHP 5.2.6 C# 2005-2008
Re: [PHP] file_Exists() and case
On Sun, 2008-11-23 at 12:24 -0500, Craige Leeder wrote: Stan wrote: If $basePicture = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg and the file actually is ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.JPG (uppercase extension) the following snippet of code --- /* make sure the picture file actually exists */ if(!file_Exists($basePicture)) { echo file = ' . $basePicture . ' doesn't exist.br\n; $extStartsAt = strrpos($basePicture, .) + 1; $extOfBasePicture = substr($basePicture, $extStartsAt); $basePicture = substr_replace($extOfBasePicture,strtoupper($extOfBasePicture),$extStartsAt) ; } else { echo file = \ . $basePicture . \ exists.br\n; } --- generates --- file = ../pictures/2008 west coast trip/2008-06-10 first week at Chris'/DSC_0011.jpg exists. --- The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it? Thanks, Stan Yes, case matters, but only of the file name, not the extension (I think). The extension is simply a secondary file-type identifier. .jpg = .JPG = .jPg I could be wrong. - Craige The extension is part of the filename, so you could have all of the following files in the same directory: image.jpg Image.jpg IMAGE.jpg IMAGE.JPG It's just because Unix-based filesystems allow many more characters to be used as part of the filename, and thus, as upper and lowercase characters are different characters with different ascii codes, it treats them as unique. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
On Sun, 2008-11-23 at 18:32 +0100, Alain Roger wrote: Yes, i do it in that way but nothing changed On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. You didn't mention if you were editing the php.ini file that phpinfo() tells you it is using. Make your changes to that one, and it should be OK. I have this problem a lot with Windows installations for some reason. Ash www.ashleysheridan.co.uk So you've edited the right file, restarted the web server (Apache or IIS) and it's still showing the old configuration. Just a quick question, you're not trying to run PHP on Vista are you, as this has some godawful behaviour on files it deems as system files, and it's an absolute pain to actually try and edit them, even from an admin account! If you are still having troubles and it's not Vista, have you made sure that the libraries (dll files) you are trying to use actually exist? They will usually be in the php directory, or in a sub-folder called extensions. You might need to add the path to the system path to make sure Windows can find them. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
On Sun, Nov 23, 2008 at 6:41 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 18:32 +0100, Alain Roger wrote: Yes, i do it in that way but nothing changed On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. You didn't mention if you were editing the php.ini file that phpinfo() tells you it is using. Make your changes to that one, and it should be OK. I have this problem a lot with Windows installations for some reason. Ash www.ashleysheridan.co.uk So you've edited the right file, restarted the web server (Apache or IIS) and it's still showing the old configuration. Just a quick question, you're not trying to run PHP on Vista are you, as this has some godawful behaviour on files it deems as system files, and it's an absolute pain to actually try and edit them, even from an admin account! If you are still having troubles and it's not Vista, have you made sure that the libraries (dll files) you are trying to use actually exist? They will usually be in the php directory, or in a sub-folder called extensions. You might need to add the path to the system path to make sure Windows can find them. Ash www.ashleysheridan.co.uk basically as you can see in my signature i run a windows x64 Sp2 system. in fact i've checked and realized that som dll are not installed likeL libpq.dll qnd some others. to solve my problem i had to download and install : NuSphere-phped-5.2-php5.2.6-Win32.exe several dll (5 or 6) are not installed from official msi package :-(
Re: [PHP] issue with php.ini
On Sun, 2008-11-23 at 18:44 +0100, Alain Roger wrote: On Sun, Nov 23, 2008 at 6:41 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 18:32 +0100, Alain Roger wrote: Yes, i do it in that way but nothing changed On Sun, Nov 23, 2008 at 6:34 PM, Ashley Sheridan [EMAIL PROTECTED]wrote: On Sun, 2008-11-23 at 17:33 +0100, Alain Roger wrote: Hi, i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i uncomment the following lines: extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x after restaring the whole server apache+postgresql + php, i run a simple phpinfo() and i see nowhere anything about postgresql module or PDO. phpinfo show that it runs based on the php.ini from D:\webserver\php folder and not from c:\windows. which is correct as my php.ini is the the D:\webserver\php folder. so where could be the problem ? thx. You didn't mention if you were editing the php.ini file that phpinfo() tells you it is using. Make your changes to that one, and it should be OK. I have this problem a lot with Windows installations for some reason. Ash www.ashleysheridan.co.uk So you've edited the right file, restarted the web server (Apache or IIS) and it's still showing the old configuration. Just a quick question, you're not trying to run PHP on Vista are you, as this has some godawful behaviour on files it deems as system files, and it's an absolute pain to actually try and edit them, even from an admin account! If you are still having troubles and it's not Vista, have you made sure that the libraries (dll files) you are trying to use actually exist? They will usually be in the php directory, or in a sub-folder called extensions. You might need to add the path to the system path to make sure Windows can find them. Ash www.ashleysheridan.co.uk basically as you can see in my signature i run a windows x64 Sp2 system. in fact i've checked and realized that som dll are not installed likeL libpq.dll qnd some others. to solve my problem i had to download and install : NuSphere-phped-5.2-php5.2.6-Win32.exe several dll (5 or 6) are not installed from official msi package :-( Well, there is no signature on your emails, and sorry, but Windows Vista has just had SP2 released for it, so your Windows x64 SP2 could still be Vista ;) I'm not sure, but it could be failing over the missing libraries. Have you tried making a few minor changes to the php.ini just to make sure they are being recognised at all? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] file_Exists() and case
Stan wrote: The script is running on an UBUNTU v8.04 LAMP server. Case is supposed to matter, isn't it? out of interest try putting clearstatcache() before if(!file_Exists($basePicture)) ps.. sure it should be file_exists all lowercase - perhaps you're choosing to use call the function with a capital letter is throwing php in to some kind of case doesn't matter mode :p Craige Leeder wrote: Yes, case matters, but only of the file name, not the extension (I think). The extension is simply a secondary file-type identifier. .jpg = .JPG = .jPg I could be wrong. # touch test.T # touch test.t # ls test.t test.T -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP causing Script: '/usr/www/...' in httpd-error.log?
Hello all, I get plenty of error messages (100 000+ / day) in my Apache httpd-error.log like the ones shown here [Sun Nov 23 11:34:42 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 11:35:35 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 11:36:07 2008] Script: '/usr/www/example/core/inc/out.php' [Sun Nov 23 11:36:32 2008] Script: '/usr/www/example/core/inc/out.php' I have been trying to figure out what is causing this for a long period of time now but without any luck. The files mentioned are real files and are used a lot by all ligit users visiting the site. They are functioning properly and generates no php errors etc. The error loglevel in Apache is set to error, PHP errors are turned off. What is causing these errors? Any help is appreciated! Thanks. -- Vänliga hälsningar/Best regards Robert Arnesson
Re: [PHP] issue with php.ini
Well if you check my 2nd email you will see my signature :-) but it does not matter... i did several little changes but i'm scared that only modules link to php.exe at the make command status have been loaded. :-( my changes where about modules loading, extension folder, and so on... -- Alain --- Windows XP x64 SP2 PostgreSQL 8.3.5 / MS SQL server 2005 Apache 2.2.10 PHP 5.2.6 C# 2005-2008
Re: [PHP] issue with php.ini
i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x phpinfo() and i see nowhere anything about postgresql module or PDO. [/snip] I've had the same problems with the msi for 5.2.6 on windows boxes; appears to be the php_pdo_pgsql dll that's causing the error. 2 things to do: - check the apache error log to see exactly what php is saying the problem is (bet it's that php_pdo_dll) - make sure you'd don't have the threads extension enabled. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?
robert arnesson wrote: Hello all, I get plenty of error messages (100 000+ / day) in my Apache httpd-error.log like the ones shown here [Sun Nov 23 11:34:42 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 11:35:35 2008] Script: '/usr/www/example/core/js/wall.php' [Sun Nov 23 11:36:07 2008] Script: '/usr/www/example/core/inc/out.php' [Sun Nov 23 11:36:32 2008] Script: '/usr/www/example/core/inc/out.php' I have been trying to figure out what is causing this for a long period of time now but without any luck. The files mentioned are real files and are used a lot by all ligit users visiting the site. They are functioning properly and generates no php errors etc. The error loglevel in Apache is set to error, PHP errors are turned off. What is causing these errors? Any help is appreciated! Thanks. a: no more to the error messages? like on line.. etc? b: have you checked all the code for any calls to error_log()? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?
robert arnesson wrote: What is causing these errors? further thought.. is PHP installed as CGI or SAPI? if CGI have you checked the apache settings to see if the ScriptLog directive is on any where? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham [EMAIL PROTECTED] wrote: i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x phpinfo() and i see nowhere anything about postgresql module or PDO. [/snip] I've had the same problems with the msi for 5.2.6 on windows boxes; appears to be the php_pdo_pgsql dll that's causing the error. 2 things to do: - check the apache error log to see exactly what php is saying the problem is (bet it's that php_pdo_dll) - make sure you'd don't have the threads extension enabled. in fact i'm very surprised because the following modules can not be found even if they are on the right folder. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 any idea ?
[PHP] Re: PHP causing Script: '/usr/www/...' in httpd-error.log?
A. There is no more to the log B. There are no calls to error_log() PHP is installed as CGI, I will check the ScriptLog dir (good tip!). I forgot to mention that this occurres on a few php-files only.. the rest is working fine. And there are no major differences between the files that show up in the log compared to the ones that don't. I have checked the files them selfs over and over.. they are working as expected. /Robert On Sun, Nov 23, 2008 at 7:07 PM, Nathan Rixham [EMAIL PROTECTED] wrote: robert arnesson wrote: What is causing these errors? further thought.. is PHP installed as CGI or SAPI? if CGI have you checked the apache settings to see if the ScriptLog directive is on any where?
Re: [PHP] issue with php.ini
On Sun, Nov 23, 2008 at 7:27 PM, Alain Roger [EMAIL PROTECTED] wrote: On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham [EMAIL PROTECTED] wrote: i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x phpinfo() and i see nowhere anything about postgresql module or PDO. [/snip] I've had the same problems with the msi for 5.2.6 on windows boxes; appears to be the php_pdo_pgsql dll that's causing the error. 2 things to do: - check the apache error log to see exactly what php is saying the problem is (bet it's that php_pdo_dll) - make sure you'd don't have the threads extension enabled. in fact i'm very surprised because the following modules can not be found even if they are on the right folder. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 any idea ? it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311
Re: [PHP] Displaying information from table graphically]
[EMAIL PROTECTED] wrote: Since you already used it, and I have a doubt regarding wheter to use Zend or PDT with Eclipse, what is your opinion on that subject. Official Adobe Flex page recommends using Zend, but Zend is commercial too, and I generally preffer using open source, could I encounter some depenency problems down the road if I opt for PDT? It shouldn't but what is your personal experience with that? personally I have different eclipses for each thing, the flex eclipse builder full package for flex stuff, the pdt all in one with some extras like subversive, RSE etc for php, a uml one with amateras and uml2 tools etc, then a j2ee one. Sticking to the one IDE is great, but different versions and set-ups for each job. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: file_Exists() and case
Let me attack this in a different way. This started because my camera names files whatever.JPG and my thumbnail generator generates thumbnail files whatever.jpg. Given my workstation (upon which I edit code and run a web browser) is W2K and my web server is APACHE2 on UBUNTU, I sometimes have to run out back and scream to maintain my sanity. I do not want whoever (my wife, my kids, maybe even my grandkids) to have to manually change either picture file extensions or generated thumbnail extensions on a mass of pictures they're trying to add to our web site ... over the Internet in some cases. I was attempting to avoid the overhead of generating thumbnails on the fly as I construct a page of thumbnails related to a specific event or subject because I don't know how many thumbnails may be rendered. The subject on which I encountered this problem (for the second time this week) has something in the order of 250 pictures (in several different directories). What I'd really like to be able to do is to detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists BEFORE I generate the anchor tag that contains the thumbnail ... given that every image file has a thumbnail file in a different directory than the image file. I need to try the file identifier from which the thumbnail file identifier was derived and, that failing, try changing the extension. If I can't find it I don't want to put up the thumbnail. How can I do that, please? Do what? Detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists. Thanks, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Fwd: [PHP] issue with php.ini
On Sun, Nov 23, 2008 at 6:57 PM, Nathan Rixham [EMAIL PROTECTED] wrote: i've reinstalled PHP 5.2.6 on my windows XP x64 and as usual i extension=php_mysql.dll extension=php_pdo.dll extension=php_pdo_mysql.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll extension=php_pgsql.dll extension=php_sqlite.dll extension=php_dbg.dll-5.2.x phpinfo() and i see nowhere anything about postgresql module or PDO. [/snip] I've had the same problems with the msi for 5.2.6 on windows boxes; appears to be the php_pdo_pgsql dll that's causing the error. 2 things to do: - check the apache error log to see exactly what php is saying the problem is (bet it's that php_pdo_dll) - make sure you'd don't have the threads extension enabled. in fact i'm very surprised because the following modules can not be found even if they are on the right folder. PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pdo_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library 'D:\\webserver\\PHP\\ext\\php_pgsql.dll' - The specified module could not be found.\r\n in Unknown on line 0 any idea ? it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 so i've downloaded PHP 5.2.5 winzip package and replace 5.2.6 files by 5.2.5 for the following files: php_pdo_pgsql.dll php_pgsql.dll and it works perfectly. so this is clear that something is wronf with those 2 files in the 5.2.6 version. Alain
Re: [PHP] Displaying information from table graphically]
Since you already used it, and I have a doubt regarding wheter to use Zend or PDT with Eclipse, what is your opinion on that subject. Official Adobe Flex page recommends using Zend, but Zend is commercial too, and I generally preffer using open source, could I encounter some depenency problems down the road if I opt for PDT? It shouldn't but what is your personal experience with that? [EMAIL PROTECTED] wrote: I absolutely agree. This type of scenario is exactly what they had in mind when they decided to develop Flex technology. And I have no time to experiment or take risk. I did some aditional reading on Flex in the mean time, and I found out that it is fully integratable with existing PHP web application (and other technologies as well such as JSP's, ColdFusion, and ASP's). It's just gonna serve as add-on, and make my application transition from web 1 to web 2 standard. The only catch is that Flex Builder (plug in for Eclipse) has a commercial licence, and Adobe sells it for 250 Euros for standard version (professional is about 600) now adobe have done an interesting thing, the flex 3 builder trial is fully functional for 60 days, giving yuo more than enough time to get on and learn it + make some app's with it, thus letting you use the software to generate the revenue to pay for it. This is what I did and found that within 2 weeks I'd paid for it with time saved and additional work done. :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Open Project
Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Afternoon, I've had a look through the two frameworks that Alex and Craige have sent through, done a lot of thinking and came to a decision, well more of an idea. I'd be interested in thoughts / comments. What: A light generic framework for php developers, built API style with a public interface (web service) and a private interface (PHP 5 classes). =Base=: 3rd Party WS Integrations: Amazon AWS and S3 services, Yahoo's API's, OpenCalais, Google API's (more..?) Additional Product Integrations: Apache SOLR, ARC2 (for rdf and sparql support?), Doctrine (ORM)? Templating: Smart, other or custom. DB: PDO/Doctrine + contrib to doctrine project as well (or fork?) OR custom ORM built on top of PDO. PHP Client Lib's: HTTP 1.1, SOAP 1.2 (with the ws-* suite), xml-rpc and maybe XMPP? XML: Generic XML Parser using DOM API Object to XML and XML to Object support, aim to add __toXML() for all classes. Specific XML Parsers, XHTML, RSS, ATOM, SOAP, RDF, XML-RPC (maybe XMPP) Specific XML Writers (same as above) Helpers: Some things like a Arrays, HashMaps, Tree class, filesystem negotiation, verification for common data types (emails and the like) Primitive types maybe byte, int, real, string classes too?) - Dates and thoughts on an Arbitary Precision Class as well for the hell of it? Internals: Framework structure and design pattern(s), Generic Object Class with id's etc, Generic Cache Class (unless in ORM layer), interfaces, Exception handler, logging, autoloader(s) etc. An additional I'd like in here is auto initiation via an initiator interface(s) and analysis on all framework classes via reflection to auto initiate classes upon framework load. [probably do all of the above in reverse order eh.. the framework core, all with private api's (eg classes)] Second Layer: (all with private and public api's) After the above a series of generic domain model/business object classes such as user, address, article etc etc built on top of the ORM stuff. tbd! Probably worth getting a load agreed, defined and drawn up in UML. and really no point going any further here.. Thoughts? (open to all obviously) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
Alain Roger wrote: it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 you have to install PostgreSQL since enable extension only is not enough makes sence! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: file_Exists() and case
On 23 Nov 2008, at 18:53, Stan wrote: Let me attack this in a different way. This started because my camera names files whatever.JPG and my thumbnail generator generates thumbnail files whatever.jpg. Given my workstation (upon which I edit code and run a web browser) is W2K and my web server is APACHE2 on UBUNTU, I sometimes have to run out back and scream to maintain my sanity. I do not want whoever (my wife, my kids, maybe even my grandkids) to have to manually change either picture file extensions or generated thumbnail extensions on a mass of pictures they're trying to add to our web site ... over the Internet in some cases. I was attempting to avoid the overhead of generating thumbnails on the fly as I construct a page of thumbnails related to a specific event or subject because I don't know how many thumbnails may be rendered. The subject on which I encountered this problem (for the second time this week) has something in the order of 250 pictures (in several different directories). What I'd really like to be able to do is to detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists BEFORE I generate the anchor tag that contains the thumbnail ... given that every image file has a thumbnail file in a different directory than the image file. I need to try the file identifier from which the thumbnail file identifier was derived and, that failing, try changing the extension. If I can't find it I don't want to put up the thumbnail. How can I do that, please? Do what? Detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists. I don't see the problem. For a start file_exists will do exactly what you're asking for. It will tell you programatically, FOR SURE and FOR CERTAIN, that a specific file exists. That's what it does. I don't understand why you don't generate the thumbnails to have *exactly* the same filename as the actual image. And if you really have to give it a different name, or different case, surely you know the rules around how that works so you can build that logic in when checking for the existence of a file. Or maybe I'm missing something. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: file_Exists() and case
Stan wrote: How can I do that, please? Do what? Detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists. http://uk2.php.net/touch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: file_Exists() and case
This thread began because file_exists() WILL NOT tell that a file exists FOR SURE and FOR CERTAIN if the file you check for happens to be named whatever.jpg and whatever.JPG exists. I know this because IMagick then chokes on whatever.jpg because it DOESN't exist. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: file_Exists() and case
I do NOT want to create an empty file! Nathan Rixham [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Stan wrote: How can I do that, please? Do what? Detect, programmatically, FOR SURE and FOR CERTAIN, that a specific file exists. http://uk2.php.net/touch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: file_Exists() and case
On Sun, 2008-11-23 at 13:12 -0600, Stan wrote: This thread began because file_exists() WILL NOT tell that a file exists FOR SURE and FOR CERTAIN if the file you check for happens to be named whatever.jpg and whatever.JPG exists. I know this because IMagick then chokes on whatever.jpg because it DOESN't exist. If you look at the manual for file_exists, you'll note that someone has created a function that will check if a file exists, and make sure that it is the correct case as well. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
Alain Roger wrote: Alain Roger wrote: it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 you have to install PostgreSQL since enable extension only is not enough makes sence! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yes it's clear but i already had installed postgresql :-( so problem is really located into files of v5.2.6 of PHP. yeah i had the same thing, sent that one without hinking - it's def a 5.2.6 files thing.. only things we have in common is that I'm on a 64bit processor (intel quad) and apache 2.2*, but my os is 32 bit windows vista ultimate -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: file_Exists() and case
Stan wrote: This thread began because file_exists() WILL NOT tell that a file exists FOR SURE and FOR CERTAIN if the file you check for happens to be named whatever.jpg and whatever.JPG exists. I know this because IMagick then chokes on whatever.jpg because it DOESN't exist. a: you really need some manners b: knock up you're own solution, will take 5 minutes tops;* *http://www.tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] issue with php.ini
Alain Roger wrote: it seems that it's a known problem. can someone comment it ? http://www.wampserver.com/phorum/read.php?2,40270,40311 you have to install PostgreSQL since enable extension only is not enough makes sence! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yes it's clear but i already had installed postgresql :-( so problem is really located into files of v5.2.6 of PHP.
Re: [PHP] Re: file_Exists() and case
On 23 Nov 2008, at 19:12, Stan wrote: This thread began because file_exists() WILL NOT tell that a file exists FOR SURE and FOR CERTAIN if the file you check for happens to be named whatever.jpg and whatever.JPG exists. I know this because IMagick then chokes on whatever.jpg because it DOESN't exist. Please don't shout at me, it won't encourage me to help you further. I apologise for misunderstanding, I missed the start of this thread. The realpath function may be the answer to your problem but I don't have time to test it at the moment. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Open Project
Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Afternoon, I've had a look through the two frameworks that Alex and Craige have sent through, done a lot of thinking and came to a decision, well more of an idea. I'd be interested in thoughts / comments. What: A light generic framework for php developers, built API style with a public interface (web service) and a private interface (PHP 5 classes). =Base=: 3rd Party WS Integrations: Amazon AWS and S3 services, Yahoo's API's, OpenCalais, Google API's (more..?) Additional Product Integrations: Apache SOLR, ARC2 (for rdf and sparql support?), Doctrine (ORM)? Templating: Smart, other or custom. DB: PDO/Doctrine + contrib to doctrine project as well (or fork?) OR custom ORM built on top of PDO. PHP Client Lib's: HTTP 1.1, SOAP 1.2 (with the ws-* suite), xml-rpc and maybe XMPP? XML: Generic XML Parser using DOM API Object to XML and XML to Object support, aim to add __toXML() for all classes. Specific XML Parsers, XHTML, RSS, ATOM, SOAP, RDF, XML-RPC (maybe XMPP) Specific XML Writers (same as above) Helpers: Some things like a Arrays, HashMaps, Tree class, filesystem negotiation, verification for common data types (emails and the like) Primitive types maybe byte, int, real, string classes too?) - Dates and thoughts on an Arbitary Precision Class as well for the hell of it? Internals: Framework structure and design pattern(s), Generic Object Class with id's etc, Generic Cache Class (unless in ORM layer), interfaces, Exception handler, logging, autoloader(s) etc. An additional I'd like in here is auto initiation via an initiator interface(s) and analysis on all framework classes via reflection to auto initiate classes upon framework load. [probably do all of the above in reverse order eh.. the framework core, all with private api's (eg classes)] Second Layer: (all with private and public api's) After the above a series of generic domain model/business object classes such as user, address, article etc etc built on top of the ORM stuff. tbd! Probably worth getting a load agreed, defined and drawn up in UML. and really no point going any further here.. Thoughts? (open to all obviously) This all seems a bit complicated, qhich is what I am trying to avoid. Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.9/1806 - Release Date: 22/11/2008 18:59 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Open Project
On Sun, Nov 23, 2008 at 5:34 PM, Alex Chamberlain [EMAIL PROTECTED] wrote: Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Afternoon, I've had a look through the two frameworks that Alex and Craige have sent through, done a lot of thinking and came to a decision, well more of an idea. I'd be interested in thoughts / comments. What: A light generic framework for php developers, built API style with a public interface (web service) and a private interface (PHP 5 classes). =Base=: 3rd Party WS Integrations: Amazon AWS and S3 services, Yahoo's API's, OpenCalais, Google API's (more..?) Additional Product Integrations: Apache SOLR, ARC2 (for rdf and sparql support?), Doctrine (ORM)? Templating: Smart, other or custom. DB: PDO/Doctrine + contrib to doctrine project as well (or fork?) OR custom ORM built on top of PDO. PHP Client Lib's: HTTP 1.1, SOAP 1.2 (with the ws-* suite), xml-rpc and maybe XMPP? XML: Generic XML Parser using DOM API Object to XML and XML to Object support, aim to add __toXML() for all classes. Specific XML Parsers, XHTML, RSS, ATOM, SOAP, RDF, XML-RPC (maybe XMPP) Specific XML Writers (same as above) Helpers: Some things like a Arrays, HashMaps, Tree class, filesystem negotiation, verification for common data types (emails and the like) Primitive types maybe byte, int, real, string classes too?) - Dates and thoughts on an Arbitary Precision Class as well for the hell of it? Internals: Framework structure and design pattern(s), Generic Object Class with id's etc, Generic Cache Class (unless in ORM layer), interfaces, Exception handler, logging, autoloader(s) etc. An additional I'd like in here is auto initiation via an initiator interface(s) and analysis on all framework classes via reflection to auto initiate classes upon framework load. [probably do all of the above in reverse order eh.. the framework core, all with private api's (eg classes)] Second Layer: (all with private and public api's) After the above a series of generic domain model/business object classes such as user, address, article etc etc built on top of the ORM stuff. tbd! Probably worth getting a load agreed, defined and drawn up in UML. and really no point going any further here.. Thoughts? (open to all obviously) This all seems a bit complicated, qhich is what I am trying to avoid. Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.9/1806 - Release Date: 22/11/2008 18:59 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I looked into your framework for a little bit. So far I see a lot of things that would be painful in my daily work if I were using such a thing. The reason everything is so complicated is because people really need complicated, varying things. Lots of projects need to be able to handle authentication or databases differently. I'd say that if you wanted something that is very straight forward, then perhaps you should use an existing framework that has all of the thousands of man hours invested already, but use something like the adapter pattern to make the api interfaces much easier. If you're always going to use one way of doing things, then perhaps just create your own class wrapper that works that exact way. I went down this road too. I developed my own set of tools back in php4 days since we couldn't use php5 at the time. I pulled what I thought were the best ideas at the time from a lot of various frameworks. It ended up okay, but there's a lot of problems. First off there's really not a lot of documentation. Open source frameworks usually have pretty good docs on usage of their code. Secondly, my code coverage is kinda poor because real work got in the way. I just don't have the time to invest into getting things in their best shape. Keeping motivation for such things is hard too. After working on code for 40 hours a week, do I really want to write more of it? Then finally, it's a one man show. There's no community for answering questions, adding features, etc. That is just my experience though. I think it has been a good learning experience for me though. I got to see the strengths and weaknesses of various code bases. Plus lots of different ways of doing the same thing. Good luck to you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how can I make an email bounce
I need to make a bunch of emails bounce in different ways so I can check to see if my script to read a mail box full of bounced emails will work properly. Does any body know how I can do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how can I make an email bounce
I guess you'd need to make the delivery fail. The easiest way to do this is probably fill up the email box. If you have control over the mail server, you could set the quota for that email box to zero. Most other failures are going to be the result of problems that may or may not be easy to replicate even if you control the server. Someone more intimately familiar with email servers might be able to give you some ideas, though. I admit ignorance on most of that. -TG - Original Message - From: Richard Kurth [EMAIL PROTECTED] To: PHP General List php-general@lists.php.net Date: Sun, 23 Nov 2008 16:01:24 -0800 Subject: [PHP] how can I make an email bounce I need to make a bunch of emails bounce in different ways so I can check to see if my script to read a mail box full of bounced emails will work properly. Does any body know how I can do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Open Project
Nathan Rixham wrote: I've had a look through the two frameworks that Alex and Craige have sent through, done a lot of thinking and came to a decision, well more of an idea. I'd be interested in thoughts / comments. Snip definition of a 'framework ;) and really no point going any further here.. Thoughts? (open to all obviously) Modular framework that you can add your own modules to, but provides the base authentication ( also modular ), smarty, ADOdb, mime handling and selectable editors for content? www.bitweaver.org -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/lsces/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php