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

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

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 us

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

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

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 i

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

[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

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

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

[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 date&time 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 Ma

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 ech

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

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

Re: [PHP] Get the date&time 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 M

[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, o

[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 "WAR

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 a

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 V

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

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 > > > etc) > > When i get these values I want to enter them into the database but > 1)I should enter only the first 5 (and ignore the rest) in

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: > researchpapers2.php?'.sess

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

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

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

2003-06-05 Thread Marek Kilimajer
Create the link like: script.php?var=value&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 user's page open a page on my server an

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... :) > > $array = get_loaded_extensions(); > for ($i=0;$i<=count($array);$i++) { > if ("gd" == $array[$i]) $installed = true; > else $installed = false; > } This w

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 accid

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 eva

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 t

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

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- If you have to respond about this sort of crap, please consider deleting the original spam so w

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 handle

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

[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 (http://www.

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

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 aroun

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

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 th

[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 /home/httpd/vhosts/aaa/httpdocs/bbb/c

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.

[PHP] recursive displaying tree structure

2003-06-05 Thread Mike Klemin
Hello, If anyone have expamples of displaying tree structure. Say I have array $result[x][y] with folloowing data XY["ID"]Y["OWNER"] 01 0 12 1 23 2 34 2 45 3 56 2 67

RE: [PHP] Where to start?

2003-06-05 Thread Jay Blanchard
[snip] 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 tha

[PHP] test

2003-06-05 Thread Mike Klemin
test -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Advice on script length please!

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 13:36 > > [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

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] include("common_functions.php"); switch($action) case "do this": include("do_this_funcs.php"); . function(s) called break; case "do that": include("do_that_funcs.php"); .

[PHP] Re: New word proposition (was: Re: [PHP] HTML and PHP)

2003-06-05 Thread Shawn McKenzie
HAH! I love it! -Shawn "Evan Nemerson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Clode? I like it. Really, who wants to say "closing php tag", "terminating php > tag", or whatever you say. Why not start calling it a clode? What does > everyone else think? > > The only issue i

Re: [PHP] Determine memory used from script

2003-06-05 Thread Chris Edwards
If your using an array, how big is it, what's it's dimensions? -- Chris Edwards Web Application Developer Outer Banks Internet, Inc. 252-441-6698 [EMAIL PROTECTED] http://www.OuterBanksInternet.com - Original Message - From: "Shawn McKenzie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

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

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

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.

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

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 com

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 lo

Re: [PHP] delete lines from text file

2003-06-05 Thread Hugh Danaher
Matt, Try something like: I didn't check this before posting so there could be some syntax issues, but the flow is what you need. Open a file for reading, read it line by line to find a text phrase, accumulate the lines (less the one with the phrase) in a new variable, close the file, open it aga

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 som

[PHP] PHP - File Edit

2003-06-05 Thread Matt Zur
Does anyone know of a simple program that will let me specify a file within a certain directory to load into a textarea field, let me make changes, then export/replace that file with the changed contents? I tried writing one myself in PHP, but I ran into a problem with quotes. If I had tags in

Re: [PHP] PHP - File Edit

2003-06-05 Thread Philip Olson
On Fri, 6 Jun 2003, Matt Zur wrote: > Does anyone know of a simple program that will let me specify a file > within a certain directory to load into a textarea field, let me make > changes, then export/replace that file with the changed contents? > > I tried writing one myself in PHP, but I ran

[PHP] Re: PHP - File Edit

2003-06-05 Thread \[cz\]Emo
Try this: "; ?> "Matt Zur" <[EMAIL PROTECTED]> píse v diskusním príspevku news:[EMAIL PROTECTED] > Does anyone know of a simple program that will let me specify a file > within a certain directory to load into a textarea field, let me make > changes, then export/replace that file with the changed

[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 __ D

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 session_start()

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

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"

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 expl

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

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

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

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

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 th

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: "Todd Cary" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED]... Is there a way to check withi

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

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 uns

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 ;).. $Value) { /* $query = 'INSERT INTO ra(reisid, accid) VALUES (LAST_INSERT_ID(), '.$Value.')'; */ $query = 'INSERT INTO ra (ac

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

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. Regards, EF. "Todd Cary" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Wouldn't I then have to scan the results? I use phpinfo() to ch

[PHP] Best method to detect Apache, IIS, or CLI?

2003-06-05 Thread Jean-Pierre Arneodo
Hi, what is the best method to detect if a php script is started into Apache, IIS or in a CLI script? I've found several issues, but I am not sure to be right. * CLI: - PHP_SELF='-' - var $argv, $argc exist - constant STDIN, STDOUT, STDERR exist * http server: - PHP_SELF != '-' for ever - $ar

Re: [PHP] Is "gd" present?

2003-06-05 Thread Esteban Fernandez
Also works... :) Regards. EF. "Cpt John W. Holmes" <[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? > > Maybe get_loaded_extensions() > > ---John Holmes... -- PHP General Mai

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

2003-06-05 Thread esctoday.com | wouter van vliet
Folks, 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 and then it generates an error .. of course.. This made me wonder of there's any way to prevent the function from being

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

2003-06-05 Thread Sunil Samuel
This is actually more an sql questions. ;-) Take a look at Joins in sql. Should be something like the following: SELECT mesg.id, mesg.mid, memb.nick FROM bt_message mesg, bt_member memb WHERE mesg.ch='$ch' AND memb.id=mesg.mid Erick wrote: $resultb = mysql_query("SELECT id,mid FROM bt_message

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

2003-06-05 Thread Dan Joseph
Hi John, > -Original Message- > > 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 > > printf() or sprintf() should do what you want... That did the trick, thanks! I haven't

Re: [PHP] unix time stamp to readable date

2003-06-05 Thread Justin French
http://au.php.net/date Justin on 05/06/03 1:15 AM, Diana Castillo ([EMAIL PROTECTED]) wrote: > 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: h

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

2003-06-05 Thread CPT John W. Holmes
> 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 and then it generates an error .. of course.. This > made me wonder of there's any way to prevent the function from being

Re: [PHP] Best method to detect Apache, IIS, or CLI?

2003-06-05 Thread Chris Hayes
dunno what's best, test on each server what values you can find in $_SERVER (PHP>=4.10), maybe $_SERVER["SERVER_SIGNATURE"] or $_SERVER["SERVER_SOFTWARE"] At 17:07 4-6-03, you wrote: Hi, what is the best method to detect if a php script is started into Apache, IIS or in a CLI script? I've found s

RE: [PHP] Best open source banner advertising application

2003-06-05 Thread esctoday.com | wouter van vliet
Does any of both (or any other) banner advertising applications support langauge specific banners.. So that Greek visitors would get only the banners you have said to be Greek? And for example maybe even if you don't have any advertisements for Cyprus it would get the Greek ones automatically? (or

  1   2   3   >