[PHP] Re: Simple File Error

2003-09-01 Thread Catalin Trifu
Hi, Does the user under wich the Apache server runs (implicitly PHP) has write access to those directories ? Cheers, Catalin Seth Willits [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Warning: imagejpeg(): Unable to open

php-general Digest 31 Aug 2003 23:38:33 -0000 Issue 2270

2003-09-01 Thread php-general-digest-help
php-general Digest 31 Aug 2003 23:38:33 - Issue 2270 Topics (messages 161291 through 161326): Re: PHP SESSION timeouts 161291 by: Catalin Trifu Re: manual/eng 161292 by: Paul Marinas 161294 by: David 161296 by: David 161298 by: David Re: Help with

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Seth Willits
On Sunday, August 31, 2003, at 04:38 PM, Catalin Trifu wrote: Does the user under wich the Apache server runs (implicitly PHP) has write access to those directories ? Hmm... I don't know. Not exactly sure how Apache runs under OS X. I see a handful of httpd processes which are under the

Re: [PHP] Foring a file download *and* page reload

2003-09-01 Thread Jean-Christian IMbeault
Marek Kilimajer wrote: But because explorer does not support multipart/mixed and it is still the major browser (thought not for long ;), do it this way. Output header('Refresh: 0; url=download.zip'); first and then load the html page with new data blocks. Sorry if the solution is obvious

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Catalin Trifu
Hi, The user root is the which starts the main apache process, the others are the actual servers spawn by the first one. So the user under which apache runs is www. This means that you need to grand write access to those directory to the user www, and or the group (www i suppose)

[PHP] Cookie, how to name

2003-09-01 Thread John Taylor-Johnston
-- John Taylor-Johnston - If it's not open-source, it's Murphy's Law. ' ' ' Collège de Sherbrooke: ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/ - Université de Sherbrooke:

[PHP] Cookie, how to name

2003-09-01 Thread John Taylor-Johnston
Sorry, hit sent by accident :) I have a cookie: if (!isset($_COOKIE[weather_htm])) But I want the name of the cookie to include $StudentId like this: if (!isset($_COOKIE[weather_htm.$StudentId])) Of course, the line does not read the cookie. What is the problem with my syntax please? John

[PHP] parent classes

2003-09-01 Thread Cristiano Duarte
I want to iterate through parents of some class. The function get_parent_class is not enough since it retrieves only the first parent of an instance. Is there a way to retrieve the parents of a class without having an instance of this class ? And if I have an instance, can I retrieve all parent

Re: [PHP] parent classes

2003-09-01 Thread daniel
I think i know what you mean, when you are using a sub class and you want to use functions of a base class i find i have to do this to make it work in the sub class constructor parent::HTTP_Register; I want to iterate through parents of some class. The function get_parent_class is not enough

Re: [PHP] Cookie, how to name

2003-09-01 Thread Chris Shiflett
--- John Taylor-Johnston [EMAIL PROTECTED] wrote: if (!isset($_COOKIE[weather_htm.$StudentId])) $_COOKIE[weather_htm$StudentId] Hope that helps. Chris = Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List

Re: [PHP] WYSIWYG online editor for Macintosh?

2003-09-01 Thread Joel Rees
The client is using OS9 and OSX so I need to find something that works with both. It's looking like Java at this moment in time. You will need to be aware -- Java on Mac OS 9 is somewhat limited. Look up MRJ on Apple's tech pages. You will definitely want to test separately on Mac OS 9 and

Re: [PHP] WYSIWYG online editor for Macintosh?

2003-09-01 Thread Justin French
I think this is at the point where you might need to cut your losses, and look for a good, lightweight WYSIWYG editor application for OS9 (free/share ware) that you can load on their systems... they can simply cut-and-paste from the textarea to their editor and back. This way the OS X (OSX has

[PHP] cookie crumbles

2003-09-01 Thread John Taylor-Johnston
I create this cookie, using Javascript:: testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1 If the browser is reloaded, I want php to read the cookie and do my else statement. Even after a browser shut-down and restart, I cannot get PHP to read the cookie (first part of my if

Re: [PHP] manual/eng

2003-09-01 Thread php
On Sun, Aug 31, 2003 at 02:38:45PM +0300, Paul Marinas wrote: Hi all, Thanks to all of you that answered That was nice and will get me started. regards Metta try http://www.php.net/download-docs.php u have a link there for diferent languages -- A saying of the Buddha from http://metta.lk/

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Seth Willits
On Sunday, August 31, 2003, at 05:01 PM, Catalin Trifu wrote: Hi, The user root is the which starts the main apache process, the others are the actual servers spawn by the first one. So the user under which apache runs is www. This means that you need to grand write access to those

[PHP] Refresh a frame based on a condition in another frame?

2003-09-01 Thread Ronald van Raaphorst
Hi all, I have header, a menu and a content frame. The header should not be refreshed. The menu dislays a menu (menu.php?menuid=x) from a mysql menu database, and should be refreshed based on a condition. The content frame (content.php?[article=x | table=y]) displays either an article or some

Re: [PHP] Refresh a frame based on a condition in another frame?

2003-09-01 Thread Raditha Dissanayake
Hi, It's not very clear from your message what you are trying to do. If you are trying to just reload some of the frames instead of the whole frameset look at the 'target' attribute for 'A' element in html. Ronald van Raaphorst wrote: Hi all, I have header, a menu and a content frame. The

Re: [PHP] cookie crumbles

2003-09-01 Thread Jaap van Ganswijk
At 2003-09-01 00:49 -0400, John Taylor-Johnston wrote: I create this cookie, using Javascript:: testals.flsh.usherb.ca FALSE / FALSE 1062433227 weather.htm9995 1 If the browser is reloaded, I want php to read the cookie and do my else statement. Even after a browser shut-down and restart, I

[PHP] Unique yet Eerie

2003-09-01 Thread Mohamed S.
I'm have a strange problem. I've encoutered a few before, but nothing like this: New machine with php4.2.2 on RedHat with Apache2.0 All my forms use POST method. But I noticed that some scripts when i submit the form, i get wierd data. For example: say i have input type=hidden name=example

Re: [PHP] Refresh a frame based on a condition in another frame?

2003-09-01 Thread Ronald van Raaphorst
Hi, Thanks for the response, I'll try to explain better: I have 2 frames: a Menu and a Content frame. I have 2 menu's: one for support and one for sales If the content frame displays a support article, the support menu should be displayed. If the content frame displays a sales article, the

[PHP] Tracking Bandwidth usage....

2003-09-01 Thread Binay Agarwal
Hi All, I need to track the bandwidth usage of the different sites hosted on a server. How can i achieve this using PHP,Apache,mysql under Linux environment. Please suggest me as it is urgently needed by client. Thanks Binay

[PHP] Re: Unique yet Eerie

2003-09-01 Thread Catalin Trifu
Hi, I have been using PHP for some time now and I, for one, never had such problems. I'm pretty sure the problem is elsewhere. For instance, when creating the HTML form, you have to make sure everything is quoted perfectly: FORM actip=script.php method=POST INPUT

[PHP] Optionally force refresh in another frame

2003-09-01 Thread Ronald van Raaphorst
Hi all, I have 3 frames: Top, Menu (menu.php?menuid=x) and Content ( Content.php?[ table=y | article=z]) Menu.php displays a menu, and the selected item=x Content.php displays either a mysql table or an article. Now I don't want to refresh the menu frame when the topic is the same for another

[PHP] session variables

2003-09-01 Thread Diana Castillo
I am having a weird problem, when I close all my browser windows and restart my application, the session variable which I set comes back suddenly, but only when I call a certain class . As far as I know the session variables should disappear when I close the browser. Why would they suddenly come

[PHP] Re: parent classes

2003-09-01 Thread Catalin Trifu
Hi, If I'm not mistaking here, you can not find the parent(s) of a class without an instance and it is quite logical. Since PHP is not a compiled language, the parent is available only at runtime. Cheers, Catalin Cristiano Duarte [EMAIL PROTECTED] wrote in message news:[EMAIL

[PHP] wrong headers from server

2003-09-01 Thread Paul Chvostek
This may be a curl question, but it may not I have a script through which I'm trying to push all images. The push happens using mod_rewrite: RewriteRule ^/(.+\.(gif|jpg|jpeg|png))(\?.*)?\$ /inc/script.php?f=$1 [NC,L,PT] Oddly, when hitting the script from a command line, I get different

RE: [PHP] session variables

2003-09-01 Thread Binay Agarwal
Check out session.cookie_lifetime .. if lifetime =0 then session should disappear once you close the browser else it will stay the time specified in lifetime options. Hope this helps and let me know. Binay Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am having a

[PHP] Re: Optionally force refresh in another frame

2003-09-01 Thread Catalin Trifu
Hi, JavaScript reload() function. If you have FRAME name=menu from the content frame do something like this: document.top.menu.reload() (can't remember exactly) Cheers, Catalin Ronald Van Raaphorst [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I

Re: [PHP] Unique yet Eerie

2003-09-01 Thread Jason Wong
On Monday 01 September 2003 15:54, Mohamed S. wrote: I'm have a strange problem. I've encoutered a few before, but nothing like this: New machine with php4.2.2 on RedHat with Apache2.0 All my forms use POST method. But I noticed that some scripts when i submit the form, i get wierd data.

[PHP] objects in header / sharing data among frames

2003-09-01 Thread Ronald van Raaphorst
Hi all, I want to share data between two frames. My object should be a php script (if possible). The object should know (using a session variable) which id is currently displayed in each frame. This way, the object can decide if the frame should be refreshed or not, because it knows what ID

[PHP] Sharing data among frames ?

2003-09-01 Thread Ronald van Raaphorst
Hi all, I want to share data between two frames. My object should be a php script (if possible). The object should know (using a session variable) which id is currently displayed in each frame. This way, the object can decide if the frame should be refreshed or not, because it knows what ID

[PHP] Re: objects in header / sharing data among frames

2003-09-01 Thread Ronald van Raaphorst
Oeps, sent twice... Sorry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] reinstalling php with imap

2003-09-01 Thread Merlin
Hi there, I would like to upgrade to the latest php version. My old version was build with imap a year ago. Now I found, that the directory which contained the imap files: '--with-imap=/home/sw/horde/imap-2002.RC2' ' does not longer exist. So I guess I have to rebuild the c-client library? Is

php-general Digest 1 Sep 2003 12:12:22 -0000 Issue 2271

2003-09-01 Thread php-general-digest-help
php-general Digest 1 Sep 2003 12:12:22 - Issue 2271 Topics (messages 161327 through 161359): Re: Simple File Error 161327 by: Seth Willits 161329 by: Catalin Trifu 161341 by: Seth Willits Re: Foring a file download *and* page reload 161328 by: Jean-Christian

[PHP] gif support not in GD 2.01?

2003-09-01 Thread Merlin
Hi there, I have included a imagecreatefromgif() into my code which runns pretty fine on my testsystem 4.3.3 Now I uploaded it to the live system where an older version is running and is build with GD2.0.1. This is causing an error. Is this function not included inside the gd version? Thanx,

Re: [PHP] reinstalling php with imap

2003-09-01 Thread Raditha Dissanayake
There are two magical commands on linux called 'locate' and 'find' :-) if you have locate just type locate c-client or some filename associated with the imap lib. find is more complicated you could try something like find / -name 'c-client*' | more the above will search your whole hard disk

Re: [PHP] reinstalling php with imap

2003-09-01 Thread Merlin
oh... thanx. There is a c-client.a on the system. Is it possible just to add '--with-lmap=/home/sw/c-client.a' and it will work? Merlin Raditha Dissanayake wrote: There are two magical commands on linux called 'locate' and 'find' :-) if you have locate just type locate c-client or some

Re: [PHP] reinstalling php with imap

2003-09-01 Thread Raditha Dissanayake
You will need the header files as well. I belive you are using the washignton uni. imap system. why don't you download a new tarball? all the best Merlin wrote: oh... thanx. There is a c-client.a on the system. Is it possible just to add '--with-lmap=/home/sw/c-client.a' and it will work?

[PHP] backtick : maximum output size?

2003-09-01 Thread Mark Walker
Hi I'm using backticks to run a program (actually isoinfo), and then present the information to the users of my site. Everything is fine *most* of the time. I have one .iso file whose contents end up as around a 9Meg file to be presented to the user. PHP just segfaults. No error, nothing, the

[PHP] session.cookie_domain

2003-09-01 Thread Diana Castillo
I am using ini_set(session.cookie_domain,.interhotel.com); so that session variables wont get lost between a domain called www.interhotel.com and res.interhotel.com but they still get lost ! does this function work perfectly, or am I doign something wrong? -- PHP General Mailing List

Re: [PHP] cookie crumbles

2003-09-01 Thread John W. Holmes
John Taylor-Johnston wrote: $StudentId = weather.htm9995; if (!isset($_COOKIE[weather.htm$StudentId])) if(!isset($_COOKIE[$StudentID])) { echo Cookie not found, not reading weather.htm$StudentIdbr; echo \$_COOKIE[\weather.htm$StudentId\]. $_COOKIE[weather.htm$StudentId].-hr; }else{ echo

[PHP] php 5 - mysql replication

2003-09-01 Thread Moritz Steiner
I've heard that php 5 is going to support mysql replication, has anyone more details about it, it is already working in the beta release? Moritz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: session.cookie_domain

2003-09-01 Thread Tom Percival
Diana I'm pretty sure that if you use: ini_set(session.cookie_domain,interhotel.com); (i.e. no dot before the domain) then that should work tommy Diana Castillo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using ini_set(session.cookie_domain,.interhotel.com); so that

Re: [PHP] gif support not in GD 2.01?

2003-09-01 Thread Curt Zirzow
* Thus wrote Merlin ([EMAIL PROTECTED]): Hi there, Hello merlin. I have included a imagecreatefromgif() into my code which runns pretty fine on my testsystem 4.3.3 Now I uploaded it to the live system where an older version is running and is build with GD2.0.1. This is causing an

Re: [PHP] backtick : maximum output size?

2003-09-01 Thread Curt Zirzow
* Thus wrote Mark Walker ([EMAIL PROTECTED]): Hi I'm using backticks to run a program (actually isoinfo), and then present the information to the users of my site. Everything is fine *most* of the time. I have one .iso file whose contents end up as around a 9Meg file to be presented to

Re: [PHP] php 5 - mysql replication

2003-09-01 Thread Curt Zirzow
* Thus wrote Moritz Steiner ([EMAIL PROTECTED]): I've heard that php 5 is going to support mysql replication, has anyone more details about it, it is already working in the beta release? Can you enlighten me as to what special things php needs to do replication? Curt -- I used to think I was

[PHP] Display one element at a time

2003-09-01 Thread Mike Capps
Nothing seems to work. I have try every thing. At least all of the obvious like pos(array) or $element = current($array) . What I am trying to do : Is to ask questions (the problem I am having, display only one at a time) get answer by using a check box move and display next question (part of

[PHP] New User Script Failing Unexpectedly.

2003-09-01 Thread Adam Bishop
Okay, this is a tricky one (i think so, anyway!), and rather long but plase help me! I don't expect you to spend hours looking at the problem, but any insight is appreciated. I am (trying) to create a members only website. However, I am having a spot of bother. It all works

[PHP] Can't Connect Within Function?!

2003-09-01 Thread Seth Willits
If I try to connect to a database within a function, I get the following error. Why is this? MySQL Connect Error : Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (2) function getUserPermissions() { if ($_SESSION['permissions'] == '') { // Connecting,

Re: [PHP] Display one element at a time

2003-09-01 Thread Seth Willits
On Monday, September 1, 2003, at 10:32 AM, Mike Capps wrote: Nothing seems to work. I have try every thing. At least all of the obvious like pos(array) or $element = current($array) . What I am trying to do : Is to ask questions (the problem I am having, display only one at a time) get

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Curt Zirzow
* Thus wrote Seth Willits ([EMAIL PROTECTED]): If I try to connect to a database within a function, I get the following error. Why is this? MySQL Connect Error : Can't connect to local MySQL server through socket '/Private/tmp/mysql.sock' (2) function getUserPermissions() {

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Mike Morton
You need to read up on the scope of variables within functions. You should have something like: function getUserPermissions($shs_MySQLServer,$shsMySQLUser,$shs_MySQLPassword) { if ($_SESSION['permissions'] == '') { // Connecting, selecting database $link = mysql_connect($shs_MySQLServer,

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Seth Willits
On Monday, September 1, 2003, at 11:33 AM, Mike Morton wrote: You need to read up on the scope of variables within functions. Ohh, I didn't even think of that. Thanks. Seth Willits --- President and Head Developer of

[PHP] Write RegExp-Vars in a function

2003-09-01 Thread Niels Uhlendorf
Hi, Although this seemed to be an easy prob I couldn't solve it in all the time. I have a function and a string i want to be replaced. I use preg_replace and get a var out. Now I want this var in the function but I don't know how I can get it in:

Re: [PHP] New User Script Failing Unexpectedly.

2003-09-01 Thread Curt Zirzow
312 lines is a lot of stuff to filter through, you should really isolate your problem. * Thus wrote Adam Bishop ([EMAIL PROTECTED]): Sample 'A' ?PHP This is an xml tag, it should read ?php (all lowercase) switch (@$do) { case process: You should indent, it makes the code more

Re: [PHP] New User Script Failing Unexpectedly.

2003-09-01 Thread Chris Sherwood
If this is causing all forms to need to be submitted twice, I would be suspect of the include files that were found in all the forms documents and start my debugging process from there. just cursory glance tells me I would like to see the include files. before I could say that it was one thing or

Re: [PHP] Write RegExp-Vars in a function

2003-09-01 Thread Curt Zirzow
* Thus wrote Niels Uhlendorf ([EMAIL PROTECTED]): Hi, Although this seemed to be an easy prob I couldn't solve it in all the time. I have a function and a string i want to be replaced. I use preg_replace and get a var out. Now I want this var in the function but I don't know how I can

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Dan Anderson
add this in the 1st line of the body of the function: global $shs_MySQLServer; global $shs_MySQLUser; global $shs_MySQLPassword; On Mon, 2003-09-01 at 14:20, Seth Willits wrote: If I try to connect to a database within a function, I get the following error. Why is this? MySQL Connect

[PHP] Linux support and security services

2003-09-01 Thread Desi
I offer Linux support and security services for your systems. I provide support for installation and configuration of dedicated webservers, remote administration and System services on Linux platforms, including: - remote Server maintenance - Network/system security - Secure chrooted Apache -

[PHP] can someone explain...

2003-09-01 Thread jsWalter
this difference bewteen A and B below? A)$a = new className(true, 6); B)$a = new className(true, 6); /* missing on the NEW */ thanks walter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can someone explain...

2003-09-01 Thread Catalin Trifu
Hi, http://de.php.net/manual/en/language.references.php Cheers, Catalin Jswalter [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] this difference bewteen A and B below? A)$a = new className(true, 6); B)$a = new className(true, 6); /* missing on the NEW */

[PHP] New User Script Failing Unexpectedly.

2003-09-01 Thread Adam Bishop
Thanks for all your help, but I ma still no closer to finding the problem. I'll try decomiling the whole application, and rewriting it, see it that works. If anyone has a brainwave in the meantime, any further help would be greatly appreciated. Thanks, Adam Bishop P.S. I have replaced the

[PHP] Re: Tracking Bandwidth usage....

2003-09-01 Thread Desi
Hello, Try webalizer... You must setup custom log format in httpd.conf to log virtual hosts and properly configure webalizer. Regards Desi Petrovic Mediate s.r.o. system administrator Binay Agarwal wrote: Hi All, I need to track the bandwidth usage of the different sites hosted on a server.

[PHP] MySQL Left Join Question

2003-09-01 Thread Van Andel, Robbert
This may not be the best place to ask this question, but I'm running into a problem when I perform a left join sql statement in PHP. The sql statement is as follows: SELECT p.id pid,p.designID,p.project_name,p.node,p.received,p.lots,p.ugfootage,p.aerialf ootage,p.node,c.* FROM projects as p LEFT

[PHP] Can't Make Directories Now

2003-09-01 Thread Seth Willits
I figured out the permissions issue to allow gd to create image files, but I also need to create folders for those images. I've come up with a routine (below) but it fails to create the directories. I've made sure that the directory that the first directory is created in has the

[PHP] Re: parent classes

2003-09-01 Thread Cristiano Duarte
Ok. But if I have an instance... Is there a way to find all its class parents ? Cristiano Catalin Trifu [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, If I'm not mistaking here, you can not find the parent(s) of a class without an instance and it is quite

[PHP] randomly select a table, better way?

2003-09-01 Thread Daniel Bray
Ok, I have looked through the archives on both MySQL and PHP's lists, but I have not seen this asked or mentioned. Weird, I thought this would be a common thing. Is there a better way to randomly select a table from a database, than what I have come up with: ?php srand ((float)

Re: [PHP] Can't Make Directories Now

2003-09-01 Thread Curt Zirzow
* Thus wrote Seth Willits ([EMAIL PROTECTED]): ?php $path = path/path2/path3/path4/path5; $buildingPath = existingFolder; $pathComponents = split(/, $path); foreach ($pathComponents as $value) { $buildingPath = $buildingPath . / . $value;

[PHP] session-problem

2003-09-01 Thread Juerg Zgraggen
hi got a big session-problem and i have no idea what i'm doing wrong... i have quite a big web-app and i tried to upgrade the code. ex: $frm_id to$_POST['frm_id'] and$HTTP_SESSION_VAR['myId'] to $_SESSION['myId'] ... ect... i changed the register_globals = Off in the php.ini

Re: [PHP] randomly select a table, better way?

2003-09-01 Thread Curt Zirzow
* Thus wrote Daniel Bray ([EMAIL PROTECTED]): Ok, I have looked through the archives on both MySQL and PHP's lists, but I have not seen this asked or mentioned. Weird, I thought this would be a common thing. Is there a better way to randomly select a table from a database, than what I have

[PHP] Re: session-problem

2003-09-01 Thread Juerg Zgraggen
Probably i got the problem... but i don't know how to solve it!!! i include one of my class. in the constructor of this class i did a global... global $_SESSION; as soon as i delete that line. my script works perfect... is this not allowed anymore... to access $_SESSION in a constructor??

Re: [PHP] session-problem

2003-09-01 Thread Curt Zirzow
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]): now my problem: i wrote in my navigation-frame this code: ?php if( !isset($_SESSION['testint'] ) ) { $_SESSION['testint'] = 1; } $_SESSION['testint']++; print_r($_SESSION); ? after the print_r() i can see my

Re: [PHP] Re: session-problem

2003-09-01 Thread Curt Zirzow
* Thus wrote Juerg Zgraggen ([EMAIL PROTECTED]): Probably i got the problem... but i don't know how to solve it!!! i include one of my class. in the constructor of this class i did a global... global $_SESSION; as soon as i delete that line. my script works perfect... is this not