Re: [PHP] A Strange Problem

2013-06-21 Thread tamouse mailing lists
On Jun 20, 2013 7:20 PM, Tedd Sperling t...@sperling.com wrote: On Jun 20, 2013, at 7:12 PM, Stuart Dallas stu...@3ft9.com wrote: Whatever the reason for this, I'd recommend you always specify a path relative to the current script. In PHP 5.3+: $fcontents =

[PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get: Warning: file(/docs/admin-email.txt) [function.file]: failed to open stream:

Re: [PHP] A Strange Problem

2013-06-20 Thread Matijn Woudt
On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
On 2013-06-20, at 1:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Matijin: My mistake in posting -- I have tried it several different ways including absolute. Nothing works. Cheers, tedd --- On Jun 20, 2013, at 1:43 PM, Matijn Woudt tijn...@gmail.com wrote: On Thu, Jun 20, 2013 at 7:39 PM, Tedd Sperling t...@sperling.com wrote: Hi gang: I have

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 1:44 PM, Bastien phps...@gmail.com wrote: It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set Bastien I think you have something, here's the reports: Works: /home/content/64/cut/html/sdi/tedd/php-mail

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with that one? Cheers and Thanks! tedd _ tedd.sperl...@gmail.com

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 1:57 PM, Tedd Sperling t...@sperling.com wrote: On Jun 20, 2013, at 1:44 PM, Bastien phps...@gmail.com wrote: It sounds like a current working directory issue. Try running a getcwd() in both places to see how they are set Bastien I think you have

Re: [PHP] A Strange Problem

2013-06-20 Thread Bastien
Bastien Koert On 2013-06-20, at 2:14 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with

Re: [PHP] A Strange Problem

2013-06-20 Thread Daniel Brown
On Thu, Jun 20, 2013 at 2:14 PM, Tedd Sperling tedd.sperl...@gmail.com wrote: Bastien: You were right on - by changing the directory to what I needed, everything works. My follow-up question is Why? I have *never* had to specifically tell any script to chdir() -- why with that one?

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
Daniel: I placed it at root and it reports: /home/content/64/cut/html/sdi That's the same path that had problems. tedd _ tedd.sperl...@gmail.com http://sperling.com On Jun 20, 2013, at 2:22 PM, Daniel Brown danbr...@php.net wrote: On Thu, Jun 20, 2013 at 2:14 PM,

Re: [PHP] A Strange Problem

2013-06-20 Thread Marc Guay
Never used it but searching turned up http://php.net/manual/en/function.chdir.php Marc On 20 June 2013 12:57, Tedd Sperling t...@sperling.com wrote: On Jun 20, 2013, at 1:44 PM, Bastien phps...@gmail.com wrote: It sounds like a current working directory issue. Try running a getcwd() in both

Re: [PHP] A Strange Problem

2013-06-20 Thread Stuart Dallas
On 20 Jun 2013, at 18:39, Tedd Sperling t...@sperling.com wrote: Hi gang: I have a very strange problem. I can use this statement in one folder: $fcontents = file('docs/admin-email.txt'); But in a different folder with an exact path having 'docs/admin-email.txt', I get:

Re: [PHP] A Strange Problem

2013-06-20 Thread Tedd Sperling
On Jun 20, 2013, at 7:12 PM, Stuart Dallas stu...@3ft9.com wrote: Whatever the reason for this, I'd recommend you always specify a path relative to the current script. In PHP 5.3+: $fcontents = file(__DIR__.'/docs/admin-email.txt'); Prior to 5.3: $fcontents =

[PHP] Re: Strange Problem: session_set_save_handler

2005-07-08 Thread Thorsten Friedrich
Ok, i try to describe what i´ve done. i have written a sql-wrapper-class wich is used to insert and update the entries in the mysql-table. the mysql-table has the following columns (types) id varchar(255) - holds the session-id data blob - holds the session-data created timestamp - used to

[PHP] A strange problem..

2005-04-03 Thread JoShQuNe \(TR\)
Hi, i have a strange problem. In my site i have to counters for file downloads. One is general, other is weekly. On the main page i display a list sorted according to weekly hits. The problem is there: i give this prompt mysql_query(SELECT * FROM table ORDER BY weekly_hits DESC LIMIT 15) to

[PHP] Re: Strange Problem

2003-07-14 Thread Anthony
You'll get this in IIS if you request a page that should be parsed by the PHP CGI that does not exist. IIS trys to load the script into the CGI but gets no results since there was no page to load. I think it's an IIS bug i.e. you go to www.domain.com/page1.php but there is no page1.php

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
Sorry guys ingore the post, i have narrowed the problem down to a problem with posting the vairables from flash. cheers - - [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone see a problem in this? When i run the script i am getting this error Notice:

[PHP] Re: strange problem (user poll)

2003-01-08 Thread - \[ Paul Ferrie \] -
It seem there is some probs with the latest release of php something about global vars. Jst checked and it works now. It was the php thing right enough. i hope that my server admin have done the same thing with the php.ini cheers guys. - - [EMAIL PROTECTED] wrote in message [EMAIL

[PHP] Re: Strange problem with MAIL

2003-01-06 Thread Manuel Lemos
Hello, On 01/06/2003 08:22 AM, Cesar Aracena wrote: I've been trying to make my way around a complex mailing system for the past couple of days with no success, but now I noticed that I can't just send a simple: mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); I used to make this

[PHP] Re: Strange problem with MAIL (Correction)

2003-01-06 Thread Manuel Lemos
Hello, On 01/06/2003 08:33 AM, Cesar Aracena wrote: I just checked my hotmail account (one of three I'm sending to) and all the emails arrived correctly (sorry for the re-post) but it's not reaching the other two. One of them, I know it has a very poor configuration and can hardly receive

Re: [PHP] Re: Strange problem with PHP,SSI

2002-12-17 Thread sport4ever
[EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, December 15, 2002 10:39 AM Subject: [PHP] Re: Strange problem with PHP,SSI Sport4ever wrote: PHP version: 4.2.1 OS: RedHat Linux 8 Apache version: 2.0 My problem is that I can't execute more than one (SSI include) on my website JUST

[PHP] Re: Strange problem with PHP,SSI

2002-12-14 Thread conbud
Sport4ever wrote: PHP version: 4.2.1 OS: RedHat Linux 8 Apache version: 2.0 My problem is that I can't execute more than one (SSI include) on my website JUST for PHP file.. so there is NO problems at all if I include HTML or SHTML files. Anyway, if I include 2 PHP files into any page, the first

[PHP] Re: Strange problem...

2001-12-01 Thread Edgardo Rossetto
Hola Daniel: Te escribo en castellano ya que veo que el inglés no es tu idioma natural. Creo que el error se produce al concatenar las variables, acordate que para indicar que las variables con cadenas tenés que encerrarlas entre , yo lo definiría así: $user_birthdate =

[PHP] Very strange problem with session files

2001-08-02 Thread Jarek
I have WindowsNT4 Serv PHP 4.0.6/CGI My php.ini includes: (...) session.save_handler = files session.save_path = /tmp session.use_cookies = 1 (...) Problem: When I run PHP script which uses sessions (commands like session_start() etc.) the session file IS created in /tmp BUT cannot be received

[PHP] Cookie Strange Problem - Need Help

2001-07-10 Thread Felipe Moreno
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I set up 2 cookies, one with his name

RES: [PHP] Cookie Strange Problem

2001-07-06 Thread Felipe Moreno
Hi list members! I'm having a strange problem here regarding cookies. First let me explain the scenery: I'm developing a site that have a login system. I'm using PHP , MYSQL and APACHE under MS windows 98 SE. So, when the user login into the first page, I set up 2 cookies, one with his name

[PHP] Troubleshooting Strange Problem

2001-02-22 Thread Ben Ocean
Hi, I moved my server, changed the IP addresses, etc., and now I'm having strange problems with PHP. Not on all scripts, just some. Scripts that worked just fine before I moved it. Most notably, I'm working with Phorm http://holotech.net and I can no longer pass certain variables. Again:

Re: [PHP] Troubleshooting Strange Problem

2001-02-22 Thread Philip Olson
It could have to do with the register_globals setting (within php.ini) as the following : ?php // foo.php?fruit=apple echo $fruit; ? Will print nothing if register_globals is off. The following will print it correctly, whether on or off (assuming track_vars is on) : ?php //