[PHP] TIMESTAMP - Y-m-d

2003-06-05 Thread nabil
Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload problem

2003-06-05 Thread Sami Kollanus
I'm using: - Apache 2.0.40 server (linux) - PHP 4.2.2 I use file uploads in my code, but there occured small problems with the server update(from Apache 1.3.??, PHP 4.1.2). is_uploaded_file()- and move_uploaded_file()-functions don't work correctly any more. Or actually the file upload system

Re: [PHP] TIMESTAMP - Y-m-d

2003-06-05 Thread Justin French
A unix timestamp, or mysql timestamp? for unix, see http://au.php.net/date justin on 05/06/03 5:38 PM, nabil ([EMAIL PROTECTED]) wrote: Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List

Re: [PHP] Using register_globals

2003-06-05 Thread SLanger
One thing that hasn't been mentioned explicitly about register_globals turned to off is the readablity of the code and thus the reuse of code. When you use GET, POST, etc... everybody reading your script knows exactly where the data is coming from and can make a fairly good assumption to its

[PHP] Compare dates

2003-06-05 Thread Shaun
Hi, I have two dates retrieved from a database stored as variables: $mindate and $maxdate, how can i compare the two with PHP so i can loop and increment i.e. while($mindate $maxdate){ //do some stuff $mindate++; } Thanks for your help -- PHP General Mailing List (http://www.php.net/)

[PHP] PHP Class for IP CIDR notation

2003-06-05 Thread Rob Lacey
does anyone know of a class that is able to extrapolate a list of IPs given an address in cidr notation. I have used the Net::Netmask module in perl, so I was just wondering if there was a PHP equivalent. Thanks Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Compare dates

2003-06-05 Thread sven
you can work with a timestamp. mktime() changes your date into a number you can sort, compare, ... ciao SVEN Shaun [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi, I have two dates retrieved from a database stored as variables: $mindate and $maxdate, how can i compare the

Re: [PHP] Using register_globals

2003-06-05 Thread Lars Torben Wilson
On Thu, 2003-06-05 at 01:09, [EMAIL PROTECTED] wrote: One thing that hasn't been mentioned explicitly about register_globals turned to off is the readablity of the code and thus the reuse of code. When you use GET, POST, etc... everybody reading your script knows exactly where the data is

[PHP] Newman's Problem with Images.

2003-06-05 Thread Philip J. Newman
My problem is this: I have a site that has 3 levels of access. 1,2,3 when i upload files to say $unixtimestamp/image1.jpg anyone can list the images in this directory $unixtimestamp/. I would like to hide the images out side the doc root ... is this possable .. so i can load something

[PHP] Re: Submited (004756-3463)

2003-06-05 Thread chregu
Please see the attached file. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Morph an object

2003-06-05 Thread Lars Torben Wilson
On Wed, 2003-06-04 at 17:18, [EMAIL PROTECTED] wrote: You have the problem right. What do you mean by a server push? Sounds interesting... Anyway I have to display something. Since its a login, the user needs their interface. I think I'll have to introduce another page... I'd love to

[PHP] Advice on script length please!

2003-06-05 Thread Bix
I am developing a cms with multiple zones and user management etc My file is currently 1200 lines long and consist of 450 lines of case statements and then the rest are functions. I'm getting parse times from 0.2 to 0.8 seconds for the different pages depending on complexity. The script is

[PHP] Re: SQL Select on a DATE field

2003-06-05 Thread sven
just some thoughts to your script: i don't know (yet) the pear db functions and the database you use. so i assume you already got some logic to transform your dates into valid sql-dates (eg. mysql: mmdd or -mm-dd). that is important for valid results from your sql-statements as the dates

[PHP] strange thing about recode

2003-06-05 Thread Ilia Chipitsine
Dear Sirs, anybody knows why recode(windows-1251..utf-8, F534A6C3-9174-11D5-903B-00D009784400) works very strange with PHP = 4.2.3 ? Cheers, Ilia Chipitsine -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Get the datetime from server

2003-06-05 Thread poetbox
Hi all, Can anyone teach me how to get the date and time from the web-server,it's not changed with the time of local machine. I found the date() cannot do this. Thank you! poetbox [EMAIL PROTECTED] 2003-06-05 -- PHP General Mailing List

Re: [PHP] TIMESTAMP - Y-m-d

2003-06-05 Thread Justin French
on 05/06/03 6:24 PM, Nabil Attar ([EMAIL PROTECTED]) wrote: mysql time stamp well, there are a few different formats that can be returned, so rather than me guessing which type, how about you tell us exactly what format you have (by providing an example), and exactly what format you want to

[PHP] Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
I'm looking for your recommendations for php scripts which will give me a web based calendar for showing 'vacant', 'not available' or 'availability unknown' states, based on days available for a particular apartment in the database - eg for 'not available' perhaps the day is crossed out or in red

[PHP] RE: Calendar showing availability of apartments/hotels

2003-06-05 Thread Dillon, John
PS I have not yet checked http://www.phpclasses.org (waiting for log in details to come through), though I've looked through recent threads. -Original Message- From: Dillon, John Sent: 05 June 2003 11:59 To: [EMAIL PROTECTED] Subject: Calendar showing availability of apartments/hotels

Re: [PHP] Get the datetime from server

2003-06-05 Thread CPT John W. Holmes
Can anyone teach me how to get the date and time from the web-server,it's not changed with the time of local machine. I found the date() cannot do this. That's exactly what date() does... the date and time from the server. Maybe you're using it wrong. ---John Holmes... -- PHP General

[PHP] Replace ultimate affiliate with a PHP offering

2003-06-05 Thread Adrian Teasdale
hi there We are currently using Ultimate Affiliate (a series of perl scripts) to run an affiliate program. We are wanting to move over to a purely-php offering mainly for integration etc. Does anyone have any recommendations for affiliate scripts (either paid or open source) whihc are as good,

[PHP] Re: File upload problem

2003-06-05 Thread Mi5ha
If you don't want users to write empty files to your server, why don't you just stop them ? You can write something like this: if ($HTTP_POST_FILES['file1']['size']!=0){ move_uploaded_file($HTTP_POST_FILES['file1']['tmp_name'], $upload_dir.$HTTP_POST_FILES['file1']['name']); } else { echo

Re: [PHP] TIMESTAMP - Y-m-d

2003-06-05 Thread Marek Kilimajer
mysql manual - DATE_FORMAT() function. Simply do SELECT DATE_FORMAT('format string', timestamp_column) ... nabil wrote: Please help me how to print a timestamp string retrived from the database, and print it as -MM-DD Nabil -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Advice on script length please!

2003-06-05 Thread Justin French
on 05/06/03 7:25 PM, Bix ([EMAIL PROTECTED]) wrote: If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm

Re: [PHP] Re: move_uploaded_file 1MB

2003-06-05 Thread Maurício Valente
I know... It´s very weird... I can´t understand it. What you describe above is exactly what is happening. I can´t see if is created a temp file because the page isn't load after I click in submit button. I will try to look for max_body_request in my config files em change it ... Cya! Maurício

[PHP] Ascii to Decimal Converter

2003-06-05 Thread Chinmoy Barua
Hello Everybody, I need a PHP program to convert Ascii values to Decimal values. May i get heLp from anybody? Thank You, - Chinmoy __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com -- PHP General Mailing

RE: [PHP] insert loop logic

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: 03 June 2003 23:25 I am getting values from a form's checkboxes (eg input type=checkbox name='id[]' value=1 input type=checkbox name='id[]' value=2 etc) When i get these values I want to enter them into the

RE: [PHP] Registered sessions.

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Ed Gorski [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 13:37 You need to append the session name and id to the header location everytime you redirect that way. So your header redirect should read: header('Location:

RE: [PHP] setlocale() changes?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 14:33 I've been getting a warning on one of my scripts since I upgraded from 4.1.2 to the most recent version of PHP. The warning is: Warning: setlocale(): Passing locale category name

[PHP] pattern matching for the dot-sign

2003-06-05 Thread Wim Paulussen
LS, I am looking for a way to replace . (=dot) to , in a string with either ereg_replace or preg_match . I read the manual in PHP on Pattern matching for preg_match but could not immediately trace it. All help appreciated. Wim -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] how to record the referal of the referal?

2003-06-05 Thread Marek Kilimajer
Create the link like: script.php?var=valuereferer=?= urlencode($_SERVER['HTTP_REFERER']) ? [EMAIL PROTECTED] wrote: Hello friends! i'm stuck with something i cannot resolve =( i'm programming an statistic sistem, and for tracking the visitors of a page, the systems works this way , a code in the

RE: [PHP] Is gd present?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Esteban Fernandez [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:09 Also works... :) ?php $array = get_loaded_extensions(); for ($i=0;$i=count($array);$i++) { if (gd == $array[$i]) $installed = true; else $installed = false; } This will only

RE: [PHP] function re-defined | WorkAround? [and some more Q's]

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: esctoday.com | wouter van vliet [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:11 I'm working on quite a large website with a lot of php pages.. And a lot of includable functions (modules).. Sometimes one of those modules gets included twice accidently

RE: [PHP] Is gd present?

2003-06-05 Thread Ford, Mike [LSS]
-Original Message- From: Svein Larsen [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:22 $gd_loaded = (extension_loaded('gd'))?1:0; Well, this also fails the simple-as-possible test: if the value returned by extension_loaded() can be used to drive the ?: operator, it must be

Re: [PHP] pattern matching for the dot-sign

2003-06-05 Thread CPT John W. Holmes
I am looking for a way to replace . (=dot) to , in a string with either ereg_replace or preg_match . I read the manual in PHP on Pattern matching for preg_match but could not immediately trace it. All help appreciated. If that's all you need to do, use str_replace(). ---John Holmes... --

[PHP] Re: File upload problem

2003-06-05 Thread Sami Kollanus
Thanks for the idea. I didn't think that solution before, bacause in the previous PHP-version it was impossible to upload empty files. Now server makes empty file even, if there is no file to upload. I still would like to know, where is the reason for the change of function in the server. Is

Re: [PHP] Is gd present?

2003-06-05 Thread Svein Larsen
Thats true, but its more overhead calling a function than compare a variable. Thats why i want to calll the function only once. - Svein On Thursday 05 June 2003 14:03, Ford, Mike [LSS] wrote: -Original Message- From: Svein Larsen [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 16:22

RE: [PHP] My Sincere Greetings

2003-06-05 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Will someone ban this f***ing spam... Anyone believing this is an idiot! regards, Dark Angel -Original Message- SNIP Nigerian scam If you have to respond about this sort of crap, please consider deleting the original

RE: [PHP] Using register_globals

2003-06-05 Thread Jay Blanchard
[snip] Another issue I haven't read so far is that making your script work when register_globals is off makes it to be more compatible since scripts using GET and POST array should still work on systems that have register_globals turned on. [/snip] So what you're asking for is a variable

Re: [PHP] Is gd present?

2003-06-05 Thread CPT John W. Holmes
$gd_loaded = (extension_loaded('gd'))?1:0; Well, this also fails the simple-as-possible test: if the value returned by extension_loaded() can be used to drive the ?: operator, it must be evaluable as a Boolean; this means you can use it directly for later use in an if() or similar

[PHP] Re: Ascii to Decimal Converter

2003-06-05 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hello Everybody, I need a PHP program to convert Ascii values to Decimal values. May i get heLp from anybody? Thank You, - Chinmoy I think you want floatval() -- Quod subigo farinam -- PHP General Mailing List

[PHP] Displaying links only when page is loaded on local site?

2003-06-05 Thread Murray Wells
Hi All, Just curious to know if anyone knows of a way of displaying a set of links on a page only when that page is loaded on my local development machine and not when it's loaded by the general internet public on my remote host's machine? I have several background content editing pages which

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm after. Or, even if *I* could find my way

Re: [PHP] Displaying links only when page is loaded on local site?

2003-06-05 Thread CPT John W. Holmes
Just curious to know if anyone knows of a way of displaying a set of links on a page only when that page is loaded on my local development machine and not when it's loaded by the general internet public on my remote host's machine? I have several background content editing pages which would

Re: [PHP] Advice on script length please!

2003-06-05 Thread Bix
On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? Bix. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] If I did this, would it make a huge amount of difference? I'm

[PHP] Where to start?

2003-06-05 Thread Simon Thurtle
Hi all, I am looking into learning PHP, I have a good understanding of HTML, JS and I know a little Perl. Firstly I know PHP is all server side and so a damn sight different from the above, but will they help me at all? Secondly where do I start? Are there any good on-line resources and or books

[PHP] Determine memory used from script

2003-06-05 Thread Shawn McKenzie
Is there a way to determine the amount of memory that a script is consuming at a certain point? Maybe a function that would return this? The reason is, I get this: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 46080 bytes) in

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? [/snip] http://us3.php.net/manual/en/function.include.php has a wealth of information, including important notes about security of included files.

Re: [PHP] Heredoc question

2003-06-05 Thread Joel Rees
That's fine for that but I have several places that use if's and else's... AFAIK, you can't do conditionals inside a here doc. But then you don't have to build your entire output string in one here doc, either. Hmm. Maybe you're trying to build templates? -- Joel Rees [EMAIL PROTECTED] --

[PHP] delete lines from text file

2003-06-05 Thread Matt Palermo
Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also keep this line. Delete this line. Keep this one too.

RE: [PHP] delete lines from text file

2003-06-05 Thread Martin Towell
I think you'll have to read the file manually (file() would prob be the best bet) and manually find/delete the line and then rewrite the file. Martin -Original Message- From: Matt Palermo [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:54 PM To: [EMAIL PROTECTED] Subject: [PHP]

Re: [PHP] delete lines from text file

2003-06-05 Thread R'twick Niceorgaw
On Thursday 05 June 2003 11:53 pm, Matt Palermo wrote: Can anyone help me figure out how to search for a string in a text file, then delete the whole line of text that it occurs in? For example: I have a text file which contains the following. //** text.txt ** Keep this line. Also

[PHP] using a for loop but it is not working how come

2003-06-05 Thread Richard Kurth
I am having a problem with this script It pulls a list of numbers from one field in the database (the numbers are in this format (275,277,278,276) It needs to pull each number and run it through the function dofunction and then move on to the next one in tell there are no more to process. What am

RE: [PHP] using a for loop but it is not working how come

2003-06-05 Thread Martin Towell
try changing $numbers = array($numbers); to $numbers = explode(,, $numbers); HTH Martin -Original Message- From: Richard Kurth [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 2:42 PM To: [EMAIL PROTECTED] Subject: [PHP] using a for loop but it is not working how come

Re: [PHP] Administration packages

2003-06-05 Thread olinux
I'm sure you are already aware of PEAR, if you havent checked it out, you should olinux Hey everyone, I find myself building alot of admin control areas, or in otherwords, a group of forms that lets an end user control data and appearances of his/her site. What I am looking for

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
Matt, Try something like: ? $fp=fopen(file_name.txt,r); while (feof($fp)) { $line=fget($fp,100); // grabs text to end of line or 100 characters whichever comes first if (!preg_match(/delete/,$line)) { $new_line.=$line; } } fclose($fp); $fp=fopen(file_name.txt,w); fwrite($fp,$new_line)

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
My bad: while (!feof($fp)) instead of what I wrote earlier. - Original Message - From: Hugh Danaher [EMAIL PROTECTED] To: Matt Palermo [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, June 05, 2003 10:59 PM Subject: Re: [PHP] delete lines from text file Matt, Try something

Re: [PHP] Round Off $ prices

2003-06-05 Thread Joci
Hi! ceil -- Round fractions up round -- Rounds a float floor -- Round fractions down Joe - Original Message - From: Ralph [EMAIL PROTECTED] To: PHP General Mailing List [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:51 PM Subject: [PHP] Round Off $ prices How do I round off

[PHP] setlocale() changes?

2003-06-05 Thread Mike At Spy
I've been getting a warning on one of my scripts since I upgraded from 4.1.2 to the most recent version of PHP. The warning is: Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead The script at the line that is failing sez: setlocale

Re: [PHP] setlocale() changes?

2003-06-05 Thread Neil Freeman
Try removing the double quotes around LC_TIME Neil Mike At Spy wrote: *** This Message Was Virus Checked With : SAVI 3.69 May 2003 Last Updated/Checked 2nd June 2003

[PHP] Best open source banner advertising application

2003-06-05 Thread Adrian Teasdale
Hi there We are looking for an open source banner advertising application to integrate into a site. The site will be getting a LOT of hits, so something that will scale well, report well and just work well would be useful. Anyone got any thoughts on their preferred application? I'd be interested

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Randum Ian
The best one without a shadow of a doubt would be phpnewads. Hi there We are looking for an open source banner advertising application to integrate into a site. The site will be getting a LOT of hits, so something that will scale well, report well and just work well would be useful. Anyone

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Justin French
It never ceases to amaze me how much people want for free... ANYWAY, phpAdsNew seems to be the popular recommendation on this list. http://www.phpadsnew.com/ Justin on 05/06/03 12:12 AM, Adrian Teasdale ([EMAIL PROTECTED]) wrote: Hi there We are looking for an open source banner

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Randum Ian
Why pay for something when you can get this for nowt! ;o) I use it on a large scale site with tens of thousands of hits a day and it works very well. It never ceases to amaze me how much people want for free... ANYWAY, phpAdsNew seems to be the popular recommendation on this list.

RE: [PHP] How to optimize this MySQL command?

2003-06-05 Thread James Lobley
I'd guess at: $resultb = mysql_query(SELECT bt_member.nick FROM bt_member, bt_message WHERE bt_member.id=bt_message.mid AND bt_message.ch='$ch', $db); $result2 = mysql_fetch_array($resultb); . -Original Message- From: Erick [mailto:[EMAIL PROTECTED] Sent: 04 June 2003 13:12 To:

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread CPT John W. Holmes
From: Randum Ian [EMAIL PROTECTED] Why pay for something when you can get this for nowt! ;o) I love getting things for nowt... like candy from a baby... :) ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] setlocale() changes?

2003-06-05 Thread CPT John W. Holmes
I've been getting a warning on one of my scripts since I upgraded from 4.1.2 to the most recent version of PHP. The warning is: Warning: setlocale(): Passing locale category name as string is deprecated. Use the LC_* -constants instead The script at the line that is failing sez:

RE: [PHP] How to optimize this MySQL command?

2003-06-05 Thread PHP4 Emailer
Wouldn't it be easier to SELECT * from bt_member WHERE ch='$ch' id='$result[mid]',$db); //I'm not sure of the exact syntax there since I'm a newbie, but wouldn't it be easier to do that and then do a pulling of the fields that you want? //ie... while ($result =

php-general Digest 4 Jun 2003 13:43:27 -0000 Issue 2097

2003-06-05 Thread php-general-digest-help
php-general Digest 4 Jun 2003 13:43:27 - Issue 2097 Topics (messages 150095 through 150154): Problem with strtotime() 150095 by: Sachin Bennur\(DigitalRayInc\) 150096 by: John W. Holmes Doing simple math 150097 by: Chris Cameron 150098 by: John W. Holmes

RE: [PHP] How to optimize this MySQL command?

2003-06-05 Thread PHP4 Emailer
YEAH, disregard my message, I was doing what James was doing but didn't see that you where using 2 seperate tables already, sigh been a great morning already. but there's my idea anyhow!! hehe David :) -Original Message- From: James Lobley [mailto:[EMAIL PROTECTED] Sent: Wednesday, June

[PHP] Is gd present?

2003-06-05 Thread Todd Cary
Is there a way to check within an application if the "gd" library has been installed? Todd --

Re: [PHP] How to optimize this MySQL command?

2003-06-05 Thread Erick
So, how about this? $resultb = mysql_query(SELECT id,title,mid,lastedit,hit,reply,`lock` FROM bt_message where ch='$ch' ORDER BY top,lastedit DESC LIMIT $limit,30,$db); while ($result = mysql_fetch_array($resultb)) { $result2b = mysql_query(SELECT nick FROM bt_member where id

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread John Wards
On Wednesday 04 Jun 2003 2:41 pm, Randum Ian wrote: The best one without a shadow of a doubt would be phpnewads. I would have to disagree on that one ;-) http://oasis.sourceforge.net/ It wipes the floor with phpadsnew, I have used both. But it can be a bit overkill if you are only a small

[PHP] Re: Is gd present?

2003-06-05 Thread Erick
just use phpinfo() ? -- Todd Cary [EMAIL PROTECTED] ???:[EMAIL PROTECTED] Is there a way to check within an application if the gd library has been installed? Todd -- Is there a way to check within

[PHP] Sessions and headers

2003-06-05 Thread Chris Boget
When using PHP sessions, if the user's browser supports cookies, PHP sets the session id as a cookie (so far as I understand it). So when trying to use the session ID in a script, a cookie request is sent to the browser to get the ID and assigns it to the internal variable $PHPSESSID (again, so

[PHP] Re: Is gd present?

2003-06-05 Thread Esteban Fernandez
?php phpinfo(); ? Todd Cary [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED] Is there a way to check within an application if the gd library has been installed? Todd -- Is there a way to

[PHP] Using register_globals

2003-06-05 Thread Todd Cary
I have noticed that quite a few applications are designed with the assumption that "register_globals = Yes"; in other words, the application does not use $HTTP_xxx_VARS. In contrast, I always retrieve my vars. Is there a preference? Todd --

[PHP] Configuration values

2003-06-05 Thread Hardik Doshi
Hi Group, I have a question regarding setting up configuration values (environmental variables) for particular PHP based web application. Currently i am doing it by using DEFINE but is there any better way to do it? Please let me know. Thanks Hardik Doshi __

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Well you are partly right Chris. But the client automatically sends the cookie with the HTTP request. IE your request for a cookie doesn't send a separate request header to the client. You might want to check to see if you are accidentally outputting something else after you call

Re: [PHP] Sessions and headers

2003-06-05 Thread CPT John W. Holmes
When using PHP sessions, if the user's browser supports cookies, PHP sets the session id as a cookie (so far as I understand it). So when trying to use the session ID in a script, a cookie request is sent to the browser to get the ID and assigns it to the internal variable $PHPSESSID (again,

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
John, Since you have used both systems, would you kindly share with us whats pro cons of them both systems?? I have used phpadsnew and like their user interface.. very neat.. not much sure about oasis. Thanks - Original Message - From: John Wards [EMAIL PROTECTED] To: Randum Ian [EMAIL

Re: [PHP] Is gd present?

2003-06-05 Thread CPT John W. Holmes
Is there a way to check within an application if the gd library has been installed? Maybe get_loaded_extensions() ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Gracefully dealing with Cookies OFF

2003-06-05 Thread Carl Furst
I think most people just put it in some sort of privacy policy I know Harrypotterfanfiction.com says it outright that you have to be able to accept not just their cookie but third party ones as well..Ouch..be sure to run SpyBot after you visit them. Vote.com has it in their privacy policy and

[PHP] unix time stamp to readable date

2003-06-05 Thread Diana Castillo
I know this is a stupid question but I am confused, how do I convert a unix timestamp to a readable date with php? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 4.3.2 compile error on redhat 7.3, gcc 2.96

2003-06-05 Thread Kent C. Kollasch
I just downloaded 4.3.2 and tried to compile it and got the following error. tmp/ccD1yFXu.s: Assembler messages: /tmp/ccD1yFXu.s:948: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccD1yFXu.s:948: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccD1yFXu.s:948: Error: Rest of

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread John Wards
On Wednesday 04 Jun 2003 3:07 pm, Awlad Hussain wrote: Since you have used both systems, would you kindly share with us whats pro cons of them both systems?? I have used phpadsnew and like their user interface.. very neat.. not much sure about oasis. oooh errr put on the sport... Pros for

[PHP] Re: unix time stamp to readable date

2003-06-05 Thread sven
use date(). first argument is the structure of your readable date, second ist the unix timestamp. ciao SVEN Diana Castillo [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I know this is a stupid question but I am confused, how do I convert a unix timestamp to a readable date

Re: [PHP] Sessions and headers

2003-06-05 Thread Chris Boget
What errors, exactly? Can you show some examples? The errors are not PHP. They are from the browser trying to open the data being sent from the server (the HTML or binary data) in the appropriate program. eg, Acrobat for PDF, Word for DOC, Excel for XL. For this particular case, I'm using the

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
Thanks John :) - Original Message - From: John Wards [EMAIL PROTECTED] To: Awlad Hussain [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 3:25 PM Subject: Re: [PHP] Best open source banner advertising application On Wednesday 04 Jun 2003 3:07 pm, Awlad Hussain

RE: [PHP] setlocale() changes?

2003-06-05 Thread Mike At Spy
Actually, I must apologize to you and the list. I checked the function on the php site *after* I asked and saw that was the issue immediately. :\ :) -Mike -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 8:57 AM To: Mike At Spy Cc:

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Are you downloading these files over HTTPS://? Ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:24 AM To: CPT John W. Holmes; PHP General Subject: Re: [PHP] Sessions and headers What errors, exactly? Can you show some examples? The

RE: [PHP] How to optimize this MySQL command?

2003-06-05 Thread James Lobley
try this: $resultb = mysql_query(SELECT bt_message.id, bt_message.title, bt_message.mid, bt_message.lastedit, bt_message.hit, bt_message.reply, bt_message.`lock`, bt_member.nick FROM bt_message, bt_member WHERE bt_member.id=bt_message.mid ch='$ch' ORDER BY bt_message.top,bt_message.lastedit DESC

Re: [PHP] Re: move_uploaded_file 1MB

2003-06-05 Thread Mauricio AGP5
- Original Message - From: Yves Daemen [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:27 PM Subject: Re: [PHP] Re: move_uploaded_file 1MB No it's not possible, you have to see the error to actually believe it ;-) It goes like this:

Re: [PHP] Re: Is gd present?

2003-06-05 Thread Todd Cary
Wouldn't I then have to scan the results? I use phpinfo() to checks the client's installation, but I would like to do it within the app. Todd Esteban Fernandez wrote: ?php phpinfo(); ? "Todd Cary" [EMAIL PROTECTED] escribi en el mensaje news:[EMAIL PROTECTED]... Is there a way

Re: [PHP] Sessions and headers

2003-06-05 Thread Chris Boget
Are you downloading these files over HTTPS://? Yes. But I just tried to force HTTP:// and that didn't change anything. thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Sessions and headers

2003-06-05 Thread Ed Gorski
Try including session_cache_limiter('public'); before your session_start(); call at the top of the page. ed -Original Message- From: Chris Boget [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 10:40 AM To: Ed Gorski; 'CPT John W. Holmes'; 'PHP General' Subject: Re: [PHP]

Re: [PHP] Sessions and headers

2003-06-05 Thread Chris Boget
Try including session_cache_limiter('public'); before your session_start(); call at the top of the page. This is *exactly* what I needed!! It worked perfectly. Thank you Ed, John very much for your feedback with this issue! Chris -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Multi Selection

2003-06-05 Thread esctoday.com | wouter van vliet
First of all, may I advise you to use some sort of indenting .. that pretty much improves the readability.. (also for the ones helping you ;).. ? $connection = mysql_connect($host, $user, $pass) or die (Unable to connect!); mysql_select_db($db) or die (Unable to select database!); $_POST[submit]=

[PHP] file output, columns, etc...

2003-06-05 Thread Dan Joseph
Hi All, Need some help here. I have to format a line with each piece of the line being a fixed set of characters in length, wether its a mix of spaces and letters, or all letters. Here's an example of the line: 06?4111ABDALARM333 N COUNTRY CLUB CANTON DD8

Re: [PHP] file output, columns, etc...

2003-06-05 Thread CPT John W. Holmes
Need some help here. I have to format a line with each piece of the line being a fixed set of characters in length, wether its a mix of spaces and letters, or all letters. Here's an example of the line: 06?4111ABDALARM333 N COUNTRY CLUB CANTON DD8 In this file,

Re: [PHP] Re: Is gd present?

2003-06-05 Thread Esteban Fernandez
I don't understand you, but i think u need some app to tell you, if GD is installed or not ?, if is that what u need, then put this code. ?php ob_start(); phpinfo(8); $phpinfo=ob_get_contents(); ob_end_clean(); $phpinfo=strip_tags($phpinfo); if (stristr($phpinfo,gd version)) { echo GD

  1   2   3   >