Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Dotan Cohen
On 05/01/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, January 3, 2007 2:41 pm, Dotan Cohen wrote: On 03/01/07, Richard Lynch [EMAIL PROTECTED] wrote: Instead of trying to strip the UTF stuff out, try to capture the part you want: preg_match_all('|[^]|ms', $emails, $output);

[PHP] PHP 4.4.5RC1

2007-01-05 Thread Derick Rethans
Hello! I packed PHP 4.4.5RC1 today, which you can find here: http://downloads.php.net/derick/php-4.4.5RC1.tar.bz2 ee9238175c6b6ecec8712954065451c4 http://downloads.php.net/derick/php-4.4.5RC1.tar.gz 5337c72e3d70fb88b932215957e250f8 Windows binaries will follow suit. Please test it carefully,

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Dotan Cohen
On 05/01/07, Roman Neuhauser [EMAIL PROTECTED] wrote: The syntax is very dense which makes it easy to forget if you don't practise. On the other hand, it's very easy to stay in form: regular expressions are everywhere, even the Perl-compatible ones. I suppose it's rather easy to stay

Re: [PHP] High-Level Design Question, Podcast, Playlists, Content-Rich

2007-01-05 Thread Stut
Richard Lynch wrote: This question is not PHP-specific, really, but is a general high-level sort of programming/design question, and it's being written in PHP, so I guess it's as on-topic as most of what's here... Do feel free to hit delete now if you're a purist. I have an ongoing daily music

[PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Hi, I am running Fedora Core 6 with PHP 5.1.6 This little snippet will output the file is not writable: if (file_exists($file)) { if(!is_writeable($menu_filename)){ echo the file is not writable; } } else echo The file does not exist; I have set the permissions

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 18:01:30 +0700: if (file_exists($file)) { $file if(!is_writeable($menu_filename)){ $menu_filename echo the file is not writable; } } else echo The file does not exist; I have set the permissions to 777 for the file Which of the

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-04 16:19:19 -0600: On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: to grasp, so I use the English version. That may not be a problem for you, but it is for me. Your written English is very good. If

RE: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Edward Kay
Maybe it's because you're testing two different variables, $file and $menu_filename? Edward -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 January 2007 11:02 To: php-general@lists.php.net Subject: [PHP] is_writable() not working on PHP 5.1.6 Hi, I

RE: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Sorry, it should be $file for both as in the more complex code. So the below code is the code that is generating the file is not writable. if (file_exists($file)) { if(!is_writeable($file)){ echo the file is not writable; } } else echo The file does not exist;

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 11:05:48 +0200: On 05/01/07, Roman Neuhauser [EMAIL PROTECTED] wrote: The syntax is very dense which makes it easy to forget if you don't practise. On the other hand, it's very easy to stay in form: regular expressions are everywhere, even the Perl-compatible

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Some additional information: On the running server I am getting this dumped: audit(1168010361.652:217): avc: denied { write } for pid=2924 comm=httpd name=hcat.log dev=dm-0 ino=8718108 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:etc_runtime_t:s0 tclass=file Anyone?

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Some additional information: On the running server I am getting this dumped: audit(1168010361.652:217): avc: denied { write } for pid=2924 comm=httpd name=hcat.log dev=dm-0 ino=8718108 scontext=root:system_r:httpd_t:s0 tcontext=root:object_r:etc_runtime_t:s0

[PHP] Re: [PHP-DEV] PHP 4.4.5RC1

2007-01-05 Thread Edin Kadribasic
Hi, Windows distribution is available at: http://downloads.php.net/edink/php-4.4.5RC1-Win32.zip Edin Derick Rethans wrote: Hello! I packed PHP 4.4.5RC1 today, which you can find here: http://downloads.php.net/derick/php-4.4.5RC1.tar.bz2 ee9238175c6b6ecec8712954065451c4

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread lists
Thanks for your answer, It was a bit late because we already disabled selinux just to try, and it worked :) But hopefully this could help someone that bumps into the same problem. On a live webserver, what security issues would disableing the selinux cause? Any? Best regards, Peter

[PHP] FastCGI optmized Windows build of 5.2.1RC2

2007-01-05 Thread Edin Kadribasic
Hello, I have made a second build of 5.2.1RC2 for Windows with no thread safety enabled. This will only work for non threaded SAPIs such as CGI/FastCGI and CLI. The reason for this is that managing per thread state takes some CPU time from the main task of running PHP scripts making non

[PHP] Re: Re:[PHP]clases en sesiones

2007-01-05 Thread Jo�o C�ndido de Souza Neto
It can be startin a new session on each page. Are you using some header(Location: ???); ? If so, it could be starting a new session. deinet [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, thank you chucre, but this not is the solution, the session.auto_start is On, I don't

RE: [PHP] FastCGI optmized Windows build of 5.2.1RC2

2007-01-05 Thread Vincent DUPONT
hello, thanks for this good news for Win poeple. Do you have any info on what version(s) of IIS/win32 this release soul be used? thank you Vincent Dupont Ausy Belgium -Original Message- From: Edin Kadribasic [mailto:[EMAIL PROTECTED] Sent: Fri 1/5/2007 14:27 To: PHP internals;

Re: [PHP] FastCGI optmized Windows build of 5.2.1RC2

2007-01-05 Thread Edin Kadribasic
Well you can already use PHP/fastcgi with Apache and IIS6 on windows using 3rd party fastcgi modules for these servers. What IIS7 (http://www.iis.net/) brings is native fastcgi implementation. Edin Vincent DUPONT wrote: hello, thanks for this good news for Win poeple. Do you have any info

Re: [PHP] clases en sesiones

2007-01-05 Thread Jochem Maas
deinet wrote: Hello list, i have a problem with sessions and class. I used to work with a server with session.auto_start=Off, and now I had to move all my sites to another server with session.auto_start=On, and I have this problem with the session: Fatal error: Unknown(): The script

Re: [PHP] FastCGI optmized Windows build of 5.2.1RC2

2007-01-05 Thread Edin Kadribasic
Well to correct myself, Microsoft has released their FastCGI module for earlier versions of IIS as well. Take a look at http://www.iis.net/default.aspx?tabid=2subtabid=25i=1207 Edin Edin Kadribasic wrote: Well you can already use PHP/fastcgi with Apache and IIS6 on windows using 3rd party

[PHP] Problem with file reading

2007-01-05 Thread Delta Storm
Hi, I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or die(Could not open file!);

[PHP] What's this image tag for?

2007-01-05 Thread Skip Evans
Hey all, I'm building a site for a client that is using this system called Linkshare to link to web sites for stores and it's one of those deals where they provide the link code so my client gets credit for sending the person to the store's site. Common enough, but there is one thing about

Re: [PHP] What's this image tag for?

2007-01-05 Thread Simon Forster
On 5 Jan 2007, at 14:38, Skip Evans wrote: a href=http://click.linksynergy.com/fs-bin/click? id=5sJlsTOpnzEofferid=115126.1505type=4subid=0IMG alt=Sharper Image border=0 src=http:// www.sharperimagespecials.com/banners/Promos/11_Nov06/ fshproplus_1106_125x125.gif/aIMG border=0 width=1

Re: [PHP] What's this image tag for?

2007-01-05 Thread Skip Evans
I thought it would be something like that. So here's another question I'd appreciate thoughts on: If I have ten of these links on a page, linking to ten different stores, should I include one of these IMG links on each link, just as they say to cut and paste? Or should there only be one per

[PHP] Some advice / points / help

2007-01-05 Thread Steven Macintyre
Hi guys, Some intelligent minds needed again ... I have the following schematic to work to ... http//steven.macintyre.name/arb/showlineups.jpg I need to fill that with data from a mysql table ... The format of the table is as follows; CREATE TABLE `kayasite_schedule` ( `id` int(11) NOT

Re: [PHP] Some advice / points / help

2007-01-05 Thread Jochem Maas
Steven Macintyre wrote: Hi guys, Some intelligent minds needed again ... I dont think I count - mostly because I don't even understand the question. I have the following schematic to work to ... http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here:

RE: [PHP] Some advice / points / help

2007-01-05 Thread Edward Kay
http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here: http://www.w3.org/Protocols/ is .name even a top level domain? did that happen whilst I was sleeping? Looks like something is wrong with your DNS Jochem :) I can see the image fine. .name has been

RE: [PHP] Some advice / points / help

2007-01-05 Thread Edward Kay
http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here: http://www.w3.org/Protocols/ is .name even a top level domain? did that happen whilst I was sleeping? Looks like something is wrong with your DNS Jochem :) I can see the image fine.

[PHP] Re: Problem with file reading

2007-01-05 Thread Fahad Pervaiz
===ORIGINAL=== Hi, I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;;http://localhost/test_folder/test1.txt//I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or die(Could not open file!); $data =

Re: [PHP] Some advice / points / help

2007-01-05 Thread David Giragosian
So the question is... How to grab data from the DB and create a jpg from it, looking pretty like http://steven.macintyre.name/arb/showlineups.jpg (I added the colon ;-) ) ?? David

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or die(Could not open file!); $data = fread($fh,

Re: [PHP] What's this image tag for?

2007-01-05 Thread Stut
Skip Evans wrote: I thought it would be something like that. So here's another question I'd appreciate thoughts on: If I have ten of these links on a page, linking to ten different stores, should I include one of these IMG links on each link, just as they say to cut and paste? Or should

Re: [PHP] Some advice / points / help

2007-01-05 Thread Stut
Jochem Maas wrote: Steven Macintyre wrote: I have the following schematic to work to ... http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here: http://www.w3.org/Protocols/ is .name even a top level domain? did that happen whilst I was

Re: [PHP] What's this image tag for?

2007-01-05 Thread Skip Evans
Stut wrote: That's really a question for the ad company to answer according to their policy. You'll probably an answer in their instructions somewhere. We can't give you an authoritative answer on a specific company's policy. Good point. I finally was able to track down their contact info

[PHP] Arrays help

2007-01-05 Thread William Stokes
Hello, I'm making a menu script that uses mysql, php and javascript to build a on mouse over dropdown menu to a page. I ran into some problems and would need help to get this working. (This is just the top level of the menusystem) 1. Get the toplevel links from DB, create array and put values

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh = fopen($file, r) or

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried test_folder/test1.txt and text1.txt $fh

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file = http://localhost/test_folder/test1.txt;; //I have also tried

Re: [PHP] Some advice / points / help

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:37:27 +0100: Steven Macintyre wrote: http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here: http://www.w3.org/Protocols/ is .name even a top level domain? did that happen whilst I was sleeping? That's because of

Re: [PHP] Problem with file reading

2007-01-05 Thread Stut
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 17:17:46 +: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:34:41 +: Delta Storm wrote: I'm a beginner and i'm still learning PHP and I got a problem: $file =

Re: [PHP] Port Block

2007-01-05 Thread Craige Leeder
You could do a hackish work around and write a small server program that is hosted off your computer, maybe on a friend's host/server. Then, you could have your application on your local machine open some other port to connect to the off-site server, and have it send the email data to that

Re: [PHP] Problem with file reading

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 17:40:49 +: Using mod_php with Apache will make the current directory the directory that contains the script being requested. I am assuming that the OP is trying to access the file from the script that is being requested and not an included file in a

[PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Morris
Hi, I am having this problem that I hope can be worked around. I make a connection to our MySQL database using the object version of mysqli. If access is denied because of an incorrect username or password, mysqli displays an error. Is there any way to suppress the error message? Here is

[PHP] Still problem with file reading

2007-01-05 Thread Delta Storm
Hi, I wrote a while back saying of my problem... I tried to read a file I tried in a couple of ways and i posted a question on this newsgroup and a couple of people helped me (btw, thank you for help) and they suggested a few other ways I tried all possible ways and i could read a file it

[PHP] Re: Still problem with file reading

2007-01-05 Thread Al
You probably have a owner and/or permissions problem. Try setting the dir to 777. Read fopen() in the php manual. There are dozens of user notes on the subject. Delta Storm wrote: Hi, I wrote a while back saying of my problem... I tried to read a file I tried in a couple of ways and i

Re: [PHP] Re: Still problem with file reading

2007-01-05 Thread David Giragosian
Why don't you start by running file_exists() on another file in the same directory: if (file_exists(./findMe.php)) echo It's here; then, directory by directory, move towards where you want the real file to be read. If a move fails, check permissions as already suggested ( and

[PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread spam
Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has also a subdirectory c with an index.php file in it and in b we habe a symbolic link to a/c. On the shell it looks like this: , | /htdocs/testls -gG * | a:

Re: [PHP] Arrays help

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 18:48 +0200, William Stokes wrote: Hello, I'm making a menu script that uses mysql, php and javascript to build a on mouse over dropdown menu to a page. I ran into some problems and would need help to get this working. (This is just the top level of the menusystem)

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Jochem Maas
reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has also a subdirectory c with an index.php file in it and in b we habe a symbolic link to a/c. On the

Re: [PHP] Some advice / points / help

2007-01-05 Thread Jochem Maas
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-05 16:37:27 +0100: Steven Macintyre wrote: http//steven.macintyre.name/arb/showlineups.jpg that URL make my browser end up here: http://www.w3.org/Protocols/ is .name even a top level domain? did that happen whilst I was sleeping?

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: reply at the bottom ... (Karl Pflästerer) wrote: Hi let's say we have the follwing directory structure: directory test, with to subdirectories: a and b; both have ssi subdirectory; a has also a subdirectory c with an index.php file

Re: [PHP] Still problem with file reading

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 12:45 pm, Delta Storm wrote: I wrote a while back saying of my problem... I tried to read a file I tried in a couple of ways and i posted a question on this newsgroup and a couple of people helped me (btw, thank you for help) and they suggested a few other ways I

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: I am having this problem that I hope can be worked around. I make a connection to our MySQL database using the object version of mysqli. If access is denied because of an incorrect username or password, mysqli displays an error. Is

Re: [PHP] Some advice / points / help

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 9:07 am, Steven Macintyre wrote: Hi guys, Some intelligent minds needed again ... I have the following schematic to work to ... http//steven.macintyre.name/arb/showlineups.jpg I need to fill that with data from a mysql table ... The format of the table is as

[PHP] RE : [PHP] Still problem with file reading

2007-01-05 Thread Vincent DUPONT
You cite a windows path to your txt file.I warn you that you need to write c:\ as c:/, because the \ is the escapechar into a string so, to point to C:\Program Files\XAMPP\xampp\htdocs\test_folder\test1.txt from php you need: $file_path = C:\\Program

Re: [PHP] What's this image tag for?

2007-01-05 Thread Richard Lynch
It makes it look like you displayed an advertisement, even though you shrunk it down to 1x1, so it's not generally noticeable to the user. Often used for tracking a user across domains for legitimate and illegitimate purposes, and for racking up pennies for showing ads without actually showing

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Richard Lynch
WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. On Fri, January 5, 2007 7:04 am, deinet wrote: Hi, thank you chucre, but this not is the solution, the

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2007-01-05 at 22:07 +0100, Jochem Maas wrote: ... ` In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? I have tested using your exact description and get the

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:01 am, [EMAIL PROTECTED] wrote: I am running Fedora Core 6 with PHP 5.1.6 This little snippet will output the file is not writable: if (file_exists($file)) { if(!is_writeable($menu_filename)){ Did you really intend to switch from $file to $menu_filename ???

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 8:26 pm, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-04 18:45:07 -0600: On Thu, January 4, 2007 6:17 pm, Roman Neuhauser wrote: Ok, but what harm has been done? something() presumably did the fopen() for a reason, and couldn't work without the file handle

[PHP] Posix Shared Memory Support?

2007-01-05 Thread David George
I have an application on Linux 2.6.9 which uses posix shared memory and I need to access the shared memory via a web page using php. Looks like PHP only supports System V shared memory, which isn't an option for me in this case. Thanks, -- David George Hark Technologies http://harktech.com

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Jochem Maas
Richard Lynch wrote: On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: I am having this problem that I hope can be worked around. I make a connection to our MySQL database using the object version of mysqli. If access is denied because of an incorrect username or password, mysqli

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Stut
Richard Lynch wrote: WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. Nice idea, unfortunately it doesn't work that way. In order to have the __autoload

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread Jochem Maas
David George wrote: I have an application on Linux 2.6.9 which uses posix shared memory and I need to access the shared memory via a web page using php. Looks like PHP only supports System V shared memory, which isn't an option for me in this case. is this what your looking for?

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread David George
On 1/5/2007 5:41 PM, Jochem Maas wrote: David George wrote: I have an application on Linux 2.6.9 which uses posix shared memory and I need to access the shared memory via a web page using php. Looks like PHP only supports System V shared memory, which isn't an option for me in this case.

[PHP] Problem with copy() function

2007-01-05 Thread R B
Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? Thanks,

Re: [PHP] IE, Word documents and Content Types

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 8:09 pm, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-04 23:36:44 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-03 15:48:31 -0600: On Wed, January 3, 2007 2:52 pm, Philip Thompson wrote: I have a form where a user can upload different types of

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread Jochem Maas
David George wrote: On 1/5/2007 5:41 PM, Jochem Maas wrote: David George wrote: I have an application on Linux 2.6.9 which uses posix shared memory and I need to access the shared memory via a web page using php. Looks like PHP only supports System V shared memory, which isn't an option

Re: [PHP] Problem with copy() function

2007-01-05 Thread Jochem Maas
R B wrote: Hi, I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) ^ -- your missing a slash (although that shouldn't be the problem) and have this error: *Warning*: Wrong parameter count for copy() in

Re: [PHP] Removing UTF-8 from text

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 6:30 pm, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-04 16:19:19 -0600: On Thu, January 4, 2007 2:28 am, Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-04 08:21:37 +0200: to grasp, so I use the English version. That may not be a problem for you, but

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 2:47 pm, Karl Pflästerer wrote: In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? The PHP version is 5.1.6 (will soon be updated). Honestly... My answer would be Don't do

Re: [PHP] Question regarding include() and symlinks to directories

2007-01-05 Thread Richard Lynch
On Thu, January 4, 2007 2:47 pm, Karl Pflästerer wrote: In my opinion include() should respect symlinks to directories and not dereference them before finding the file to include. Or am I wrong here? The PHP version is 5.1.6 (will soon be updated). WHOOPS! My fingers slipped and I keyboarded

Re: [PHP] E_RECOVERABLE_ERROR - 5.1.6 to 5.2.0

2007-01-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-05 16:29:04 -0600: Pretend you are using some library of software with a lot of code, and you have a lot of your own code. There are try/catch blocks all over the place. The library does something with try/catch, and you don't like the way it handles the

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:09 pm, Jochem Maas wrote: David George wrote: On 1/5/2007 5:41 PM, Jochem Maas wrote: David George wrote: I have an application on Linux 2.6.9 which uses posix shared memory and I need to access the shared memory via a web page using php. Looks like PHP only

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 4:36 pm, Stut wrote: Richard Lynch wrote: WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. Nice idea, unfortunately it doesn't work

Re: [PHP] is_writable() not working on PHP 5.1.6

2007-01-05 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks for your answer, It was a bit late because we already disabled selinux just to try, and it worked :) But hopefully this could help someone that bumps into the same problem. On a live webserver, what security issues would disableing the selinux cause? Any?

Re: [PHP] Problem with copy() function

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 5:01 pm, R B wrote: I'm trying to copy a file like this: copy(home/xxx/public_html/yyy/zzz/index.php, home/xxx/public_html/yyy/www/index.php) and have this error: *Warning*: Wrong parameter count for copy() in */home/.* Someone can help me please? You are

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: sidenote: where exactly do you put the @ to suppress the error in this line?: $db = new mysqli('localhost', 'user', 'badpass', 'test'); Since it is the 'new' operator which is issuing the WARNING, as far as I can tell, you should put it in

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Lynch
On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: Richard Lynch wrote: On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: I am having this problem that I hope can be worked around. I make a connection to our MySQL database using the object version of mysqli. If access is denied

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Jochem Maas
Richard Lynch wrote: On Fri, January 5, 2007 4:36 pm, Stut wrote: Richard Lynch wrote: WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. Nice idea,

[PHP] RE: [PHP-DEV] FastCGI optmized Windows build of 5.2.1RC2

2007-01-05 Thread Andi Gutmans
Edin, Thanks for taking care of this! Andi -Original Message- From: Edin Kadribasic [mailto:[EMAIL PROTECTED] Sent: Friday, January 05, 2007 5:28 AM To: PHP internals; php-general@lists.php.net Subject: [PHP-DEV] FastCGI optmized Windows build of 5.2.1RC2 Hello, I have made

Re: [PHP] Re:[PHP]clases en sesiones

2007-01-05 Thread Stut
Richard Lynch wrote: On Fri, January 5, 2007 4:36 pm, Stut wrote: Richard Lynch wrote: WILD GUESS Search on php.net for __autoload I think that will let you figure out a way to get the auto_start session to automatically load your .class.php files, when it needs them. Nice idea,

Re: [PHP] How to suppress error messages when using 'new mysqli(...)'

2007-01-05 Thread Richard Morris
Richard Lynch wrote: On Fri, January 5, 2007 4:35 pm, Jochem Maas wrote: Richard Lynch wrote: On Fri, January 5, 2007 12:29 pm, Richard Morris wrote: I am having this problem that I hope can be worked around. I make a connection to our MySQL

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread David George
On 1/5/2007 6:25 PM, Richard Lynch wrote: snip The User Contributed Notes (*always* read those!) make it clear that shmod is NOT Sys V. It looks like it's not POSIX either, but I could be reading too much into it... Seems more similar to POSIX than Sys V, from my limited

[PHP] Problem with displaying image

2007-01-05 Thread Budi Setiawan
hi, im Budi, recently i have some problems here with displaying jpeg image in firefox browser. at first, when i tested my web page using IE it jsut works fine, but when i decided to test it using Firefox 2 the problem occurs. some of my images left undisplayed. but the things that i cant still

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: hi, im Budi, recently i have some problems here with displaying jpeg image in firefox browser. at first, when i tested my web page using IE it jsut works fine, but when i decided to test it using Firefox 2 the problem occurs. some of my images left undisplayed. but the

Re: [PHP] Posix Shared Memory Support?

2007-01-05 Thread Jochem Maas
David George wrote: On 1/5/2007 6:25 PM, Richard Lynch wrote: snip The User Contributed Notes (*always* read those!) make it clear that shmod is NOT Sys V. It looks like it's not POSIX either, but I could be reading too much into it... Seems more similar to POSIX than Sys V, from my

[PHP] newbie question regarding URL parameters

2007-01-05 Thread Jim the Standing Bear
Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=meage=27 and my script would use $name to get the value for name and $age to get the value for age. Everything

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Nicholas Yim
Hello Jim the Standing Bear, register_global try use $name=$_GET['name']; $age=$_GET['age']; Best regards, === At 2007-01-06, 10:05:40 you wrote: === Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread tg-php
You'll probably get 50 answers to this, but here's probably what happened. There's a setting called register globals that will turn your name=me and age=27 into $name = me and $age = 27. It used to be turned ON by default. This was generally considered to be bad security, so it now defaults

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=meage=27 and my script would use $name to

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Jim the Standing Bear
Thanks, everyone. Yeah, I really need to dig myself out of the sand. :D On 1/5/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Ryan Fielding
Robert Cummings wrote: On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=meage=27 and my script

Re: [PHP] Problem with displaying image

2007-01-05 Thread Budi Setiawan
do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks

Re: [PHP] Problem with displaying image

2007-01-05 Thread Jim Lucas
Budi Setiawan wrote: do you have an example/page that we can look at? here is one of them : http://10.126.11.246/schematics2007/main_logic.php and the image URL : http://10.126.11.246/schematics2007/image/banner/mainlog.jpg all will be be displayed in an unusual manner in FFox.. thanks

[PHP] php, curl and aol addressbook import problem

2007-01-05 Thread Iqbal Naved
Hi, I am desparately looking for a solution for importing address book from aol webmail to my browser. I found some commercial solution (such as, http://svetlozar.net) which was done using cURL. But couldnt find any php classes to implement it. Anyone can help me how to implement this ? As far