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]>

[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] 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

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] 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: [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] 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

[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] 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

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

[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] 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] 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] 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'

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

[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!

[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] 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

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

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] 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] 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
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] 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] 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] 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

[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] 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] 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] 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] 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] 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

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] 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

[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

[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] 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

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.

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] "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

[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

[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

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] 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] 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

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: 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] 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: [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] 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

[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] 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

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] 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
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

[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 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] 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 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

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

[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: [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

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

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 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

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason Wong
On Thursday 16 January 2003 04:35, [-^-!-%- wrote: > I agree with Chris, the quote should stay there to prevent confusion. > Nevertheless, I often run in the same problem. Sometimes, the only way to > fix it is by removing the quotes ($_GET[id]). > > I know PHP documents goes against this, but it

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

2003-01-15 Thread Scott Fletcher
That wouldn't work if there is already a Session ID, so that's where HTTP_REFERER come into play. Try it out by logging to any webpages with Session ID. Then copy the URL address with the Session ID already there. Paste it into an email and send it to a different computer. On the new computer,

[PHP] Version Upgrade on Apache/win

2003-01-15 Thread Malcolm Brownell
Hello all, I'm having trouble with upgrading my php 4.1.1 to 4.3. I have Apache 1.3.2 /php 4.1.1/Mysql 3.23.39 on winME. It has been running fine but I can't make php 4.3 work. I have installed 4.3 to a directory next to my current php. I put 4.3 in /php43 and have php 4.1.1 in /php in the sa

Re: [PHP] Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread Jason Lehman
Thanks for the response. I found this web page (http://www.itworld.com/nl/perl/01112001/) right after I submitted my question. It was great for explaining regexp's greediness. 1lt John W. Holmes wrote: I have a script that turns certain words into links. That I am having no problems with, it

Re: [PHP] Security in included PHP files

2003-01-15 Thread Chris Shiflett
--- Jacob Copsey <[EMAIL PROTECTED]> wrote: > I agree these are good solutions and I have considered > them. However, I am looking for an all-inclusive > solution that is code only within PHP that allows the > admin of the application to copy the files to their > server and not need to do any serve

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

2003-01-15 Thread Paul Roberts
try looking at sessions, if they don't have a login session id send them to the login page otherwise they are logged in so let them see the page. works for me Best Wishes & Happy New Year Paul Roberts [EMAIL PROTECTED] - Original Message - From: "Scott Fletch

Re: [PHP] Security in included PHP files

2003-01-15 Thread [-^-!-%-
Have you thought about moving your include files outside of the web directory? i.e.If your site is in ../apache/htdocs/web/mywbsite_folder then move your include files to ../apache/my_include_folder/ or something similar. -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Sol

Re: [PHP] All Request to the same script

2003-01-15 Thread [-^-!-%-
have you tried ==idex.php=== switch($op) { case "intro": include("welcome.php"); break; case "about": include("about.php"); break; case "contact": incldue("contact.php"); break; default: include("welco

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

2003-01-15 Thread Scott Fletcher
It's not a PHP bug. 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. That way, they can keep out the unauthorized access to the website without first logging in to the website. Well, my company'

Re: [PHP] sending array

2003-01-15 Thread [-^-!-%-
This method seems to have a size limitation (which is very small). If your array is (relatively) large, page two will not display the passed values. I'm not sure the url string became too long or if the problem came from SERIALIZE(). Just beware. FYI -john =P e p i e D e s i g n s www.pe

Re: [PHP] Security in included PHP files

2003-01-15 Thread Jacob Copsey
I agree these are good solutions and I have considered them. However, I am looking for an all-inclusive solution that is code only within PHP that allows the admin of the application to copy the files to their server and not need to do any server specific configuration. That is why I don't name the

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

2003-01-15 Thread Chris Shiflett
--- Scott Fletcher <[EMAIL PROTECTED]> wrote: > Here's what I found so interesting > > This code, $_SERVER['HTTP_REFERER'] have worked without a > problem when I use the latest Mozilla build. It even work > with the HierMenus, location.replace('http://whatever.com'), > and location.href = http

Re: [PHP] Security in included PHP files

2003-01-15 Thread Chris Shiflett
--- Jacob Copsey <[EMAIL PROTECTED]> wrote: > My style of PHP is to name all included files with a .php > extension and of course this raises the problem of people > accessing these script files directly. I always name included files *.inc myself, but that's a personal preference combined with a s

[PHP] File() function and require()

2003-01-15 Thread Mike Tharp
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: ... rest of file at the top of all the pages to control user logins. The problem is the file() function only reads in the contents of that file, not the rest of the contents af

Re: [PHP] Question about $_GET

2003-01-15 Thread [-^-!-%-
I agree with Chris, the quote should stay there to prevent confusion. Nevertheless, I often run in the same problem. Sometimes, the only way to fix it is by removing the quotes ($_GET[id]). I know PHP documents goes against this, but it dosn't always work with the quotes. Perhaps the dev team

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jim Lucas
it has to do with declaring all php variables before using them in the script. $var=''; then do something with the variable. Jim - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 9:52 AM Subject: [PHP] W

Re: [PHP] Security in included PHP files

2003-01-15 Thread Jacob Copsey
True. But let's just call me anal retentive. :-) Let's say I didn't have the option of doing what you suggested. Are my ideas sound? Also, those ideas apply to top-level PHP scripts in an application. Jacob "Kevin Stone" <[EMAIL PROTECTED]> wrote in message 007801c2bcd4$02d000f0$6601a8c0@kevin">n

Fw: [PHP] Security in included PHP files

2003-01-15 Thread Kevin Stone
Most web accounts have at least one or two directory levels behind the public directory. Simply place the files behind the public directory and call them into your main script from there. Absolutely no reason those files need to be publically accessible. -Kevin - Original Message - From

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

2003-01-15 Thread Scott Fletcher
Here's what I found so interesting This code, $_SERVER['HTTP_REFERER'] have worked without a problem when I use the latest Mozilla build. It even work with the HierMenus, location.replace('http://whatever.com'), and location.href = http://whatever.com... This is a good news for PHP everywher

RE: [PHP] Session wierdness...

2003-01-15 Thread Timothy Hitchens \(HiTCHO\)
Now what is the output if you do this outside of the function after registering a session var?? Timothy Hitchens (HiTCHO) Open Source Consulting e-mail: [EMAIL PROTECTED] > -Original Message- > From: Duncan Abbott [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 16 January 2003 4:53 AM > T

[PHP] Security in included PHP files

2003-01-15 Thread Jacob Copsey
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 extension and

[PHP] Re: Question about $_GET

2003-01-15 Thread gamin
Frank, With so many various suggestions coming your way, i'll add my 2 cents. I have gone through all this mess. Read the information from the manual about strings constants arrays (why "$some_array[id]", $some_array[id] are wrong, but would work sometimes) [unless u have intentionally defined

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread 1LT John W. Holmes
>> Set your php.ini file and error reporting as such: >> >> error_reporting = E_ALL & ~E_NOTICE >Or initialize your variables before using them ... especially true if >register_globals is on. Yeah, that's the best recommendation. Especially if you plan on distributing your code for others to u

Re: [PHP] OOP

2003-01-15 Thread Jordan Elver
> 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 OOP and don't un

Re: [PHP] OOP

2003-01-15 Thread 1LT John W. Holmes
> I've been doing a little OOP lately and have a few questions. > I want to build an application, there a re lots of elements to the > application: Authentication, Database, Presentation, Error Handling etc. > > Now, I want to code this cleanly and make it reusable. So, a class for each of > these

[PHP] Re: Windows PHP vs Linux PHP

2003-01-15 Thread Scott Fletcher
Well, beaten to it.. "Scott Fletcher" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > global register had nothing to do with it. It's the configuration in the > PHP.INI. > > Look for error_report & display_error in php.ini. Once you reduced the > error mes

Re: [PHP] Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread 1LT John W. Holmes
> I have a script that turns certain words into links. That I am having > no problems with, it is when I want to turn the links back in to plain > text that I am having the problem. Below are my examples. And I know > my regex is being greedy but I don't know how to stop it from being so > damn

[PHP] OOP

2003-01-15 Thread Jordan Elver
Hi, I've been doing a little OOP lately and have a few questions. I want to build an application, there a re lots of elements to the application: Authentication, Database, Presentation, Error Handling etc. Now, I want to code this cleanly and make it reusable. So, a class for each of these eleme

[PHP] Re: Regular Expression Help in my PHP! Sorry if wrong group

2003-01-15 Thread Jason Lehman
I figured out what I was doing wrong. My regexp should of looked like this /]*>(Tampa)<\/a>/ and that made it more specific and kept it to that match. Jason Lehman wrote: I have a script that turns certain words into links. That I am having no problems with, it is when I want to turn the link

RE: [PHP] Session wierdness...

2003-01-15 Thread Duncan Abbott
I did what you suggested and I've attached the output - there's no $_SESSIONS array in there. But I've managed to register session vars outside of this function I'm having trouble with so what's going on? Duncan -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:[EMAIL PROTECTED]

RE: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Matt Schroebel
> -Original Message- > From: Jeff Lewis [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 15, 2003 1:00 PM > To: Beauford.2002; PHP General > Subject: Re: [PHP] Windows PHP vs Linux PHP > > > Set your php.ini file and error reporting as such: > > error_reporting = E_ALL & ~E_NOTIC

Re: [PHP] Authentication programming

2003-01-15 Thread Jordan Elver
Hi Justin, Thanks for that link, looks pretty interesting. I'll take a closer read later. Cheers, Jord -- Jordan Elver Eagles may soar high, but weasels don't get sucked into jet engines. -- David Brent (The Office) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] DSO or static Module?

2003-01-15 Thread Ray Hunter
phpinfo() You can review the configuration command and in there view the command for apache... static = --with-apache=../apache_1.3.27 dso = --with-apxs=/path/to/apxs that should help you out or get you started...you can also verify in apache which module are built-in... On Wed, 2003-01-

[PHP] DSO or static Module?

2003-01-15 Thread Lic. Carlos A. Triana Torres
Hi all, Here is a question that might be too simple to be asked, but I need to know the answer: Is there a way to find out if PHP is compiled as a DSO or as a static module? Thanx

Re: [PHP] Windows PHP vs Linux PHP

2003-01-15 Thread Jeff Lewis
Set your php.ini file and error reporting as such: error_reporting = E_ALL & ~E_NOTICE See if that helps with the undefined notice. jeff - Original Message - From: "Beauford.2002" <[EMAIL PROTECTED]> To: "PHP General" <[EMAIL PROTECTED]> Sent: Wednesday, January 15, 2003 12:52 PM Subje

  1   2   >