Re: [PHP] Create Array?? More

2001-09-22 Thread KPortsmout
Ok, Thanks for the input, unfortunately it didn't help me solve my overall problem, so I will post that and see if anyone has any suggestions... I am basically displaying the Usernames from a .htpasswd file like this... $File="$Path$Directory1/.htpasswd"; $fd = fopen ($File, "r"); $Content =

Re: [PHP] http authentication and php

2001-09-22 Thread Jeff Brtistow
Well the actual problem is that this file is behind a http authenticated directory. I actually don't want the users to know the login and password for it since it is the login for my control panel for my website. However, I do want to be able to execute a url, this is to allow users to create thei

Re: [PHP] Strange output by phpinfo()

2001-09-22 Thread Evan Nemerson
That is interesting. Code Red II doesn't trojan browsers, does it??? Hmm that's an interesting idea... Are you using a (malicious) proxy server? That's all I can come up with... On Saturday 22 September 2001 18:50, you wrote: > While viewing my phpinfo() page, i got this: > > QUERY_STRING >

Re: [PHP] Create Array??

2001-09-22 Thread Evan Nemerson
$i=Array(); would probably be better as $temp=Array(); although i THINK either one is redundant... sorry > /* Untested */ > $num = 32; > $i=Array(); > for($x=1;$x<=$num;$x++) { > $temp[$x]=0; > }; > $i=array_keys($temp); > unset($temp); > > On Saturday 22 September 2001 23:09, you wrote:

Re: [PHP] http authentication and php

2001-09-22 Thread Evan Nemerson
if you just want to output the file to the user, readfile("http://server.com/greendocks/locked/useradd.htm?user=blah&pass=blah";); should work. If you want to play with the file first, file() will put it in an array, fopen() will create a file pointer to it, you could create your very own HTTP

Re: [PHP] Create Array??

2001-09-22 Thread Evan Nemerson
/* Untested */ $num = 32; $i=Array(); for($x=1;$x<=$num;$x++) { $temp[$x]=0; }; $i=array_keys($temp); unset($temp); On Saturday 22 September 2001 23:09, you wrote: > Hi, > > If I have a value $num = 32; based on this how can I create an Array of > numbers 1 - 32, something like this... >

RE: [PHP] Create Array??

2001-09-22 Thread Andrew Braund
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Sunday, 23 September 2001 15:39 > To: [EMAIL PROTECTED] > Subject: [PHP] Create Array?? > > > Hi, > > If I have a value $num = 32; based on this how can I create an Array of > numbers 1 - 32, something li

[PHP] Create Array??

2001-09-22 Thread KPortsmout
Hi, If I have a value $num = 32; based on this how can I create an Array of numbers 1 - 32, something like this... Any suggestions?? I cannot use array_push as this has to work on a PHP3 server. TIA Ade -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

[PHP] timeouts on loops

2001-09-22 Thread Evan Nemerson
Is there a way to put a timeout on each iteration of a loop (foreach, to be more specific)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED

[PHP] Multiple Arrays in OOP

2001-09-22 Thread Jamie Smith
hi I'm hoping that someone here can help me I'm totally new to object oriented stuff and might be trying to do this totally ass backwards. Having said that this also involves multidimensional arrays and I'm not to bright with these either . :) I have looked on the web and FAQ's and manuals for

Re: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-22 Thread Jason G.
Mark, PHP, at this point, does not support MultiDimension arrays. However, you can get around this by placing array's inside arrays. Thus: $myarray[0] = array("element00", "element01","element02"); $myarray[1] = array("element10", "element11","element12"); $myarray[2] = array("element20", "el

[PHP] !!Burn DVD using your CDRW!!

2001-09-22 Thread nobody
Hi! Yes it sounds too good to be true but it IS true! You can burn your very own DVD with a regular CD burner! You can make BIG money selling this incredible software too! This is NOT a scheme or hype! It's the most advanced technology! To burn: http://www.dvdcopy.tv To sell: http://resell.

[PHP] Assistance Please - Two-Dimension Arrays

2001-09-22 Thread Mark van Proctor
I'm trying to fill information that i read out of files into a 2 dimensional array. My main problem (i think) is that i dont know how to declare a 2 dimensional array prior to adding parts to it. Especially since the size of each internal array and the external array are all picked up from the fil

[PHP] http authentication and php

2001-09-22 Thread Jeff Bristow
I am trying to write a php script that will work around a http authentication that I do have access to. I am trying to do this so that a form process in my control panel can automatically have information sent to it from a form that a user will fill out. However, my problem is in trying to get

[PHP] mysql_connect failes w/ variables and defines. why?

2001-09-22 Thread Dana Holt
Does anyone know why if I pass mysql_connect() or mysql_select_db() parms as variables or defined constants the connection always fails? If I copy and paste the values I assign to the variable or the defined constant it works like a champ. Can anyone explain this? Thanks in advance. -- Dana Holt

RE: [PHP] Disk Usage

2001-09-22 Thread Matthew Loff
Yes, that's exactly what I'm suggesting... Say output of du -sk is: 1022 . The dot represents the current directory. By typecasting it to an integer, using (int), PHP will drop the dot and whitespace in between... So, typecasting "1022 ." to int gives you 1022 by itself. Good luck! -M

[PHP] Is there a way to override safe mode to be able to read a etc/passwd file

2001-09-22 Thread Richard Kurth
How can I read the /etc/passwd file when safe mode is turned on. is there a work around on this. Hear is a function I use to check if a username is already in use on the system. This works fine when safe mode is off but when it is on it gives this error. Warning: SAFE MODE Restriction in effect. T

Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch
I appreciate the help. I understand the 'du -sk', but what's the "(int)" all about. Are you suggesting using: $usage = (int)`du -sk`; in the PHP code, as in: chdir($basedir); $usage = (int)'du -sk'; print("$usage is usage"); ? Thanks, -- Scott Poarch http://www.globalhost.com - - - - - -

RE: [PHP] Disk Usage

2001-09-22 Thread Matthew Loff
chdir() to the directory you want the size of, and do: $usage = (int)`du -sk`; // size in kilobytes $usage = (int)`du -sb`; // size in bytes Now $usage will have the size in integer form. -Original Message- From: Scott Poarch [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 2

[PHP] Strange output by phpinfo()

2001-09-22 Thread Jeroen Geusebroek
While viewing my phpinfo() page, i got this: QUERY_STRING %u9090%u685

Re: [PHP] Disk Usage

2001-09-22 Thread Scott Poarch
Thanks for the quick reply. I've been tring variations on that for a while with little success. This is not necessarily my best hope, but it's the version I happen to be at at the moment: $command = "du > test2"; system($command); Any ideas? -- Scott Poarch http://www.globalhost.com - - - - -

[PHP] MySQL and PHP problem

2001-09-22 Thread Ben Edwards
[Reposting cos left error message out, sorry] Had a fully working installation of MySQL 3.23 with PHP 6.0.6. I then foolishly installed PGP which included PGPNet and I cant access my MySQL database from PHP. When I try to connect I get error 'Access denied for user: '@GREEN' to database 'sub

Re: [PHP] Disk Usage

2001-09-22 Thread Steve Werby
"Scott Poarch" <[EMAIL PROTECTED]> wrote: > I'm trying to find a script that will return the same kind of data I get > with du. I want a page to list current disk usage by virtual domain on our > servers. I see the diskfreespace and disk_total_space commands, but they > doesn't seem to work at all

[PHP] Disk Usage

2001-09-22 Thread Scott Poarch
Hi all, I'm trying to find a script that will return the same kind of data I get with du. I want a page to list current disk usage by virtual domain on our servers. I see the diskfreespace and disk_total_space commands, but they doesn't seem to work at all for me. Anybody know of a good script?

RE: [PHP] eregi_replace problem

2001-09-22 Thread Daniel Goldin
DSolved. Problem was a typo in other script called by this one. Many apologies to the list. Best, daniel -Original Message- From: Daniel Goldin [mailto:[EMAIL PROTECTED]] Sent: Friday, September 21, 2001 9:08 PM To: [EMAIL PROTECTED] Subject: [PHP] eregi_replace problem The following

Re[4]: [PHP] percentage problems

2001-09-22 Thread slavko dervisevic
Hello Tyler, try $percent = ceil(100*$num_games/$total_games); -- Best regards, slavkomailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

[PHP] PHP safe_mode and reading /etc/passwd file

2001-09-22 Thread Richard Kurth
I have a little problem... I had to enable the PHP safe_mode, and now I receive this error message when I try to read the passwd file on the server : Warning: SAFE MODE Restriction in effect. The script whose uid is 110 is not allowed to access /etc/passwd owned by uid 0 in /home/sites/home/inc/f

Re: [PHP] percentage problems

2001-09-22 Thread Alexander Skwar
So sprach »Tyler Longren« am 2001-09-22 um 17:14:46 -0500 : > Any other ideas? number_format ? Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige

Re: [PHP] naming convention in php?

2001-09-22 Thread Alexander Skwar
So sprach »saif« am 2001-09-23 um 00:33:27 +0530 : > thanks Chris, > i would have checked the link but it seems that online php documentation has > gone haywire. Well, it's working right now. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage

Re: [PHP] naming convention in php?

2001-09-22 Thread Alexander Skwar
So sprach »saif« am 2001-09-15 um 18:58:29 +0530 : > i want to know is there any naming convention followed in php as > in c/c++/java/etc. I'm trying to follow PEAR coding style -> http://php.net/manual/en/pear.standards.php Alexander Skwar -- How to quote: http://learn.to/quote (german) htt

Re: Re[2]: [PHP] percentage problems

2001-09-22 Thread Tyler Longren
Hello, I tried using the ceil() and floor() functions. They did not help much. Ceil() set everything to 1%. I tried this: $percent = $num_games/$total_games; $percent = round($percent, 1); But again, some of the percentages are: 0.7% I also tried assigning the $percent variable the int type,

Re[2]: [PHP] percentage problems

2001-09-22 Thread slavko dervisevic
Hello matt, even better is ceil() or floor() Saturday, September 22, 2001, 11:53:44 PM, you wrote: >> Better than substr is to cast the variable to be an int -- Best regards, slavkomailto:[EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] percentage problems

2001-09-22 Thread Matt Greer
On Saturday 22 September 2001 16:41, you wrote: > Hello all, > > I'm having some troubles making correct percentages. > > I'm writing a simple poll system. Is there an easy way to generate > percentages? I know to divide and all that good stuff. I do substr to get > rid of the decimals, but som

Re: [PHP] percentage problems

2001-09-22 Thread Tyler Longren
Thanks for that. Assigning a type to that variable never even occured to me. :-) Tyler - Original Message - From: "Matt Greer" <[EMAIL PROTECTED]> To: "Tyler Longren" <[EMAIL PROTECTED]>; "PHP-General" <[EMAIL PROTECTED]> Sent: Saturday, September 22, 2001 4:52 PM Subject: Re: [PHP] pe

[PHP] percentage problems

2001-09-22 Thread Tyler Longren
Hello all, I'm having some troubles making correct percentages. I'm writing a simple poll system. Is there an easy way to generate percentages? I know to divide and all that good stuff. I do substr to get rid of the decimals, but sometimes the percentages still aren't displayed correctly. Ho

RE: [PHP] Re: Sessions and include()...

2001-09-22 Thread Matthew Walker
Alright. If that's the case, how do you make sure a cookie gets set for the remote domain? I'm working on a project to write a hosted shopping cart, but we want people to have the ability to include pieces of the display functionality on their own pages, if their host supports PHP. But those piece

RE: [PHP] naming convention in php?

2001-09-22 Thread saif
thanks Chris, i would have checked the link but it seems that online php documentation has gone haywire. best regards from saif --- [php 406, apache 1312, winme] [mysql 32321, personal oracle 8] * On Tue, 18 Sep 2

[PHP] KISGB - PHP Guestbook

2001-09-22 Thread Gaylen Fraley
Since I originally announced this guestbook app here and so many have downloaded it (thanks!), I need to let you know that I recommend getting the latest copy. I have done quite a bit of work, even up to the sending of this. There were a couple of warning messages that were appearing and there h

RE: [PHP] Re: num2string wish list

2001-09-22 Thread Cristopher Daniluk
px.sklar.com used to have code that did something like this. Do a google search for some pseudo code that does it if not. You should be able to easily port it to PHP.. Cris > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 22, 2001 4:04 PM >

[PHP] Re: Site Search

2001-09-22 Thread Richard Lynch
Search for "htdig" on the 'net. -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm - Original Message - From: Vishal Khia

Re: [PHP]Packing file data into a variable???

2001-09-22 Thread Richard Lynch
header("Content-type: audio/m3u"); # Or something not unlike that... Check what you get for a static m3u file. header("Content-length: " . strlen($buffer)); Those two should do it. If you have problems, check the output from a static file, and add headers until it works... >From a Un*x command

[PHP] Re: User's editting profiles

2001-09-22 Thread Richard Lynch
15 fields is not a lot, especially if you intend to handle some as checkboxes, some as text, etc... If you actually had a *LOT* of fields, you could look at storing some kind of info about them in another table, and automating the output. Another option would be to use oohforms (see PHPlib) or s

[PHP] Re: Some question about sessions

2001-09-22 Thread Richard Lynch
www.example.com/index.php3/ee9e8d564ea55f1b88c0a index.php3 --- If that doesn't work for whatever reason, try using You'll probably need http://php.net/explode to separate out your values, and you'll either need to know in advance which parameters will be in which position, or you'll

[PHP] Re: num2string wish list

2001-09-22 Thread Richard Lynch
If http://php.net/sprintf doesn't do that, check the code archives http://php.net/links.php You're not the first to want this, by a long shot... If all else fails, search the mailing list archives. It's been posted... Terms like "number and words and money and check" should pick up the thread.

[PHP] run processes from php as authenticated user

2001-09-22 Thread Bill Pitz
I'd like to write some web based utilities for users to change things like mail forwarding and vacation autoreplies, as well as password changing. In order to do these things, I need to have a way for the PHP script to assume the privileges of the authenticated user. (If they don't supply the co

[PHP] Re: $php_errormsg is not workink correctly! I`m absolutely sure. Can anybody fis this problem?

2001-09-22 Thread Richard Lynch
That's not a PHP error. You'll need to use mysql_error() Or, perhaps there is a setting somewhere to get mysql_error() to also fill in $php_errormsg, but I dunno what it is... -- WARNING [EMAIL PROTECTED] address is an endangered species -- Use [EMAIL PROTECTED] Wanna help me out? Like Music?

RE: [PHP] GD Library help

2001-09-22 Thread Don Read
On 22-Sep-2001 Jay Paulson wrote: > Do all versions of the GD library for Linux that are version 1.6 and above > not support any GIF formats? Yes, It was removed due to copyright restrictions. from http://www.boutell.com/gd/manual1.8.4.html : " Support for GIF has been removed. This step was ta

[PHP] Re: ftp in PHP4

2001-09-22 Thread Chesley A. Windon
Since my original post, the status has changed but let me recap... The file /home/windon/somefile did have permissions set to have anyone read it, but I never checked the permissions on the /home/windon directory. This has since been corrected. Next I was getting a permission denied error, whic

RE: [PHP] error message

2001-09-22 Thread Mark Roedel
> -Original Message- > From: Peter [mailto:[EMAIL PROTECTED]] > Sent: Saturday, September 22, 2001 12:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP] error message > > > I was wondering does anyone know what this particular error > message means: > > Warning: Use of undefined constant

[PHP] num2string wish list

2001-09-22 Thread Thomas Deliduka
I don't know if this exists already, I'm looking for it but I'm not coming up with much of anything. Basically, a function to take a number and convert it to a string: 1 converts to "one" 365 converts to "three hundred sixty-five" This would be awesome for me. -- Thomas Deliduka IT Manager

[PHP] Some question about sessions

2001-09-22 Thread Diadon
How to send session id in URL as path for example www.somehost.com/ea9e8d564ea55f1b88c0a/index.php3? and how to get this id? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list admin

[PHP] Help: Is a bug or No? $php_errormsg is not working correctly! I`m absolutely sure. Can anybody fis this problem?

2001-09-22 Thread Newmail
Hy Richard, It`s me again. I understand what you suggest me but is not necesarry to declare GLOBAL, variable $php_errormsg !!! Elsewhere is the problem I made a little script that can ilustrate my opinion: OR IS O BUG IN PHP, or my first computer require a little update. Run this script

RE: [PHP] writting into a text file

2001-09-22 Thread Urb LeJeune
>for submit buttons... I think that escaping from standard form look and >feel can >improve the site layout ... Respectively disagree. That's like saying let put the ignition on the arm rest to improve the layout. Much research has been done and users almost universally like things th

Re[2]: [PHP] witing for a post

2001-09-22 Thread Gianluca Baldo
Sorry Jack - thanks for the answer... I probably didn't explain it correctly. >From page A users have a link to reach the gateway (via POST) leaving my site (this opens a new browser page). As soon as they leave the site, page A changes to another page let's say B. The URL of page B is what I pas

[PHP] GD Library help

2001-09-22 Thread Jay Paulson
Do all versions of the GD library for Linux that are version 1.6 and above not support any GIF formats? I have 1.8 and in the manual I thought that it was only version 1.6 that didn't support GIF format. However, when I run ImageCreateFromGIF() or ImageGIF() I get an error saying that it's not s

RE: [PHP] witing for a post

2001-09-22 Thread Jack Dempsey
not sure i follow Gianluca...the script will stay there, its not going anywhere, so why does it need to "wait"? it'll process whatever info is sent to it -jack -Original Message- From: Gianluca Baldo [mailto:[EMAIL PROTECTED]] Sent: Saturday, September 22, 2001 2:06 PM To: [EMAIL

RE: [PHP] writting into a text file

2001-09-22 Thread Nikola Veber
Hi ! I was wondering if it is possible to replace standard radio and submit buttons with images. In case of radio buttons that should look like swap image(the image that presents the selected item is swaped) for the selected item, and smth like link image for submit buttons... I think that esc

[PHP]Packing file data into a variable???

2001-09-22 Thread Chris Cocuzzo
hey- my main goal here is to be able to stream an mp3 through any player that can accept m3u files. My idea was to use the format of an m3u file, which looks like this: #EXTM3U #EXTINF:324,cs-1.mp3 http://www.fplg.net/audio/cs-1.mp3 and pack it into a variable to be sent out using a header com

[PHP] witing for a post

2001-09-22 Thread Gianluca Baldo
Hi all - i have set up a credit card gateway interface. The gateway sends an answer to a URL (i.e. http://www.domain.com/answer.php) I pass to it with the some other data. My bank documentation is poor and the support is worst. My question is: how do I make my script at http://www.domain.com/answ

[PHP] Re: error message

2001-09-22 Thread Gaylen Fraley
You forgit the $ sign. Should be if(!$submit) -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > > I was wondering doe

Re: [PHP] Re: event cache management (no, not code cache) -- W32/Nimda filter

2001-09-22 Thread Michael Kimsal
Sean Straw / PSE wrote: > > The design consideration here is that an SQL dependance means anyone > who might want to use the module (this is for dealing with CodeRed and > W32/Nimda and no doubt the next IIS worm that strikes) must do SQL > setup for a new database, etc. > > oh, and after veri

[PHP] error message

2001-09-22 Thread Peter
Hi, I was wondering does anyone know what this particular error message means: Warning: Use of undefined constant submit - assumed 'submit' in /usr/local/apache/htdocs/mm2/mymarket/privatedirectory/db/newthread.php on line 110 But I already defined submit button as shown in the php script here:

Re: [PHP] Search in Progress

2001-09-22 Thread hvm
Hi Alexis, I have the same sort of settings but it is for me very difficult to get the information from the find input field in to the session variables. Do you have a solution how to do this? I have no solution to your problem but it is for me also interesting to see if someone comes with a solu

Re: [PHP] Why this error to this newsgroup?

2001-09-22 Thread hvm
Hi I have the same and I don't know if some one even get my questions, I never get a response. Maybe the questions are to difficult. Yours Hans. - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 22, 2001 6:34 PM Subject: [PH

Re: [PHP] Search in Progress

2001-09-22 Thread Gaylen Fraley
You don't need layers. Just have a js routine that sends 2 different location statements, i.e. parent.resultsframe.location = "javascript:'document.write(loading...');"; // then start your search code here -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook

Re: [PHP] Re: fopen, fread

2001-09-22 Thread Philip Olson
Yeah, filesize() does not work with urls. Suggested file() and implode() earlier for this task and didn't mention fgets() as it may be appropriate here as well. http://www.php.net/fgets http://www.php.net/file Both manual entries have examples that do exactly what you want, "Put a url conte

[PHP] Why this error to this newsgroup?

2001-09-22 Thread Gaylen Fraley
Every message that I post to news.php.net gets posted, but I receive this email: This is the Postfix program at host mail.aaz-netmarketing.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For fur

Re: [PHP] Search in Progress

2001-09-22 Thread rm
to my knowledge what you're talking about is done through html layers and javascript...I've seen it done at other siteshttp://www.anywho.com/rl.html uses this process. rm --- Alexis Antonakis <[EMAIL PROTECTED]> wrote: > Hi, > > I am developing a simple site, in PHP4, which has > three

[PHP] Re: Script for a private mail system

2001-09-22 Thread Gaylen Fraley
Try http://www.hotscripts.com/PHP/Scripts_and_Programs/Email_Systems/ . -- Gaylen [EMAIL PROTECTED] http://www.gaylenandmargie.com PHP KISGB v1.2 Guestbook http://www.gaylenandmargie.com/publicscripts "Tom Nickels" <[EMAIL PROTECTED]> wrote in message 005401c14383$59de4440$149696c8@ws10">news:00

[PHP] Script for a private mail system

2001-09-22 Thread Tom Nickels
Hi, does anybody knows or have a php script for a private mail system within one website (mailboxes for sending private messages in a dating site) Thanks Tom

Re: [PHP] Re: Checking if session has been started

2001-09-22 Thread Alexander Skwar
So sprach »Fredrik Arild Takle« am 2001-09-22 um 18:00:37 +0200 : > session_register("valid_session"); > > OR SOMETHING LIKE THIS? > > if (session_is_registered($valid_session)) { Yep, that seems better. Thanks to both of you! Alexander Skwar -- How to quote: http://learn.to/quote (germ

[PHP] Re: Checking if session has been started

2001-09-22 Thread Fredrik Arild Takle
session_start(); $valid_session = true; session_register("valid_session"); OR SOMETHING LIKE THIS? if (session_is_registered($valid_session)) { // Do something?! } "Gaylen Fraley" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Why not populate a

[PHP] Re: Checking if session has been started

2001-09-22 Thread Gaylen Fraley
Why not populate a session variable, in the page that starts the session, like : session_start(); session_register("valid_session"); $valid_session = true; Then in the page that you need to check, like: if ($session_valid) { // Do something since a session is already running } -- Gay

[PHP] Checking if session has been started

2001-09-22 Thread Alexander Skwar
Hi I need to run some code if a session has been started. However, to do this, I need to figure out IF the session has been started at all. How can I do this? Is checking for the count of elements in HTTP_SESSION_VARS the only reliable way of doing this? Like so? Thanks, Alexander Skwar -

[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis
Hi, I am developing a simple site, in PHP4, which has three frames on it. The first gives you the search options and the second two, the results. What I was wondering was, while the database is being searched, is it possible to display some text in the 'results' frame stating that the search is

[PHP] User's editting profiles

2001-09-22 Thread Kath
I have some user profiles and I'd like them to be able to update them as they see fit (Change their email, password etc etc). However, their options are rather long and instead of having these turkeys have to type in stuff into 8 form fields, I'd like to display the current data in those f

Re: [PHP] How do they do that.

2001-09-22 Thread Alexander Skwar
So sprach »Urb LeJeune« am 2001-09-22 um 10:10:21 -0400 : > Is there any documentation on how they do that? I suppose, they're using Apache's mod_rewrite which transforms the URL (php.net/fopen) to the search form (manual-lookup.php?lang=en&function=fopen) if the part after the / is not otherwise

[PHP] How do they do that.

2001-09-22 Thread Urb LeJeune
This is sharp. http://php.net/fopen actually bring up: http://www.php.net/manual/en/function.fopen.php Is there any documentation on how they do that? Urb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PRO

Re: [PHP] How to find the browser type in HTML or PERL??

2001-09-22 Thread Urb LeJeune
Look at $HTTP_USER_AGENT. Urb > Anybody know how to code in HTML or perl to find the browser >say > >if >{ >do this >} >else if >{ > do this >} > >Thanks and regards >-Balaji > > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [EMAIL PROTECTED] >For ad

[PHP] Re: [PHP-DEV] Re: fopen, fread

2001-09-22 Thread Simon Roberts
Check the value of filesize($fileName). It's probably not working - either because PHP doesn't support it with URLs (likely) or that it's can't get the length from the webserver (less likely). PS: don't cross-post this sort of message to php-dev. That's for people developing PHP, not developing

[PHP] Problem with GD version 1.8.4

2001-09-22 Thread Radek Krejča
Hi, I try compile gd-lib in version 1.8.4 on OpenBSD. This operation caused error, but with version 1.8.3 was all OK. Do you have some expirience with this problem? How to compile PHP 4.0.6 wiht gd-1.8.4 Thaks Radek --- Bc. Radek Krejča www: www.ceskedomeny.cz e-mail:

RE: [PHP] emails with attachements

2001-09-22 Thread Radek Krejca
> > i want to send emails with attachements... can I modify the > > mail()-function > > or how can I perform this? > > please email me - thank you! > > There's a class available here which will do it: > > http://www.heyes-computing.net or use function IMAP_Mail_Compose(), in the manual is very go

Re: [PHP] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-22 Thread hassan el forkani
hi try this one http://www.f2s.com , free space , no ads, most php features supported (including mail) regards At 11:44 22/09/01, Meir Kriheli wrote: >On Friday 21 September 2001 23:51, Salty Marine wrote: > > Greetings to Felix and All: > > > > I must agree that http://coolfreepages.com/ is a r

[PHP] Search in Progress

2001-09-22 Thread Alexis Antonakis
Hi, I am developing a simple site, in PHP4, which has three frames on it. The first gives you the search options and the second two, the results. What I was wondering was, while the database is being searched, is it possible to display some text in the 'results' frame stating that the search is

Re: [PHP] Re: event cache management (no, not code cache) -- W32/Nimda filter

2001-09-22 Thread Sean Straw / PSE
At 23:13 2001-09-21 -0500, Richard Lynch wrote: >You are going to spend a *LOT* of time re-doing the work that went into SQL >db that you have eliminated... Re-consider. I wanted to make the module independant of an SQL service so that it could reach a wider audience by having fewer system requ

Re: [PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Alexander Skwar
So sprach »Tom Nickels« am 2001-09-22 um 12:01:23 +0200 : > Warning: Cannot add header information - headers already sent by (output > started at lang/dt/variables.php:321) in vote_submit.php on line > 34 > > Line 34 of vote_submit.php is: > > header("Location: ".$source."?status=9&e

RE: [PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Niklas Lampen
Output has started at variables.php on line 321. Niklas -Original Message- From: Tom Nickels [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 13:20 To: [EMAIL PROTECTED] Subject: [PHP] Cannot add header information - headers already sent by Hi everybody! I installed php 4.06 on W

[PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Tom Nickels
Hi everybody! I installed php 4.06 on Win NT, IIS 4. Before I updated php 4.00 with 4.06 my scripts were running fine. Since the update I am getting always the follwoing error: Warning: Cannot add header information - headers already sent by (output started at lang/dt/variables.php:321) in ...

[PHP] Cannot add header information - headers already sent by

2001-09-22 Thread Tom Nickels
Hi everybody! I installed php 4.06 on Win NT, IIS 4. Before I updated php 4.00 with 4.06 my scripts were running fine. Since the update I am getting always the follwoing error: Warning: Cannot add header information - headers already sent by (output started at lang/dt/variables.php:321) in .

RE: [PHP] Quickie

2001-09-22 Thread Niklas Lampen
Read chapter: LXXVIII. Session handling functions Niklas -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 8:19 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Quickie Hi, I am trying to redirect the user to another page after user auth

Re: [PHP] Any Free Web Hosts that still support the mail( ) function out there?

2001-09-22 Thread Meir Kriheli
On Friday 21 September 2001 23:51, Salty Marine wrote: > Greetings to Felix and All: > > I must agree that http://coolfreepages.com/ is a really good free hosting > service that supports PHP. However, soon as you use mail( ), it generates > an error message: > Fatal error: Call to undefined funct

RE: [PHP] file problem

2001-09-22 Thread Niklas Lampen
You might mean \n. Line: $str = "This\nis a\nsample" would output: This is a sample Did it help? Niklas -Original Message- From: Nikola Weber [mailto:[EMAIL PROTECTED]] Sent: 22. syyskuuta 2001 0:35 To: php forum Subject: [PHP] file problem Hi ! Thanks for the quick reply last ti

[PHP] Re: DNS Checking and lookup

2001-09-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Chris Sacks) wrote: > Is there anyway I can use PHP to find out all the information in a DNS > Zonefile on a DNS server, in win2k, if you go to a dos prompt, and do the > following > > nslookup > server > ls -d See

[PHP] file problem

2001-09-22 Thread Nikola Weber
Hi ! Thanks for the quick reply last time :) I stucked with the following :I made a log file, but when I open it in "a+" mode, the pointer is set on the end of file, in the same line. Is there anything like in html, or a command that puts a pointer in the new line ? One more question : Is it

[PHP] DNS Checking and lookup

2001-09-22 Thread Chris Sacks
Hi, Is there anyway I can use PHP to find out all the information in a DNS Zonefile on a DNS server, in win2k, if you go to a dos prompt, and do the following nslookup server ls -d you will get loads of information on that domain name, like SOA Records, A records, MX records, CNAME record

Re: [PHP] nimda, etc.

2001-09-22 Thread Alexander Skwar
So sprach »Gaylen Fraley« am 2001-09-21 um 18:10:58 -0500 : > Are you sure about that? I am trying his script and I just had an "attack" > and I watched the traffic through my firewall software. It dropped off > immediately, i.e. showed no activity. I was expecting to see somekind of a Sure, b