Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Many PHP programmer tried to their best to use > HTTP_REFERER so they can keep track of which > webpages on the current website did the user > last visited. I think I see what you are referring to now. The reason that many people (myself included) d

Fw: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Kevin Stone
You can never fully rely on any information given to you by the browser. You can't rely it being accurate or even being there at all. What I suggest to you is code a solution around the IP address. The IP address of course, like any information coming from the client, can be tampered with but mor

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
I agree with you on that. Having something that is reliable is not a bad idea. Anyway, this HTTP_REFERER script have been in use for 4 years and we sometime very little have problem with it. It the HTTP_REFERER doesn't work then all the user will experienced is a direct access attempt and be bro

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
Or worse, not substituting the characters in the Session ID. Just use the same Session ID. What if there is leftover session file in the /tmp directory of the Unix machine and we're dealing with hundred of users each day. Some of those session files aren't deleted because the user just closed th

[PHP] timing out a for loop, fopen

2003-01-15 Thread ROBERT MCPEAK
Dear PHP Gurus: I'm looking for a way to timeout an fopen function. I'm doing some link checking inside of a for loop and some links "hang" rather than return a definitive "can't connect" or "can connect." (Pardon the highly technical jargon there...) In cases where my link hangs, I'd like to

Re: Fw: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Chris Shiflett
--- Kevin Stone <[EMAIL PROTECTED]> wrote: > What I suggest to you is code a solution around the IP > address. The IP address of course, like any information > coming from the client, can be tampered with but more > than likely it's not going to change while the user is > browsing your website. Rig

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Christoph Grottolo
[EMAIL PROTECTED] (Chris Shiflett) wrote: >--- Scott Fletcher <[EMAIL PROTECTED]> wrote: >> Many PHP programmer tried to their best to use >> HTTP_REFERER so they can keep track of which >> webpages on the current website did the user >> last visited. > >I think I see what you are referring to now

[PHP] Setting session variables from a MySQL field value.

2003-01-15 Thread Stephen of Blank Canvas
Hi Everyone, I'm trying to use MySQL to store some general settings for a site I am working on, which I was then going to access as session variables on pages as needed without having to call the dB each time. However I am having problems setting the name of the session variable in a way that I

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Or worse, not substituting the characters in the > Session ID. Just use the same Session ID. What if > there is leftover session file in the /tmp > directory of the Unix machine and we're dealing > with hundred of users each day. Some of those > sessi

[PHP] include question

2003-01-15 Thread Ryan
Hello all, I'm have a PHP script that works in a folder.. for the sake of clarity we'll call it c:\project In c:\project\htmls there are several HTML documents which refer to images in the project\htmls directory with tags like In my PHP script in c:\project I include "htmls/file.html" and the

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
That sound wonderful!!! I'm looking forward to hearing about this in the near future... Thanks, Scott F. "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > --- Scott Fletcher <[EMAIL PROTECTED]> wrote: > > Or worse, not substituting the characte

Re: [PHP] include question

2003-01-15 Thread Brad Bonkoski
It would probably be best to include the absolute path to the images. so instead of: use: Is something like that possible? Otherwise at the very least you should use: HTH -Brad Ryan wrote: > Hello all, > > I'm have a PHP script that works in a folder.. for the sake of clarity we'll > call it c:

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
I understand. To combine the Session Id with HTTP_REFERER sound good but it didn't work too well. I'm still open to idea... :-) Fortunately, not many people know it because it is done behind the scene, so they'll have a lot more to guess about what's working behind the scene. "Christoph Gr

Re: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Scott Fletcher
Here's one way I can do, I checked the session id in the HTTP_REFERER and grab the existing session id in the database table. This is still not an effective method. "Christoph Grottolo" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] (Chris Sh

[PHP] [phplib template] file does not exist

2003-01-15 Thread roel
Hi, i'm having a problem. I just installed a webserver with mysql and php. I copied my files that i had stored on another webserver to my new. I didn't change anything to these files and the files worked fine on the other server. Now in this server i get this error with a template: Template

RE: [PHP] include question

2003-01-15 Thread Ryan Cassin
No unfortunately something like that isn't possible... The HTML files are generated by a closed-source application. -Original Message- From: Brad Bonkoski [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 5:04 PM To: Ryan Cc: [EMAIL PROTECTED] Subject: Re: [PHP] include questio

Re: [PHP] include question

2003-01-15 Thread Christoph Grottolo
[EMAIL PROTECTED] (Brad Bonkoski) wrote: >It would probably be best to include the absolute path to the images. >so instead of: use: >Is something like that possible? ??? forget this... this will only work on some browsers and as long as you keep the files exactly there. >Otherwise at the very

Re: [PHP] Setting session variables from a MySQL field value.

2003-01-15 Thread Mark Heintz PHP Mailing Lists
The problem may be your variable variable syntax... See if the following works: while ($row = mysql_fetch_array($result)) { session_register('config_'.$row['config_id']); ${'config_'.$row['config_id']} = $row['config_value']; } Although I personally prefer using the session superglobal over

Re: Fw: [PHP] HTTP_REFERER work without a problem....

2003-01-15 Thread Kevin Stone
Chris I appreciate your response but please read my post again. I did not suggest using the IP for user identification. I suggested using it as a temporary id. I went on further to suggest to use sessions to identify individual users behind a proxy server. -Kevin - Original Message - F

Re: [PHP] Windows vs Linux

2003-01-15 Thread Beauford.2002
Notice: I have given up on PHP and MySQL on Windows in E:\IIS Webs\beauford as it is a total pain in the butt. The simplest of things I try and do are inundated with errors - I fix one and 5 more come up. I have changed settings in php.ini as suggested and put the @ in front of variables and wh

Re: [PHP] Windows vs Linux

2003-01-15 Thread 1LT John W. Holmes
You give up too easily. PHP is the same on both of them, it's just different settings in php.ini that are causing your problems. Take your php.ini on the Linux box and copy it over to you Windows machine. The only change you'll probably have to make (depending on what you've got loaded) is the ses

[PHP] getopt usage?

2003-01-15 Thread Eli Criffield
I can't seem to find any examples of code using getopt() around. I'm thinking not many people use php for command line shell scripts. Here is what i came up with for getopt(); The problem with this is it never hits default in the switch. If you give an argument that it doesn't know about it

Re: [PHP] OOP

2003-01-15 Thread Greg Beaver
Hi Jordan, If you are doing this to learn PHP, that is great, keep plugging. If you want to see working examples of the things you've described, there are a number of scripts out there, both in pear (pear.php.net) and at other repositories like phpbuilder.com and phpclasses.org. You would benefi

[PHP] Session Problem

2003-01-15 Thread Pushpinder Singh Garcha
Hello I am trying to make use of sessions to auhenticate users on the secure parts of the website. Things seems to work fine...but I keep getting this warning. Can some one pl explain what this means ... Warning: Cannot send session cache limiter - headers already sent (output started at /Use

[PHP] Getting a dynamic IP address

2003-01-15 Thread Kyle Lampkin
Hello all, Newbie here I need to know if there is a way I can get my dynamic IP address for use in a php script? -- Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/ -- PHP Gener

Re: [PHP] "document contained no data"

2003-01-15 Thread Justin French
Just as an update, the sysadmin definitely thinks it's my code... I'm not convinced, but I'm faced with the task of finding out :) > It appears your site is causing the webserver to segfault (crash), which is > why nothing comes up some times - these crashes are logged in the main Apache > logfile

Re: [PHP] Session Problem

2003-01-15 Thread janet
In a message dated 1/15/2003 4:18:10 PM Pacific Standard Time, [EMAIL PROTECTED] writes: >I am trying to make use of sessions to auhenticate users on the secure >parts of the website. Things seems to work fine...but I keep getting >this warning. Can some one pl explain what this means ... >Wa

Re: [PHP] Windows vs Linux

2003-01-15 Thread Beauford.2002
The settings in both were virtually identical. It's a mute point however as I have uninstalled both PHP and MySQL. This was just a test project anyway, and I really don't want to put the time into it. I have a working copy of both on my Linux box and prefer this anyway. Thanks for the input.

[PHP] Form won't submit when pressing enter key

2003-01-15 Thread Sarah Heffron
I have a form created by this code (I don't know if it's important): if ($_POST["submit"]) { //do form stuff } else { echo ""; echo ""; echo "Form"; echo ""; echo ""; echo "Lookup Customer"; echo "Enter the customer's home phone number:"; echo ""; echo

[PHP] alternative control structure syntax

2003-01-15 Thread Justin French
Hi, Can someone point me to the page in the manual where this style of control structure syntax is documented? $var = ($something) ? "foo" : "bah"; ??? Can't see it, Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] I wanta the PHP doc notes.

2003-01-15 Thread Avenger
Hey,I wanta used the PHP doc user notes. Where can i get it. Thx.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Form won't submit when pressing enter key

2003-01-15 Thread Michael Sims
On Wed, 15 Jan 2003 17:23:26 -0800, you wrote: >I have a form created by this code (I don't know if it's important): > >if ($_POST["submit"]) { [...] >After you fill out the only field, you HAVE to click the submit button to >submit the form. If you press enter to submit the form it reloads the fo

Re: [PHP] alternative control structure syntax

2003-01-15 Thread Michael Sims
On Thu, 16 Jan 2003 12:34:26 +1100, you wrote: >Hi, > >Can someone point me to the page in the manual where this style of control >structure syntax is documented? > >$var = ($something) ? "foo" : "bah"; This is the ternary operator. It's kinda buried in the documentation: http://www.php.net/man

Re: [PHP] alternative control structure syntax

2003-01-15 Thread Matt
- Original Message - From: "Justin French" <[EMAIL PROTECTED]> To: "php" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 8:34 PM Subject: [PHP] alternative control structure syntax > Can someone point me to the page in the manual where this style of control > structure syntax is docu

[PHP] Free web-hosting

2003-01-15 Thread Gladky Anton
Hello everybody! Can anybody advice me the best free web-hosting with PHP? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Problem

2003-01-15 Thread Matt
>- Original Message - >From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Subject: [PHP] Session Problem > Can some one pl explain what this means ... > Warning: Cannot send session cache limiter - headers already sent > (output started at /Users/pgarcha/Site

[PHP] Get the date of the last sunday

2003-01-15 Thread Renaldo De Silva
how can i easily get the date of the last sunday. php or javascript code to do this would be appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Get the date of the last sunday

2003-01-15 Thread Daniel Kushner
http://www.php.net/manual/en/function.strtotime.php strtotime ("last Sunday"); Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us -Original Message- From: Renaldo De Silva [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2

[PHP] MySQL Query - Not PHP Specific

2003-01-15 Thread Sean Malloy
I know this isn't a PHP question per se, but it does relate to PHP development. Every day I work with MySQL as my PHP database, I become more dissalusioned with its ability as a database server. Yes its fast, but its missing so many useful features of other DB servers. I'm digressing... Is there

RE: [PHP] MySQL Query - Not PHP Specific

2003-01-15 Thread Daniel Kushner
http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Work ing_with_NULL http://www.mysql.com/documentation/mysql/bychapter/manual_Reference.html#Con trol_flow_functions Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us

RE: [PHP] MySQL Query - Not PHP Specific

2003-01-15 Thread Sean Malloy
IFNULL! thanks -Original Message- From: Daniel Kushner [mailto:[EMAIL PROTECTED]] Sent: Thursday, 16 January 2003 1:51 PM To: Sean Malloy; PHP General Subject: RE: [PHP] MySQL Query - Not PHP Specific http://www.mysql.com/documentation/mysql/bychapter/manual_Tutorial.html#Work ing_with_N

Re: [PHP] Get the date of the last sunday

2003-01-15 Thread Gladky Anton
RDS> how can i easily get the date of the last sunday. php or javascript code to RDS> do this would be appreciated. Gladky Anton mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Security in included PHP files

2003-01-15 Thread John W. Holmes
You already have your solution in your original question, then. If you don't want to use any of these other techniques, then name your files with a .php extension (I use .inc.php) and enclose everything in classes or function. If you're just aware that your included files can be run out of context,

RE: [PHP] File() function and require()

2003-01-15 Thread John W. Holmes
> How can I get the file() function to ignore the first three lines of a > file it is reading in? > > I have a site with: > > require("membercheck.php"); > ?> > ... rest of file > > > > at the top of all the pages to control user logins. The problem is the > file() function only reads

RE: [PHP] Security in included PHP files

2003-01-15 Thread John W. Holmes
> I am beginning work on a new web-based application using PHP and MySQL. I > have been doing a lot of reading about PHP security and web application > security in general to make sure I am up-to-date on what is known in this > area. > > My style of PHP is to name all included files with a .php ex

RE: [PHP] OOP

2003-01-15 Thread John W. Holmes
> > I'd recommend you make a separate database class and error class that > each > > of your other classes access. That would make it the most modular and > > re-usable. > > > > ---John Holmes... > > I was hoping someone would say that :) > How could I code that though. I've only just started with

RE: [PHP] Calendar problem

2003-01-15 Thread John W. Holmes
> I have two fields in my form. When two dates are entered in these two > boxes, I need to find the diiference in calendar months and remaining days > between these two dates. This "Calendar months and remaining days" is > important. The functions that I know do not work for calendar months. > Can

[PHP] Problems with require() and variables

2003-01-15 Thread Phil Powell
Consider this: I have display.php, a script that will do XML parsing into an array and display its contents. I have view.php, a script that will include display.php and have to manipulate the variables within display.php for itself. So in view.php I have: require('/.../.../display.php'); How

[PHP] Images : Store in dB or disk?

2003-01-15 Thread Bobby Patel
Hello, I have the Images table setup with columns (width, height, size, type, etc...) the question is should I have the image data stored in this table or disk? I know, alot of people have said it is faster in disk, which is 1 page I/O. But I need these images for displaying product pages, and I b

[PHP] emacs and php markup

2003-01-15 Thread Larry Brown
Does anyone out there use emacs and are proficient in customizing it? I love the highlighting it does while working on .php files. However, I usually use different extensions on my files than .php so is there a way to tell emacs to treat certain extensions as php? This would help out immensely!

Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread rw
Have a look at: http://vrscenes.com/2003/gallery.php?mls=230944 and tell me what you think - all images are stored in the filesystem Don't worry about what it looks like - I extracted this from the frameset it goes in Cheers! RW Quoting Bobby Patel <[EMAIL PROTECTED]>: ### Hello, ### I have

Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread Bobby Patel
It looks nice. It does take a couple of seconds, (but I guess that is to be expected with dealing with images). I guess seeing your example, it seems that I can go with the filesystem. But do you use the getimagezise function? do you set the width and height for the IMG tag dynamically, or you don'

[PHP] temporary DNS lookup in php?

2003-01-15 Thread Patrick Hsieh
Hello list, I am trying to open a remote webpage in my php program with curl library. The webpage will redirect me to another webpage(Say, "http://www.anothersite.com/index.html";). Basically, the curl library will resolve the domain name via the DNS servers defined in the system, however, I h

RE: [PHP] PHP/Flash Dynamic Graphs?

2003-01-15 Thread SED
You should look for loadVariables() in ActionScript (Flash) in this case rather than MING. Regards, Sumarlidi E. Dadason SED - Graphic Design _ E-mail: [EMAIL PROTECTED] website: www.sed.is -Original Message- From: MH [mailto:[EMAIL PROTECTED]] Sent: 15.

[PHP] execute shell commands

2003-01-15 Thread Mantas Kriauciunas
Hey! What I want to do is, There is user that logs into the channel. And I need to make script to change his password. How do I execute shell command: passwd ? or what should I do to change that password? Thanks! mNTKz

Re: [PHP] Security in included PHP files

2003-01-15 Thread Jacob Copsey
Great! I was just looking for confirmation that my assumptions in my original post were correct. I have been using PHP for quite some time but have never read a specific article about possible attacks that allow modification of values in a class object or execution of functions in a PHP script. It

RE: [PHP] Sessions 'funny' and Zone Alarm Pro 3

2003-01-15 Thread Neil Stirton
> It does sound like you're right. Like ZA is perhaps allowing the user's > request to go twice. This is akin to people who double click on links > because that's what they're used to doing on windows icons. However, it > seems a bit odd how it selects to do it. It seems that if it did it twice > o

[PHP] Php's future with Asp .NET?

2003-01-15 Thread Dhaval Desai
Hello ppl, I was just wondering what is php's future with something like Asp .Net coming up...I have read many articles by Php guys who think Asp.Net is the future. If that's the true case...is it really worth sticking to Php at all? Thanx! -Dhaval _

Re: [PHP] Php's future with Asp .NET?

2003-01-15 Thread hitek
IMHO, and without even comparing the feature sets, php has one distinct advantage for me: It's free. I'm pretty sure a lot of hosting companies feel the same way. Keith At 11:07 PM 1/15/2003, Dhaval Desai wrote: Hello ppl, I was just wondering what is php's future with something like Asp .Net

Re: [PHP] Php's future with Asp .NET?

2003-01-15 Thread rw
What is asp.net? It's something to catch a snake with! Quoting Dhaval Desai <[EMAIL PROTECTED]>: ### Hello ppl, ### ### I was just wondering what is php's future with something like Asp .Net ### coming up...I have read many articles by Php guys who think Asp.Net is the ### ### future. If that

Re: [PHP] Images : Store in dB or disk?

2003-01-15 Thread Jason Wong
On Thursday 16 January 2003 13:23, Bobby Patel wrote: > I AGREE that storing images strored on disk is a valid approach PROVIDED > that you only need 1 image per page, but if you need to grab a bunch at a > time, I do beleieve that storing the actual file on the dB is faster. > > I would like to h

Re: Re: [PHP] All Request to the same script

2003-01-15 Thread SLanger
Hello First of all thanks for the suggestion. I thought something along these lines. The disadvantage to this approach in my opinion is that I have to include the controller in all pages and it is therefor not possible to integrate pages which I do not control without breaking the concept of r

Re: [PHP] Windows vs Linux

2003-01-15 Thread Jason Wong
On Thursday 16 January 2003 09:15, Beauford.2002 wrote: > The settings in both were virtually identical. It's a mute point however as > I have uninstalled both PHP and MySQL. This was just a test project anyway, > and I really don't want to put the time into it. I have a working copy of > both on m

[PHP] intermittent session loss

2003-01-15 Thread Justin French
Hi, I think I may have made some headway with my server problems. I loaded the site onto another account within the same machine, and I can't seem to replicate the "document contained no data" error at all. BUT I did notice that once I login (it says "you are logged in as justin" across the top

Re: [PHP] Question about $_GET

2003-01-15 Thread Frank Keessen
Hi, Thanks for the great help! It's working now! The solution: $query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = {$_GET['id']}"; Regards, Frank - Original Message - From: "Rick Emery" <[EMAIL PROTECTED]> To: "Frank Keessen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>

<    1   2