php-general Digest 26 Feb 2006 20:15:09 -0000 Issue 3986

2006-02-26 Thread php-general-digest-help
php-general Digest 26 Feb 2006 20:15:09 - Issue 3986 Topics (messages 231096 through 231112): Parsing PHP variables in XML document 231096 by: Ivan Nedialkov 231100 by: Bogdan Ribic 231101 by: Bogdan Ribic 231104 by: chris smith Re: How do I read Exif data

Re: [PHP] Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-26 Thread Curt Zirzow
On Sat, Feb 25, 2006 at 01:41:06PM -0900, Chris Lott wrote: I'm making the switch from Windows to Linux for mydesktop and development environment and would greatly appreciate suggestions for development tools on this platform. Ubuntu seems to be getting all the press, but suggestions about

[PHP] Parsing PHP variables in XML document

2006-02-26 Thread Ivan Nedialkov
Hi, I have the following problem. I want to import data into my site via PHP XML Parser, but I also want to include php string variables into the .xml file and when the xml file is parsed the variables are replaced whit the corresponding string. So far all my attempts have been unsuccessful.

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-26 Thread Sameer N Ingole
Niels wrote: I think you misunderstand the situation. [snip] I've got a database of images (image data) and their exif data, I'm not uploading any files. I want to make new entries in that DB, new images that are thumbnails of the present images. I can do that without creating files, but I

Re: [PHP] How can I make postgre execute file with SQL code, on windows platform

2006-02-26 Thread Bogdan Ribic
Hi Chris, Goal was to get postgre to execute/import an sql dump file, ie not to write import-export functionality myself. In the end, I used piping, something like this: system(type $filename | \C:\Program Files\PostgreSQL\8.1\bin\psql.exe\ -h localhost -p 5432 X6tmp \postgres\);

Re: [PHP] How can I make postgre execute file with SQL code, on windows platform

2006-02-26 Thread chris smith
Goal was to get postgre to execute/import an sql dump file, ie not to write import-export functionality myself. In the end, I used piping, something like this: system(type $filename | \C:\Program Files\PostgreSQL\8.1\bin\psql.exe\ -h localhost -p 5432 X6tmp \postgres\); But thanx

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
Hi Ivan, You might be able to use output buffering in conjunction with including your xml file. Something like: ob_start(); include $xml_file; $content = ob_end_flush(); and then parse the $content string. If you are doing this from within a function and you want access to global

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
Hmmm, come to think of it, it would only work if short_open_tags ini directive is turned OFF, which in most cases it won't be :( Bogdan Ribic wrote: Hi Ivan, You might be able to use output buffering in conjunction with including your xml file. Something like: ob_start(); include

[PHP] Cookies in non-frame sites

2006-02-26 Thread emil
Hello, Most sites today seems to be based on this style: include(top); include(current_page); include(bottom); If one wants to set cookies from current_page, how should that be handled with as clean source as possible? Before I had the top and bottom output as functions that are called from

Re: [PHP] Cookies in non-frame sites

2006-02-26 Thread chris smith
Most sites today seems to be based on this style: include(top); include(current_page); include(bottom); If one wants to set cookies from current_page, how should that be handled with as clean source as possible? From the php manual: Like other headers, cookies must be sent before any

Re: [PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread chris smith
On 2/26/06, Bogdan Ribic [EMAIL PROTECTED] wrote: Hmmm, come to think of it, it would only work if short_open_tags ini directive is turned OFF, which in most cases it won't be :( You can turn it off with a htaccess file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Cookies in non-frame sites

2006-02-26 Thread Bogdan Ribic
You can also use output buffering, write cookies from anywhere, and at the end of execution buffers will auto-flush. [EMAIL PROTECTED] wrote: Hello, Most sites today seems to be based on this style: include(top); include(current_page); include(bottom); If one wants to set cookies from

[PHP] Re: Linux distributions and tools for Linux/Apache/PHP/MySQL dev

2006-02-26 Thread Jens Kleikamp
Chris Lott wrote: I'm making the switch from Windows to Linux for mydesktop and development environment and would greatly appreciate suggestions for development tools on this platform. Ubuntu seems to be getting all the press, but suggestions about Linux distributions are welcome as well! c

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-26 Thread tedd
Sameer said: To get the thumbnails you must rewrite the resized file to some place (if you want real thumbnail image). No, that's not correct. You can take an image from a db, create a thumbnail while it is in memory and display it. You don't need to make it a file first. tedd --

[PHP] installing freetds

2006-02-26 Thread blackwater dev
I am a linux newbie but just compiled freetds on my fedora box. I used the basic options: ./configure make make install make clean According to the docs it should install to /usr/local/freetds After all this I don't have a freetds folder in /local/. If I go into /usr/local/bin, I do have a

[PHP] Re: email to db

2006-02-26 Thread Manuel Lemos
Hello, on 02/24/2006 11:28 PM Mark said the following: Does anyone know if its possible or how difficult it would be to have a user send an email from outlook express to a websites mysql database and update records. If the message goes to an address with a POP3 mailbox, you can always get the

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-26 Thread Sameer N Ingole
tedd wrote: Sameer said: To get the thumbnails you must rewrite the resized file to some place (if you want real thumbnail image). No, that's not correct. You can take an image from a db, create a thumbnail while it is in memory and display it. You don't need to make it a file first. That

Re: [PHP] PHP upgrade on Go Daddy virtual server

2006-02-26 Thread Gerry Danen
Have you tried GoDaddy support? On 2/25/06, Nicolas Verhaeghe [EMAIL PROTECTED] wrote: Has anybody heard (or done it himself) how to upgrade PHP on a Go Daddy virtual server? Current version is 4.3.11 and I'd like to upgrade to 5.1.2. All I know is that this server is a Red Hat Fedora 2.

RE: [PHP] Expat + PHP Examples...

2006-02-26 Thread Weber Sites LTD
I'm not sure if this is the same thing (expat and patxml) http://www.weberdev.com/ViewArticle-441.html http://www.weberdev.com/ViewArticle-444.html berber -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:19 AM To: PHP General

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Ivan Nedialkov
Well isn't there a way instead of using only variables, to use sth like ?php echo $foo; ? I tried it but it doesnt work The parser returns blank! On Sun, 2006-02-26 at 12:02 +0100, Bogdan Ribic wrote: Hmmm, come to think of it, it would only work if short_open_tags ini directive is turned

RE: [PHP] PHP upgrade on Go Daddy virtual server

2006-02-26 Thread Nicolas Verhaeghe
Can't help. They basically tell you you are on your own. -Original Message- From: Gerry Danen [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 12:15 PM To: Nicolas Verhaeghe Cc: PHP General (E-mail) Subject: Re: [PHP] PHP upgrade on Go Daddy virtual server Have you tried

[PHP] recompiling php

2006-02-26 Thread blackwater dev
I am trying to recompile php 5 with freetds so am using this : ./configure '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-mysql=/root/mysql-standard-4.1.9-pc-linux-gnu-i686' '--with-mssql=/usr/local/freetds' Things seem ok so I do make and at the end of make I get this error:

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-26 Thread tedd
tedd wrote: Sameer said: To get the thumbnails you must rewrite the resized file to some place (if you want real thumbnail image). No, that's not correct. You can take an image from a db, create a thumbnail while it is in memory and display it. You don't need to make it a file first. That

Re: [PHP] Re: How do I read Exif data without a file?

2006-02-26 Thread Niels
On Sunday 26 February 2006 10:59, Sameer N Ingole wrote: In PHP its not easy to keep EXIF data of JPEG or TIF files as it is if you use PHP functions to recreate the temporary files in some dir. Basically when you use tempnam() it creates a temporary file. To get the thumbnails you must

Re: [PHP] PHP upgrade on Go Daddy virtual server

2006-02-26 Thread John Nichel
Nicolas Verhaeghe wrote: Can't help. They basically tell you you are on your own. http://us2.php.net/manual/en/install.php -- By-Tor.com ...it's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Parsing PHP variables in XML document

2006-02-26 Thread Bogdan Ribic
Ivan, Did you try entering the code with debugger, or at least printing out what output buffer was holding, ie $content var in my example? Can you post exact code? Also, is short_tags turned on or off in php.ini? If it is on, php will get confused on first line of your xml file, it will

[PHP] Constant Scope

2006-02-26 Thread Adrian Cid Almaguer
Can I give visibility to a class constan. some thing like this class foo { } -- *** Si se encuentra bien, no se preocupe. Se le pasarĂ¡.

[PHP] Constant Scope

2006-02-26 Thread Adrian Cid Almaguer
Can I give visibility to a class constant. something like this class foo { private const = aaa; protected const = bbb; public const = ccc; } I dont want the user of my class can access to the constant. and I cant use public static fields because I dont want the content can be modified

Re: [PHP] Constant Scope

2006-02-26 Thread Chris
Adrian Cid Almaguer wrote: Can I give visibility to a class constant. something like this class foo { private const = aaa; protected const = bbb; public const = ccc; } I dont want the user of my class can access to the constant. and I cant use public static fields because I dont want

[PHP] mail function

2006-02-26 Thread Mohsen Pahlevanzadeh
Dear all, I wanna mail to x user that x can't see my IP address. Do you know same function? --Mohsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] QUARANTINED:

2006-02-26 Thread WorkgroupMail Content Filter
The message from Post Office, sent on 2/27/2006 05:43 was quarantined because it contained either an executable file, a batch file or a screen saver file. All of these types of attachments are considered security risks. Please consult your mail administrator who can release the message. --

[PHP] PHP and Unicode

2006-02-26 Thread Foofy
I learned PHP from an old O'Reilly book, and regarding Unicode it said PHP's strings are always encoded in UTF-8. Since then I never gave it much thought, though I see a lot of ranting and wailing about lack of Unicode support in PHP. I also see a bunch of articles about work-arounds and