[PHP] Re: annoying autoreplies

2004-08-07 Thread Chris Martin
Robby Russell wrote: To all those who have auto-replys set for their email, please turn them off. ;-) We shouldn't have to opt-in to 3 different peoples spam email sites so that we can post to the list. heh. -Robby Seriously, we shouldn't have to setup a new mail filter everytime we reply either!

Re: [PHP] safe_mode restriction

2004-08-07 Thread Jason Wong
On Sunday 08 August 2004 12:00, Kevin wrote: Please do not top post. > Permissions are set to 0777. So after the directories are created, those are the actual permissions that are on them? Did you actually check this or are you assuming it? If you can, please show us the output of 'ls -al' of

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Jason Wong
On Sunday 08 August 2004 09:38, Andre Dubuc wrote: > That's what I thought. But the differences are glaring. Seems like none of > the code wants to work. Navigation is a nightmare: header("location:..."); > usually brings an error message: function so and so -- include("xxx.php"); > has already be

[PHP] Function Mail

2004-08-07 Thread Juan Pablo Herrera
Hi everybody, I have a cuestion about the features on function mail. I think that it send the email one to one address. Is it ok?. Regards, Juan Pablo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Try adding if (!function_exists("function_name")) { function function_name ($blah) { // Function Code } } for each function. That will fix the redeclare problem which happens if you call your cards.php file in more than 1 file.. "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message n

Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
That might be something, with reg globals ON, on your server, and say you try to get $_GET['id'] and $SESSION['id'] will be the same, they might be overwriting themselves. Try setting register globals to OFF on your server, its also more secure. "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] safe_mode restriction

2004-08-07 Thread Kevin
Permissions are set to 0777. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Saturday 07 August 2004 20:17, Kevin wrote: > > > I am able to make first two directories i.e 'full1/1' and 'thumb/1'. Script > > do not allow me to make 'full1/1/1' and 'thumb/1/1' too. I al

Re: [PHP] Re: POST superglobal is empty [RESOLVED]

2004-08-07 Thread AJL
Hi All, I finally found the problem: It was the mod_bandwidth module in Apache. I was tipped off to this from bug report: http://bugs.php.net/bug.php?id=16595 I disabled the module (commented the LoadModule and AddModule lines in httpd.conf) and $_POST is populated as expected now. The faq for mo

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
On Saturday 07 August 2004 10:11 pm, Robby Russell wrote: > On Sat, 2004-08-07 at 19:00, Ed Lazor wrote: > > It could be that you have local error reporting set to none. It could > > also be that you're using full paths when referencing files which then > > breaks when moving files to a new server

[PHP] annoying autoreplies

2004-08-07 Thread Robby Russell
To all those who have auto-replys set for their email, please turn them off. ;-) We shouldn't have to opt-in to 3 different peoples spam email sites so that we can post to the list. heh. -Robby -- /*** * Robby Russell | Owner.Developer.Geek * PLANET ARGON |

RE: [PHP] Local version works - production breaks

2004-08-07 Thread Robby Russell
On Sat, 2004-08-07 at 19:00, Ed Lazor wrote: > It could be that you have local error reporting set to none. It could also > be that you're using full paths when referencing files which then breaks > when moving files to a new server. Basically, there's a lot of > possibilities and I'm not going t

RE: [PHP] Local version works - production breaks

2004-08-07 Thread Ed Lazor
It could be that you have local error reporting set to none. It could also be that you're using full paths when referencing files which then breaks when moving files to a new server. Basically, there's a lot of possibilities and I'm not going to have much luck helping unless you include error mes

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
On Saturday 07 August 2004 09:10 pm, you wrote: > On Sat, 2004-08-07 at 17:55, Andre Dubuc wrote: > > Hi, > > > > I have re-written a very basic website to use sessions (switching to > > https) for login to special areas of a site. After testing the site > > thoroughly locally, I uploaded the whole

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Justin Patrin
On Sat, 7 Aug 2004 20:55:44 -0400, Andre Dubuc <[EMAIL PROTECTED]> wrote: > Hi, > > I have re-written a very basic website to use sessions (switching to https) > for login to special areas of a site. After testing the site thoroughly > locally, I uploaded the whole shebang to a unix server that ru

Re: [PHP] Flush()....go to bottom of page (might be 0T)

2004-08-07 Thread PHP Gen
--- John Holmes <[EMAIL PROTECTED]> wrote: > PHP Gen wrote: > > Hi, > > I am using flush() and ob_flush() in one of my > scripts > > and its working great.., just one problem, as it > keeps > > outputting x on the screen the page just stays > on > > top...is there anyway (I am not sure via ph

Re: [PHP] Re: Local version works - production breaks

2004-08-07 Thread Andre Dubuc
Josh, Aside from the differences in php versions, the only difference is thta the local version has register_globals=off. I'm really stumped. Andre On Sunday 08 August 2004 06:07 am, Josh Acecool M wrote: > Did you check the phpinfo on each server, make sure your server settings > are same as

Re: [PHP] Local version works - production breaks

2004-08-07 Thread Robby Russell
On Sat, 2004-08-07 at 17:55, Andre Dubuc wrote: > Hi, > > I have re-written a very basic website to use sessions (switching to https) > for login to special areas of a site. After testing the site thoroughly > locally, I uploaded the whole shebang to a unix server that runs Apache 1.3.x > + PH

[PHP] Re: Security Code w/o Image PHP

2004-08-07 Thread Josh Acecool M
You could make a few randomly named images (more = better security but wont be very secure since the names can be put in a spam bot...) make them show up, each name has a specific number etc... "Eugene Voznesensky" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How to generate and ch

[PHP] Re: Local version works - production breaks

2004-08-07 Thread Josh Acecool M
Did you check the phpinfo on each server, make sure your server settings are same as local? "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I have re-written a very basic website to use sessions (switching to https) > for login to special areas of a site. After

[PHP] Local version works - production breaks

2004-08-07 Thread Andre Dubuc
Hi, I have re-written a very basic website to use sessions (switching to https) for login to special areas of a site. After testing the site thoroughly locally, I uploaded the whole shebang to a unix server that runs Apache 1.3.x + PHP 4.3.4 + mysql. Almost all code broke - sessions would lo

Re: [PHP] Re: Advise on parsing XML

2004-08-07 Thread Gerard Samuel
On Saturday 07 August 2004 11:22 am, Jason Barnett wrote: > I assume you are using PHP4's DOMXML functions? If that's the case then > you have a bit of a problem. XML support changed between 4.0 and 5.0, we > use libxml2 (which supports UTF-8), but the object model / methods changed > to better c

Re: [PHP] Flush()....go to bottom of page (might be 0T)

2004-08-07 Thread John Holmes
PHP Gen wrote: Hi, I am using flush() and ob_flush() in one of my scripts and its working great.., just one problem, as it keeps outputting x on the screen the page just stays on top...is there anyway (I am not sure via php...but maybe JavaScript? ) to make the browser "follow" the output below

Re: [PHP] Re: regex help and file question

2004-08-07 Thread PHP Gen
> Hi, > > I can't answer your regexp question but some > thoughts on file() etc.: > - file() returns the contents line by line as an > array, so this makes only > sense if you need the contents in this form, e.g. > for looping through each > line and applying a function or whatever > - fread() re

[PHP] Flush()....go to bottom of page (might be 0T)

2004-08-07 Thread PHP Gen
Hi, I am using flush() and ob_flush() in one of my scripts and its working great.., just one problem, as it keeps outputting x on the screen the page just stays on top...is there anyway (I am not sure via php...but maybe JavaScript? ) to make the browser "follow" the output below eg: keep the s

Re: [PHP] SQL Join query

2004-08-07 Thread raditha dissanayake
Lenar Lõhmus wrote: Raditha Dissanayake wrote: try postgres instead http://www.postgresql.org/ It's the most helpful comment I've seen for a long time. You are most welcome. -- Raditha Dissanayake. http://www.radink

[PHP] Re: regex help and file question

2004-08-07 Thread Torsten Roehr
"Php Gen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > I am just starting out with regex (and classes) so am > not sure how to do this... > > I am seeing if a HTML file exists, if yes, I am using > file_get_contents to get the entire HTML file into a > string. > > In the HTML

[PHP] regex help and file question

2004-08-07 Thread PHP Gen
Hi, I am just starting out with regex (and classes) so am not sure how to do this... I am seeing if a HTML file exists, if yes, I am using file_get_contents to get the entire HTML file into a string. In the HTML file I already have this: whatever you want comes here How do I use a regex to

[PHP] Security Code w/o Image PHP

2004-08-07 Thread Eugene Voznesensky
How to generate and check security code in PHP w/o images (gd)? Thank you.

Re: [PHP] looking for a solid/good basic registration/loginapp/script

2004-08-07 Thread Torsten Roehr
"Robby Russell" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2004-08-07 at 10:43, bruce wrote: > > hi... > > > > i'm looking for a good/solid login/registration script that's in the open > > source domain. > > > > it can have it's own db/table structure. i can always rearch

Re: [PHP] SQL Join query

2004-08-07 Thread Mattias Thorslund
Lenar Lõhmus wrote: Anyway, instead of writing this: SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics, pic_comments WHERE pics.category = 1 AND pics.id = pic_comments.pic_id GROUP BY pic_comments.pic_id; Write this: SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pi

Re: [PHP] Holding links in a database

2004-08-07 Thread Robby Russell
On Sat, 2004-08-07 at 08:19, Shaun wrote: > Hi, > > I have a table in my database that holds links for individual pages on my > site: > > mysql> DESCRIBE Page_Links; > +---+--+--+-+-++ > | Field | Type | Null | Key | Default | Extra

Re: [PHP] looking for a solid/good basic registration/login app/script

2004-08-07 Thread Robby Russell
On Sat, 2004-08-07 at 10:43, bruce wrote: > hi... > > i'm looking for a good/solid login/registration script that's in the open > source domain. > > it can have it's own db/table structure. i can always rearchitect... > > i'd like it to have an admin function, and the ability to verify users via

Re: [PHP] looking for a solid/good basic registration/login app/script

2004-08-07 Thread Jason Wong
On Sunday 08 August 2004 01:43, bruce wrote: > i've look through lots of scripts, and decided to check here for additional > input. It would be helpful to list what you have looked at along with some notes of what you perceive to be their pros and cons. -- Jason Wong -> Gremlins Associates ->

[PHP] looking for a solid/good basic registration/login app/script

2004-08-07 Thread bruce
hi... i'm looking for a good/solid login/registration script that's in the open source domain. it can have it's own db/table structure. i can always rearchitect... i'd like it to have an admin function, and the ability to verify users via email, etc... anybody have a favorite/good app that they

Re: [PHP] safe_mode restriction

2004-08-07 Thread Jason Wong
On Saturday 07 August 2004 20:17, Kevin wrote: > I am able to make first two directories i.e 'full1/1' and 'thumb/1'. Script > do not allow me to make 'full1/1/1' and 'thumb/1/1' too. I also have tried > removing umask function. What are the permissions on the directories that you are able to mak

Re: [PHP] SQL Join query

2004-08-07 Thread John Holmes
Mattias Jönsson wrote: SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics, pic_comments WHERE pics.category = 1 AND pics.id = pic_comments.pic_id GROUP BY pic_comments.pic_id; [snip] The problem is that i only get the the pictures that have comments, i want even the pictures where

Re: [PHP] SQL Join query

2004-08-07 Thread Lenar Lõhmus
Raditha Dissanayake wrote: > try postgres instead http://www.postgresql.org/ It's the most helpful comment I've seen for a long time. You know, it won't work in Postgre too probably. If you like Postgre - use it and don't force others to use it (for wrong reasons nevertheless). Everyone should p

[PHP] PHP5: new parameter(context) in functions rmdir(), mkdir()

2004-08-07 Thread Walace
Hi, Anybody has an example and a desctiption about context parameter in rmdir, mkdir functions (added in php5) ? thx Walace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Advise on parsing XML

2004-08-07 Thread Jason Barnett
I assume you are using PHP4's DOMXML functions? If that's the case then you have a bit of a problem. XML support changed between 4.0 and 5.0, we use libxml2 (which supports UTF-8), but the object model / methods changed to better conform with the DOM standard. Also AFAIK the experimental tag

[PHP] Holding links in a database

2004-08-07 Thread Shaun
Hi, I have a table in my database that holds links for individual pages on my site: mysql> DESCRIBE Page_Links; +---+--+--+-+-++ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+--

Re: [PHP] SQL Join query

2004-08-07 Thread raditha dissanayake
Mattias Jönsson wrote: I have a problem with my mysql query try postgres instead http://www.postgresql.org/ -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure

[PHP] Re: Session problems under heavy load???

2004-08-07 Thread Jerry Kita
I had a problem with session variables being lost. However it wasn't because of a heavy load. My hosting company does load balancing and user requests would be directed to different servers. However, when the session was originally defined it was placed in the /tmp file of one server. When a reques

[PHP] [PHP5]: Parameter context in functions mkdir and rmdir

2004-08-07 Thread Walace
Hi all, Can anyone tell me how to use parameter conext (resource) in functions mkdir and rmdir? I would like to see a example if possible... Regards, Walace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [PHP5]: parameter context in functions mkdir and rmdir

2004-08-07 Thread Walace
Hi all, Can anyone tell me how to use parameter conext (resource) in functions mkdir and rmdir? I would like to see a example if possible... Regards, Walace -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] safe_mode restriction

2004-08-07 Thread Kevin
Greetings, I need to create some directories on the server using script. My server is having safe _mode 'On'. The script is giving me some warning like this. Warning: mkdir(): SAFE MODE Restriction in effect. The script whose uid is 10029 is not allowed to access /home/httpd/vhosts/***../

Re: [PHP] SQL Join query

2004-08-07 Thread Jason Wong
On Saturday 07 August 2004 17:27, Mattias Jönsson wrote: > I have a problem with my mysql query This is a PHP list. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * --

Re: [PHP] sorting an array..dont know numeric or alpha-numeric

2004-08-07 Thread Kevin Waterson
This one time, at band camp, PHP Gen <[EMAIL PROTECTED]> wrote: > Hi, > I have a function that reads jpg files (thumbnails) > from a directory and puts all the files names into an > array...I want to sort that array by the filename, > problem is, I dont know if filenames will be pure > numeric (eg

[PHP] Re: Problem with class and tree-like struct

2004-08-07 Thread Lester Caine
Martin Schneider wrote: Ah, i forgott to pass the paramter as a reference... Many mistakes only become visible at the moment you hit ;) -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.ph

[PHP] Re: Problem with class and tree-like struct

2004-08-07 Thread Martin Schneider
Ah, i forgott to pass the paramter as a reference... Martin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with class and tree-like struct

2004-08-07 Thread Martin Schneider
Hello! I made a class which should represent a tree-like structure (PHP 4.3.8). I made a root-nore and added 2 childs. The problem is that the childs are not added to the parent. Why? Martin class TreeItem { var $m_pParent; var $m_sName; var $m_arrChilds = array();

[PHP] SQL Join query

2004-08-07 Thread Mattias Jönsson
I have a problem with my mysql query SELECT pics.*, pic_comments.*, count(*) AS num_comments FROM pics, pic_comments WHERE pics.category = 1 AND pics.id = pic_comments.pic_id GROUP BY pic_comments.pic_id; pics table: | id | submitter | time | date | category | pic_comments table: | pic_id | comm

Re: [PHP] Session problems under heavy load???

2004-08-07 Thread Torsten Roehr
"Ed Lazor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I ran into this last month. It was a problem with the ISP's server. They > were load balancing between different machines and PHP / Apache was having > trouble accessing session files. Storing the session data in a database

Re: [PHP] Need Some Direction

2004-08-07 Thread Torsten Roehr
"Aaron Todd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Do you recomend the same for downloading of a file. I have a few zip files > that need to be protected too. Do I have to open the file using fopen and > then write it to the users machine using fwrite? > > Thanks, > > Aaro

Re: [PHP] is there a more efficient query?

2004-08-07 Thread Mattias Jönsson
Well i havent seen anyone been using BETWEEN. Anyway... $SQL = mysql_query("SELECT value FROM table_name WHERE element BETWEEN 48 AND 53"); while($row = mysql_fetch_arrray($SQL)) { print($row['value']); } mysql_free_result($SQL); ?> From: "Jason Davidson" <[EMAIL PROTECTED]> To: "Brian Tully"

[PHP] Re: FW: IMPORTANT: Please Verify Your Message

2004-08-07 Thread Chris Martin
Curt Zirzow wrote: * Thus wrote Ed Lazor: Gawd this stuff sucks. Nothing like a spammer posing as the list itself and farming email addresses from members. Its odd, i've yet to get one of those. Either the spammers dns doesn't resolve proper (cause my server rejects those) or if its due to the fac

Re: [PHP] Validating Dynamic Checkboxes

2004-08-07 Thread Jason Paschal
methinks you are looking for a javascript mailing list. i only post this to the forum because you posted your reply here as well, and i wanted to save face in front of my PHP comrades. the js code you sent back failed to reflect any of the significant changes i suggested. this is what you put