[PHP] Repost: PHP,filesys,IIS

2003-10-02 Thread Michael Kochendoerfer
Hi, does anyone know how to handle file and directory paths on a IIS 5.0 server? Problem is that the server has multi-domain and each domain has an associated 'root' dir below e:\webspaces. So if one uses relative path strings, an opendir() for example will fail. One has to use "e:\\webspaces\

RE: [PHP] Variables not passed on localhost setup

2003-10-02 Thread Angelo Zanetti
with regard to register_globals being off, what kind of security implications are there? And what would you define as badly/poorly written php code? brush your teeth?? =) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2003 7:06 PM To: [E

Re: [PHP] Variables not passed on localhost setup

2003-10-02 Thread - Edwin -
Hi, On Thu, 2 Oct 2003 09:26:37 +0200 "Angelo Zanetti" <[EMAIL PROTECTED]> wrote: > with regard to register_globals being off, what kind of security > implications are there? And what would you define as badly/poorly > written php code? Here's a (simple) example: http://www.php.net/manual/en/

Re: [PHP] Help with treeview

2003-10-02 Thread - Edwin -
Hi, On Thu, 2 Oct 2003 15:18:48 +1000 "Stephen" <[EMAIL PROTECTED]> wrote: > Does anyone know how to implement a treeview style display in PHP? Hmm... what exactly do you mean by "treeview"? Anyway, *I think* this is more of a Javascript/HTML question... So, find a site that uses "treeview" then

Re: [PHP] CURL + https

2003-10-02 Thread - Edwin -
Hi, On Wed, 1 Oct 2003 14:14:11 +0200 "Yonatan Ben-Nes" <[EMAIL PROTECTED]> wrote: > well when i try to work with curl through the shell it work fine > without any problems more then that when i use the curl with php > at my server to another page at my server its working fine also, > just wh

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-02 Thread - Edwin -
On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: > On Wed, Oct 01, 2003 at 02:46:14PM -0400, Gerard Samuel wrote: > : > : When I say that I don't know what characters Im expecting. > : Im not talking about normal html entities, like &   < > : Im talking about chinese/japane

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-02 Thread - Edwin -
But, On Wed, 01 Oct 2003 14:46:14 -0400 Gerard Samuel <[EMAIL PROTECTED]> wrote: ...[snip]... > When I say that I don't know what characters Im expecting. > Im not talking about normal html entities, like &   < > Im talking about chinese/japanese/korean/taiwanese alphabet, numbers > > (even pun

Re: [PHP] (another) regex difficulty

2003-10-02 Thread jonas_weber
Am Donnerstag, 02.10.03 um 01:37 Uhr schrieb Cristian Lavaque: doh, I now understand your question, you don't mean the asterisk literally, but as any character that follows a backslash... sorry -_- that's right ;) -- anyway, thanks for your effort! my problem was that i misunderstood the escape-t

[PHP] array_diff

2003-10-02 Thread Angelo Zanetti
Hi all, I am getting some weird results when using the array_diff() function. eg: $arrayResult = array_diff($array1, $array2); When i use it the resulting array ($arrayResult) gets the correct number of elements, however when I echo the elements in $arrayResult it contains some blank values. eg

Re: [PHP] With problem about imagestring() function.

2003-10-02 Thread Jason Wong
On Thursday 02 October 2003 12:52, So-Net wrote: > I'm using windows XP professional sp1 with IIS5.0 > I installed PHP 4.3.3 with GD 2.0 already. > > It is because I'm a Hong Kong people, so we required to draw some strings > that is chinese in language. However, imagestring() cannot show it > pro

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote: : : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: : > : > There's two issues: input and output. : > : > HTML character references address the problem of displaying certain : > characters on a web browser. This

Re: [PHP] PHP Bug Problems

2003-10-02 Thread Eugene Lee
On Wed, Oct 01, 2003 at 07:50:10PM -0700, Richard Baskett wrote: : : Well I saw a post on a forum talking about a certain bug that PHP has for : Mac OS X.. so I thought.. Im on OS X, I should see if that bug is real since : on bugs.php.net they say it's bogus which you can view here: : : http://b

Re: [PHP] array_diff

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 10:44:15AM +0200, Angelo Zanetti wrote: : : I am getting some weird results when using the array_diff() function. : : eg: $arrayResult = array_diff($array1, $array2); : : When i use it the resulting array ($arrayResult) gets the correct number of : elements, however when

Re: [PHP] Attempt at putting greedy htmlspecialchars on a diet

2003-10-02 Thread - Edwin -
On Thu, 2 Oct 2003 03:58:48 -0500 Eugene Lee <[EMAIL PROTECTED]> wrote: > On Thu, Oct 02, 2003 at 05:15:32PM +0900, - Edwin - wrote: > : > : On Thu, 2 Oct 2003 01:54:43 -0500 Eugene Lee <[EMAIL PROTECTED]> > wrote:: > > : > There's two issues: input and output. > : > > : > HTML character refere

RE: [PHP] array_diff

2003-10-02 Thread Angelo Zanetti
thanx Eugene, I know what the problem was, firstly that when doing an array_diff the keys are preserved. Therefore If I was looping through $arrayResult for the count of elements (in this case 2) then thats where the blank value comes in. SO therefore if I wanted to get all the values out of the $

[PHP] File download problem using Netscape 7.x

2003-10-02 Thread Ulrich Hacke
Hello, I have some files on a website which the user can download (e.g. pdf, zip...). The files sould not bw displayes but the browser should aks the user what to do (e.g. save it to disk, open it). My code look like this: header("Content-type: application/octet-stream"); header("Content-dispositi

RE: [PHP] array_diff [SOLVED]

2003-10-02 Thread Angelo Zanetti
-Original Message- From: Angelo Zanetti [mailto:[EMAIL PROTECTED] Sent: Thursday, October 02, 2003 11:28 AM To: Eugene Lee; [EMAIL PROTECTED] Subject: RE: [PHP] array_diff thanx Eugene, I know what the problem was, firstly that when doing an array_diff the keys are preserved. Therefore

Re: [PHP] array_diff

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 11:28:23AM +0200, Angelo Zanetti wrote: : : I know what the problem was, firstly that when doing an array_diff the keys : are preserved. Therefore If I was looping through $arrayResult for the count : of elements (in this case 2) then thats where the blank value comes in. S

[PHP] MySQL get second row problem

2003-10-02 Thread Joe Harman
Hello... I am having just alittle trouble with this... I know it's simple... Look at my comment for the problem I am having Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL get second row problem

2003-10-02 Thread Petre Agenbag
Either limit your query to return only the second row ( look in mysql manual for the limit caluse), or you will need to move the array counter forward one for the $row_rsLastL = mysql_fetch_assoc($rsLastL) operation.(php manual under array functions) On Thu, 2003-10-02 at 12:10, Joe Harman wrote:

RE: [PHP] MySQL get second row problem [Solved]

2003-10-02 Thread Joe Harman
Hey Thanks Petre Cheers... And a big brain fart > -Original Message- > From: Petre Agenbag [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2003 6:17 AM > To: Joe Harman > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] MySQL get second row problem > > > Either limit your query to

[PHP] Dynamic tables-Change cell colour with drop down menu

2003-10-02 Thread irinchiang
Hi all: I am doing a dynamic kinda timetable where all the cells are uniquely coloured. And then for each cell, I would like to change its colour through a dropdown menu. This dropdown menu should of course have a list of colours for me to choose. Once I have selected the colour I want, the parti

RE: [PHP] Dynamic tables-Change cell colour with drop down menu[Scanned]

2003-10-02 Thread Michael Egan
One possible solution: In the form create the dropdown menu with the colour name being displayed to the user but the hexadecimal value of the colour being stored in the value field, i.e. Red When user selects the colour this should give you the colour reference to use when displaying the res

Re: [PHP] "Too many connections" fix?

2003-10-02 Thread Raditha Dissanayake
pconnect vs connect: Isn't it what the apache project calls the 'stampeding herd' problem? original question: Nicole one of the simplest, cheapest and best solutions is to put your log files on a separate hard disk. you will be amazed by the result. You would ofcouse get even better results

Re: [PHP] Dynamic tables-Change cell colour with drop down menu

2003-10-02 Thread Marek Kilimajer
[EMAIL PROTECTED] wrote: I do not want to it using javascript as java script can only display data on the client side but not the server side. You can make the data available on the client side. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] "Too many connections" fix?

2003-10-02 Thread Raditha Dissanayake
Hi, Pardon me, looks like i haven't answered the original question after all. Need coffee. Here is another attempt. Have you considered mysql replication? this is an easy way of building both a fail safe system as well as to balance the load. the drawback is that you need to pay for an extra s

RE: [PHP] upload security

2003-10-02 Thread Jay Blanchard
[snip] I have a question concerning security of my file upload script. I'm using the php upload routines (move_uploaded_file,...) and variables ($_FILES) to upload images to a webdirectory. Everything works fine, meaning that I can upload images BUT only if I change the permission of the directory

RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
On 01 October 2003 21:02, [EMAIL PROTECTED] wrote: > 1. The PHP manual sais to escape the escape char, it has to > be written > twice*, but: Yes, it does. But it also says that to put a \ into a string, you need to write it twice ("escape" it) ***. So: > $term = preg_replace('/(\\)/', 'backsla

RE: [PHP] regex drive me crazy

2003-10-02 Thread Ford, Mike [LSS]
Ooops, forgot the footnote: *** http://www.php.net/manual/en/language.types.string.php#language.types.string .syntax Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Info

[PHP] PHP Editor

2003-10-02 Thread Nico Berg
Hi there, I am pretty new in PHP coding. So for starters i want to know what is a good php-editor? I like them freeware for windows. Greeting and thanks in advance, Nico -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi uploads permissions

2003-10-02 Thread Raditha Dissanayake
Hi, you can either use the chown function in php syntax: |int chown|(string filename, mixed user); or use backticks (`) to call the system chown executable. The simplest way however might be to ask your sysadmin to set the umask for you. best regards Cameron Metzke wrote: Hi all, I have a multi

RE: [PHP] PHP Bug Problems

2003-10-02 Thread Jay Blanchard
[snip] So I tried it out.. at first I created a loop that assigned $x = 1; a whole bunch of times, but that didn¹t crash anything.. .. 7996 Well to make an already long story short.. it looks like after a couple of hours bugs.php.net has removed my post. My question to you is.. is there any rea

RE: [PHP] PHP Session not working

2003-10-02 Thread Jay Blanchard
[snip] We are facing some problems in using sessions in our applications. Recently we have moved our web site to a new Apache server (1.3). We have installed PHP on this server. But sessions are not working on this server. The values in the session variables are not carried forward to the conseq

RE: [PHP] PHP Editor

2003-10-02 Thread Jay Blanchard
[snip] I am pretty new in PHP coding. So for starters i want to know what is a good php-editor? I like them freeware for windows. [/snip] EDIT for windows is great, it's free, it's already installed and it requires that you do no additional searching of manuals, archives, or the web to use. Cl

[PHP] Do not use Apache 2.0 and PHP in a production environment neither on Unix nor on Windows.

2003-10-02 Thread Dave Restall - System Administrator
Hi, not sure if this is the right place to ask but does anybody have any ideas how long it will be before PHP/Apache 2 is considered stable enough to be used in a production environment ?. I set up a test box with them both on nearly a year ago and the online documentation still cautions against

[PHP] datediff in php

2003-10-02 Thread bob pilly
Hi all Does anyone know if there is a date difference function in php? I have searched the manual but found none. What im after is a function that will return the number of days or seconds between a start date and a second date. Much like DATEDIFF in ms sql. Any help or pointing to relevant do

RE: [PHP] datediff in php

2003-10-02 Thread Jay Blanchard
[snip] Does anyone know if there is a date difference function in php? I have searched the manual but found none. What im after is a function that will return the number of days or seconds between a start date and a second date. Much like DATEDIFF in ms sql. Any help or pointing to relevant docs wo

RE: [PHP] PHP Editor

2003-10-02 Thread Jay Blanchard
[snip] I have the Dutch translation of the php-bible and they write: Use the right tool, don't let anybody tell you you need notepad or tools like that, use a proper tool. Are they dumm? Is it better to use a tool like emacs, notepad, edit or someting like that? The advice Visual Slickedit but tha

RE: [PHP] upapck() woes

2003-10-02 Thread Jay Blanchard
[snip] Have you tried using the unpack() function ? If you don't know the format of the original data it can be a long process undoing it :) [/snip] Thanks Tom, I was experimenting with the unpack() function...your stuff definitely will help. I'll keep you updated if I run across anything earth s

[PHP] include() problems

2003-10-02 Thread Gustave Bernier
Hi everyone, I'm new to PHP and I'm trying to use the include function but with no success... My server's ini file is set as (allow_url_fopen, 0) so I'm having some trouble to pass different values for the php file I'm calling. The address is: http://mydomain.com/forums/ssi.php?a=active The c

[PHP] Re: include() problems

2003-10-02 Thread Dennis Sterzenbach
"Gustave Bernier" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, > > I'm new to PHP and I'm trying to use the include function but with no > success... My server's ini file is set as (allow_url_fopen, 0) so I'm > having some trouble to pass different values for the php

Re: [PHP] PHP Bug Problems

2003-10-02 Thread Richard Baskett
on 10/2/03 5:12 AM, Jay Blanchard at [EMAIL PROTECTED] wrote: > [snip] > > So I tried it out.. at first I created a loop that assigned $x = 1; a whole > bunch of times, but that didn¹t crash anything.. .. 7996 > > Well to make an already long story short.. it looks like after a couple of > hours

RE: [PHP] PHP Bug Problems

2003-10-02 Thread Jay Blanchard
[snip] > Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is just > downright goofy! Did you happen to try it with 8000+ repeated blocks of any > other type? My bet is that it would quit then too. Yeah no crash because that's only a couple lines of code :) And yeah it doesn¹

[PHP] Hosting ADDR.com (0t)

2003-10-02 Thread Ryan A
Hi everyone, Anyone else here hosting with ADDR.com? I am hosting with them and all of a sudden they seem to have disappeared!!! When i type http://addr.com i go to verisigns damn search page Both the domains with them still seem to be up and functioning but cant send mail from my php scripts the

Re: [PHP] need PHP server

2003-10-02 Thread The Doctor
On Thu, Sep 25, 2003 at 05:22:44PM +0700, Hung Cuong wrote: > I need an server to put my php file to post mail. > So anybody can introduce me some server > Thanks. > Check up http://www.nk.ca > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsu

RE: [PHP] Help with treeview

2003-10-02 Thread Craig Lonsbury
This should get you started... http://www.sitepoint.com/article/1105/1 it is a great article assuming that you will be using a db to store your data. hth, Craig -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: October 1, 2003 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP

RE: [PHP] Hosting ADDR.com (0t)

2003-10-02 Thread Dan Joseph
Hi, I'm getting to their page ok. Nice page really. purple and green, has their prices, etc.. they're probably hosting with Verisign, and Verisign had an issue temporarily. -Dan Joseph > -Original Message- > From: Ryan A [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2003 10:

Re: [PHP] Hosting ADDR.com (0t)

2003-10-02 Thread Ryan A
Thanks guys, Cant understand why i cant seem to get to them for the past 2 days. Yes, very nice site and no problem with them so far except that they are running an old version of MySql 3.xx instead of 4. Any ideas please mail me. Cheers, -Ryan We will slaughter you all! - The Iraqi (Dis)info

Re: [PHP] PHP Bug Problems

2003-10-02 Thread Richard Baskett
on 10/2/03 7:00 AM, Jay Blanchard at [EMAIL PROTECTED] wrote: > [snip] >> Because it is not a bug, it is bad code design! 8000+ lines of $x = 1; is >> just >> downright goofy! Did you happen to try it with 8000+ repeated blocks of any >> other type? My bet is that it would quit then too. > > Yeah

[PHP] Create from PHP on the Fly???

2003-10-02 Thread Jeffrey Fitzgerald
Can this be done? How much $$$? Quality of PDF?? Thanks very much... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with treeview

2003-10-02 Thread Ray Hunter
> Does anyone know how to implement a treeview style display in PHP? PEAR has a treeview that I have used in the past and it works fine. http://pear.php.net/package/HTML_TreeMenu -- BigDog -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] datediff in php

2003-10-02 Thread Eugene Lee
On Thu, Oct 02, 2003 at 01:36:04PM +0100, bob pilly wrote: : : Does anyone know if there is a date difference function in php? I have : searched the manual but found none. What im after is a function that : will return the number of days or seconds between a start date and a : second date. Much l

Re: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Raditha Dissanayake
how many glasses of beer? apples or oranges? is it raining out side? you are welcome. Jeffrey Fitzgerald wrote: Can this be done? How much $$$? Quality of PDF?? Thanks very much... -- Raditha Dissanayake.

[PHP] Re: Create from PHP on the Fly???

2003-10-02 Thread Dennis Sterzenbach
"Jeffrey Fitzgerald" <[EMAIL PROTECTED]> wrote: > > Can this be done? How much $$$? Quality of PDF?? Thanks very much... > WTF are you talking about? If you are talking about PDF: google is your friend. -- Dennis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Robert Cummings
On Thu, 2003-10-02 at 10:36, Jeffrey Fitzgerald wrote: > > Can this be done? How much $$$? Quality of PDF?? Thanks very much... Yes it can. Depends on the chosen solution. Depends on the chosen solution. An easy to use system is htmldoc which can convert HTML content to a PDF. This does

Re: [PHP] Very first web app and questions

2003-10-02 Thread David T-G
Mike -- ...and then [EMAIL PROTECTED] said... % % I've just to put together my very first little web application project in % PHP and I have a couple of questions. Yay! Good for you :-) % ... % The second question is the real one. Because this site may eventually be % put onto the web as an

[PHP] User authentication

2003-10-02 Thread Jeff McKeon
Hey all, I'm building a website that will pull data from mysql db. No problem there. I've got a page to create users and store their info in a user table on another db. What I want to be able to do is have a user log in and then only have access to view information that his profile allows. I'm

[PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Zak Mc Kracken
Hi all, I'm using syslog() function to log messages. My problem is enough typical. An example: syslog ( LOG_DEBUG, "The function output is: " . very_slow_func () ); Since very_slow_func() is, as written, very slow, I would like to know in advance if this message will be actually logged or not, so

RE: [PHP] Do not use Apache 2.0 and PHP in a production environme nt neither on Unix nor on Windows.

2003-10-02 Thread Johnson, Kirk
> -Original Message- > From: Dave Restall - System Administrator [mailto:[EMAIL PROTECTED] > how long it will be before PHP/Apache 2 is considered stable > enough to be > used in a production environment ?. Below is how Rasmus answered this question back on 7/4/03. Kirk >> Apache2 has

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > I'm not quite sure how to do this however so I'm looking for advise to > point me in the right direction. I suspect, that once validated via the > login page, I need to store the users permissions in a session variable > and then before each page loads, check to see if the page's permission

[PHP] RE: if..else condition for checkbox

2003-10-02 Thread Rob A. Brahier
Irin, Quite a number of issues here, actually. We'll start with your question and work from there. Using the checkbox as an example, the code you would use to check if it was set is: if($_GET['Cheque'] == 'Cheque') { // The Cheque checkbox was checked. } else { // The Ch

Re: [PHP] Re: include() problems

2003-10-02 Thread Gustave Bernier
Thanks for answering. I'm trying to include that file because in my index page because it has many functions I need to use in other pages... I'm on ADDR.com servers and I can't set "allow_url_fopen" to 1 (it sucks!). In ssi.php functions are called by accessing this address: http://mydomain.com

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Dan, That's great help and exactly what I'd like to do timeouts and all. I now just need to figure out he mechanics of the code for it and get a better understanding of sessions. I'm thinking in the user table I'll have a bunch of boolean fields for different permissions that apply to different

[PHP] embedding code

2003-10-02 Thread John Taylor-Johnston
Are there other ways of embedding or code into an HTML file? On one project, when I try to upolad files with embedded PHP code, they actually filter for those tags and won't permit the FTP transfer. Like reeeal paranoid. Any ideas? John

[PHP] Re: include() problems

2003-10-02 Thread Dennis Sterzenbach
> I'm trying to include that file because in my index page > because it has many > functions I need to use in other pages... I'm on ADDR.com > servers and I > can't set "allow_url_fopen" to 1 (it sucks!). > In ssi.php functions are called by accessing this address: > http://mydomain.com/forums/ss

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > That's great help and exactly what I'd like to do timeouts and all. I > now just need to figure out he mechanics of the code for it and get a > better understanding of sessions. I'm thinking in the user table I'll > have a bunch of boolean fields for different permissions that apply to > d

[PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have a main window which I will refer to as mainwindow (window.name='mainwindow' in the onload

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > How do you check for idle? I suppose there is a built in variable that > you check against the value in the table. How do I pull up or refer to > session variables? Additionally, I also check to see if the date_out column in my sessions table is -00-00 00:00:00, if not, I boot

Re: [PHP] How to know wheter a message will be logged or not

2003-10-02 Thread Marek Kilimajer
Current version of PHP cannot forsee the future, this will be worked on when PHP5 is out and stabilized. Untill then you have to make your own judgments, for example if the array you feed into very_slow_func() has more then 1486 elements, your code will time out. Zak Mc Kracken wrote: Hi all,

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Thanks for the advise! It's a big help. I'll go play now and come back with more intelligent questions later! Jeff > -Original Message- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2003 11:32 AM > To: Jeff McKeon; Dan Joseph; php > Subject: RE: [PHP] User au

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
What is stored in the date_out column? Is that one of the colums in your own created table or a standard one? Jeff > -Original Message- > From: Dan Joseph [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 02, 2003 11:34 AM > To: php > Subject: RE: [PHP] User authentication > > > Hi,

Re: [PHP] User authentication

2003-10-02 Thread Curt Zirzow
* Thus wrote Dan Joseph ([EMAIL PROTECTED]): > Hi, > > > That's great help and exactly what I'd like to do timeouts and all. I > > now just need to figure out he mechanics of the code for it and get a > > better understanding of sessions. I'm thinking in the user table I'll > > have a bunch of b

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > What is stored in the date_out column? Is that one of the colums in > your own created table or a standard one? That's the SQL table that I use to track sessions. Its one I created. I have a functon that does a simple SQL query: SELECT date_out FROM sessions WHERE user_i

RE: [PHP] embedding code

2003-10-02 Thread spectre013
Try //php Code here Or if you have asp tags turned on you can use <% %> Hth - Thank You Brian Paulson Sr. Web Developer [EMAIL PROTECTED] www.chieftain.com 1-800-279-6397 - -Original Message- From: John Taylor-John

RE: [PHP] Create from PHP on the Fly???

2003-10-02 Thread Jay Blanchard
[snip] Can this be done? How much $$$? Quality of PDF?? Thanks very much... [/snip] You mean PDF creation on the fly using PHP? It's free. Start here ... http://us3.php.net/PDF There are some good PDF creation classes out there, such as FPDF http://www.fpdf.org -- PHP General Maili

Re: [PHP] Reloading a specific window

2003-10-02 Thread Marek Kilimajer
Output from action.php: opener.location.reload(); close(); Rich Fox wrote: Warning for server side purists: My php scripts use javascript to popup and close windows. So this question, although posted to a php newsgroup, has elements of javascript too. Gasp! No flames please. I have a main window

Re: [PHP] Reloading a specific window

2003-10-02 Thread Rich Fox
This does not work, when I replace my header function with: elseif (isset($_POST['btnSave'])) { .. database update, then... $ostr = <<< OUTPUT; document.window.opener.reload() self.parent.close(); OUTPUT; echo $ostr; //header("Locati

[PHP] Getting many virii the last time

2003-10-02 Thread Dennis Sterzenbach
Hello to all I am receiving many virii through the different PHP mailinglists I use to read and post in. Could the lists administrators please review that problem? i.e. my ISP told me that I receive quite a lot Worm.Gibe.F and I see they seem to be coming from PHP mailinglists. If you would like

RE: [PHP] Re: your method for validating forms

2003-10-02 Thread Chris W. Parker
Chris Shiflett on Wednesday, October 01, 2003 11:18 PM said: > There are definitely benefits to saving the extra request and response > necessary to properly display errors, but I'm not so sure I would > count usability as one of them. In addition, the user's percept

RE: [PHP] PHP Editor

2003-10-02 Thread Chris W. Parker
Nico Berg on Thursday, October 02, 2003 5:09 AM said: > I am pretty new in PHP coding. So for starters i want to know what is > a good php-editor? > I like them freeware for windows. HTML-Kit www.chami.com c. -- PHP General Mailing List (http://www.php.net/)

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
Ok, I've got a login page that has these funtions to set the userid and password to session variables [code start] session_start(); if(!isset($userid)) { login_form(); exit; } else { session_register("userid", "userpassword"); $username

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > The problem is that the $_SESSION['userid'] doesn't return anything on > this page.. > Am I not calling the session variable correctly or not storing it > correctly? > In my php.ini I have globals turned off. Does this effect it? Hi, yeah, its my understanding (and someone can corr

RE: [PHP] include() problems

2003-10-02 Thread Chris W. Parker
Gustave Bernier on Thursday, October 02, 2003 6:20 AM said: > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be

RE: [PHP] User authentication

2003-10-02 Thread Ford, Mike [LSS]
On 02 October 2003 17:27, Jeff McKeon wrote: > Ok, > > I've got a login page that has these funtions to set the userid and > password to session variables > > [code start] > session_start(); > if(!isset($userid)) { > login_form(); > exit; > } > else { >

Re: [PHP] include() problems

2003-10-02 Thread Chris Sherwood
<-- snip --> From: "Chris W. Parker" <[EMAIL PROTECTED]> > The address is: http://mydomain.com/forums/ssi.php?a=active > > The code I'm trying now is: > $_GET['a'] = 'active'; > include('forums/ssi.php'); You're including the parent file in itself. This could be the problem. <--SNIP --> espec

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > (1) I don't see a session_start() on the second page (unless it's in > register_functions.php?). Old habbits die hard. You have no idea how many times I forget to put this at the top of a page. Thanks for pointing that out. -Dan Joseph -- PHP General Mailing List (http://www.ph

Re: [PHP] "Too many connections" fix?

2003-10-02 Thread Alister
On Wed, 1 Oct 2003 21:17:09 -0700 (PDT) Chris Shiflett <[EMAIL PROTECTED]> wrote: > --- Nicole <[EMAIL PROTECTED]> wrote: > > So I switched to connect, with no luck in fixing the "too many > > connections" problem. > > Now that's some helpful information. The first thing you need to do is > forge

[PHP] Getting the FULL path

2003-10-02 Thread zavaboy
How do I get my FULL path... I made a web-based installer and it uses a path. Ok, my path to where I need it is: /home/jimbug/public_html/zavaboy/phptest/ZML Using dirname(): /phptest/ZML Why is that? How can I get PHP to output '/home/jimbug/public_html/zavaboy/phptest/ZML' automatically? --

Re: [PHP] Getting the FULL path

2003-10-02 Thread Jason Wong
On Friday 03 October 2003 01:33, zavaboy wrote: > How do I get my FULL path... I made a web-based installer and it uses a > path. > > Ok, my path to where I need it is: > /home/jimbug/public_html/zavaboy/phptest/ZML > > Using dirname(): > /phptest/ZML > > Why is that? If you're saying: echo dir

Re: [PHP] Getting the FULL path

2003-10-02 Thread J Morton
$_SERVER['SCRIPT_FILENAME'] or $_SERVER['DOCUMENT_ROOT'] Justin zavaboy wrote: > How do I get my FULL path... I made a web-based installer and it uses a > path. > > Ok, my path to where I need it is: > /home/jimbug/public_html/zavaboy/phptest/ZML > > Using dirname(): > /phptest/ZML > > Why is th

Re: [PHP] Getting the FULL path

2003-10-02 Thread zavaboy
Ok, thanks! $_SERVER['DOCUMENT_ROOT'].dirname($PHP_SELF) was just what I wanted! "J Morton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $_SERVER['SCRIPT_FILENAME'] or $_SERVER['DOCUMENT_ROOT'] > > Justin > > zavaboy wrote: > > > How do I get my FULL path... I made a web-based ins

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
> > On 02 October 2003 17:27, Jeff McKeon wrote: > > > Ok, > > > > I've got a login page that has these funtions to set the userid and > > password to session variables > > > > [code start] > > session_start(); > > if(!isset($userid)) { > > login_form(); > > ex

Re: [PHP] User authentication

2003-10-02 Thread Jason Wong
On Friday 03 October 2003 01:50, Jeff McKeon wrote: > > (2) I would advise not mixing $_SESSION and > > session_register() -- it's problematical in some situations. > > Just stick to using the $_SESSION array. > > I'm not quite sure what you mean here, can you give an example or > elaborate. Sorr

RE: [PHP] User authentication

2003-10-02 Thread Jeff McKeon
> Hi, > > > What is stored in the date_out column? Is that one of the > colums in > > your own created table or a standard one? > > That's the SQL table that I use to track sessions. Its > one I created. I have a functon that does a simple SQL query: > > SELECT date_out FROM se

[PHP] passing form information.

2003-10-02 Thread Payne
Hi, I am working a form to pass information from it to mysql data. I am able to connect to the database. But nothing is being pass from the form to the php page. This is my php code... -form.html Untitled

Re: [PHP] User authentication

2003-10-02 Thread Jason Wong
On Friday 03 October 2003 01:59, Jeff McKeon wrote: > So when a user logs in you write a user_id and datestamp to a field in > your sessions table. Every time the person accesses a page you update > the datestamp in that record. Then you run a function that checks every > X minutes if the timest

[PHP] Are variable object vars possible?

2003-10-02 Thread Jason Godesky
I've been playing with variable variables and variable functions lately, and I was wondering if there was anyway to use that with object variables? I'm trying to make classes that can store instances in a database, and I'd like to have an abstract parent class with a load() method ... but since

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > So when a user logs in you write a user_id and datestamp to a field in > your sessions table. Every time the person accesses a page you update > the datestamp in that record. Then you run a function that checks every > X minutes if the timestamp is older than X minutes and if so you log th

RE: [PHP] User authentication

2003-10-02 Thread Dan Joseph
Hi, > > (2) I would advise not mixing $_SESSION and > > session_register() -- it's problematical in some situations. > > Just stick to using the $_SESSION array. > > I'm not quite sure what you mean here, can you give an example or > elaborate. Sorry, real newbie here... :o) $_SESSION['u

Re: [PHP] passing form information.

2003-10-02 Thread Chris Sherwood
Hi Payne for starters your missing an ? at the last echo secondly I would rewrite the sql statement to read $sql = "INSERT INTO $table_name (leads_id, title, f_name, l_name) VALUES (' ".$leads_id." ', ' ".$title." ', ' ".$f_name." ', ' ".$l_name." ');"; but the state

  1   2   >