[PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Andrey Hristov
$your_timestamp+=gmmktime(0,0,0,1,1,1972); Regards, Andrey - Original Message - From: Dave Carrera [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 10:11 AM Subject: [PHP-DB] How to add 2 years to todays date ? Hi All I think the subject line says it all.

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Martin Schichl
At 10:19 18.03.02 +0200, Andrey Hristov [EMAIL PROTECTED] wrote: $your_timestamp+=gmmktime(0,0,0,1,1,1972); Try: $your_timestamp = mktime(date(H),date(i),date(s),date(m),date(d),(date(Y)+2)); Is there anything why this would not work? Martin

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Andrey Hristov
Isn't the hack with gmmktime() faster? It is clean if the code knows what is 1,1,1970 and how Unixtime is measured. Andrey - Original Message - From: Martin Schichl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 10:29 AM Subject: Re: [PHP] Re: [PHP-DB] How to add

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Martin Schichl
At 10:35 18.03.02 +0200, Andrey wrote: Isn't the hack with gmmktime() faster? It is clean if the code knows what is 1,1,1970 and how Unixtime is measured. Seems that you'r right, as mktime(date(H),date(i),date(s),date(m),date(d),(date(Y)+2)) calls six times the function date ... Martin

Re: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Tom Rogers
Hi A variation echo date(d/m/Y,strtotime(+2 years)) Tom At 06:29 PM 18/03/2002, Martin Schichl wrote: At 10:19 18.03.02 +0200, Andrey Hristov [EMAIL PROTECTED] wrote: $your_timestamp+=gmmktime(0,0,0,1,1,1972); Try: $your_timestamp =

[PHP] building forms from what the MySQL table looks like

2002-03-18 Thread Justin French
Hi, I've been thinking about this for a while, and I think I'd get a lot of value out of a library which builds user-input forms from scratch, based on the MySQL table. If I had a simple table for a CD catalogue: id (INT 4) artist_id (INT 4) description (MEDIUM TEXT) price (VARCHAR 7) Then

[PHP] Timing PHP

2002-03-18 Thread Stig Kronback
Dear ? I need to see how long it takes for my php-scripts to execute, what can I do, doesn't PHP include a function that will show that information? Regards, Stig = Stig Kronback Andersen Drejervej 13, st 2400 Koebenhavn NV Denmark Phone: +45 35310382 E-mail: [EMAIL PROTECTED]

[PHP] Re: building forms from what the MySQL table looks like

2002-03-18 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Hi, I've been thinking about this for a while, and I think I'd get a lot of value out of a library which builds user-input forms from scratch, based on the MySQL table. If I had a simple table for a CD catalogue: id (INT 4)

[PHP] Appropriate headers for Forcing download on IE/Mac and open with stuffit?

2002-03-18 Thread Jimmy Lantz
Hi, I know it has been discussed before but I havent seen any working solutions. My problem is that I need to force a dowload for Mac users / IE and preferably also automatically let them open the file with stuffit expander. (it works with files downloaded from a webpage/apache without PHP) So

[PHP] Re: Timing PHP

2002-03-18 Thread David Robley
In article [EMAIL PROTECTED], [EMAIL PROTECTED] says... Dear ? I need to see how long it takes for my php-scripts to execute, what can I do, doesn't PHP include a function that will show that information? Regards, Stig Not a specific function, but you could build your own; for

RE: [PHP] Timing PHP

2002-03-18 Thread Niklas Lampén
microtime() function's manual entry tells you exactly what you want to do. :) Niklas -Original Message- From: Stig Kronback [mailto:[EMAIL PROTECTED]] Sent: 18. maaliskuuta 2002 12:00 To: [EMAIL PROTECTED] Subject: [PHP] Timing PHP Dear ? I need to see how long it takes for my

[PHP] Store data in array

2002-03-18 Thread Uma Shankari T.
Hello, Anyone can please tell me how to store the row details fetched from database to array so that to sort the same array after storing -Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] dateformat

2002-03-18 Thread Sven Jacobs
hey all I want to convert 20020211150245 into 2002-02-11 15:02:45. Does somebody have the correct conversion for this ?

Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
If it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting is much faster than in PHP. However while ($row= mysql_fetch_assoc($res)){ $rows[] = $row; } Then you have many ways to sort. Look at : sort(), asort(), arsort(), usort(), uasort() etc. Best regards, Andrey

RE: [PHP] OBJECT£ºWHAT'S THE RALATION BETWEEN A,B AND C?

2002-03-18 Thread Tim Ward
The line you've marked prints the value attribute of $a-b-a, which is a pointer to the base object ($a). You have just changed the value attribute of this to 11 and it prints 11 ... what's wrong? Tim Ward Internet Chess www.chessish.com http://www.chessish.com -- From:

Re: [PHP] Store data in array

2002-03-18 Thread Uma Shankari T.
On Mon, 18 Mar 2002, Andrey Hristov wrote: AHIf it is possible do the sorting in the SQL statement by using ORDER BY. SQL sorting is much faster than in PHP. AHHowever I have gone through that manual alreadybut i need to sort by php sorting. AHwhile ($row= mysql_fetch_assoc($res)){

[PHP] RE: Invalid Argument ??? Not sure how to debug this

2002-03-18 Thread Tim Ward
Try ... If ($result = ...) { ... ... } else echo(mysql_error()); I always do querying like this anyway (without the error echo in live stuff obviously) Tim Ward Internet Chess www.chessish.com http://www.chessish.com -- From: Daniel Negron/KBE

[PHP] object reflection in php?

2002-03-18 Thread Filippo Veneri
Is there a way to get the name of a filed from a variable pointing to some object? Just to make myself understood: class obj { var $field; function obj( $value ) { $this-field = $value; } } $o = new obj( field value ); How can i know, if possible, that the instance of obj

[PHP] files upload

2002-03-18 Thread Jena
I need to upload more than one file throught an html form. I cannot create an archive first and then post it. I need to aperate directly with the files the users want to upload. how can I do this? ther's any php trick or procedure to help me many thanks in advance Jena -- PHP General Mailing

[PHP] Undeclared Variables

2002-03-18 Thread Mark Williams
Hi, I am using php 4.1.2 and I have 2 questions. : 1) How do I compile PHP not to depend on declared variables? 2) Assuming the above is possible, is this safe to do? Regards, Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Undeclared Variables

2002-03-18 Thread Julio Nobrega Trabalhando
error_reporting(); There's also an entry on php.ini to handle. It is safe although I personally do not recommend. Undeclared variables are a unexpected script behavior, it's good to know where your data is coming from and/or not trust it. For example a GET paramenter might override the value

RE: [PHP] Re: [PHP-DB] How to add 2 years to todays date ?

2002-03-18 Thread Ford, Mike [LSS]
-Original Message- From: Andrey Hristov [mailto:[EMAIL PROTECTED]] Sent: 18 March 2002 08:20 $your_timestamp+=gmmktime(0,0,0,1,1,1972); Well, that depends on your definition of year -- the problem here is that it makes no allowances for leap years, so (for example) 2-mar-2003

[PHP] console scripts reading php.ini

2002-03-18 Thread DigitalKoala
Hi folks, How do i get my script (run from the console and not from the browser) to set sendmail_path = /var/qmail/bin/qmail-inject ? Thanks! DK -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Replacing chars like: º OR ¿

2002-03-18 Thread andy
Hi there, I am still searching for a function which is replacing all chars not between [a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid chars or just deleting them. There seems to be an endless amount of those chars. Thanx for any hint, andy -- PHP General Mailing

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Cameron Bales .:.
I am still searching for a function which is replacing all chars not between [a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid chars or just deleting them. There seems to be an endless amount of those chars. This grep pattern: [\x80-\xFF] will match any high byte

RE: [PHP] Store data in array

2002-03-18 Thread Balaji Ankem
Hi Uma, you can use as in C language with index. $a[i]= $val; i is index starts from zero. For example u want to extract specific field from mysql database and store it in array.. Let us assume num is a attribute name of the table heap.

Re: [PHP] Store data in array

2002-03-18 Thread Andrey Hristov
It is showing Array probably because you do echo $rows; and because $rows is array you receive Array; try foreach($rows as $k=$v){ print \n[$k][$v]br; } Regards, Andrey - Original Message - From: Uma Shankari T. [EMAIL PROTECTED] To: Andrey Hristov [EMAIL PROTECTED] Cc: [EMAIL

[PHP] PHP session ID not unique or session_register problems

2002-03-18 Thread Matej Kovacic
Hi! I am a kind of newbie in PHP programming, but I have found an interesting problem and some php guys I know were unable to help me to solve it. So I am coming here with my question... I have written a little more advanced counter, which should be included in other PHP scripts in website. It

[PHP] Re: Replacing chars like: º OR ¿

2002-03-18 Thread andy
found it: # remove all others $filename = ereg_replace ([^a-z^0-9^-], , $filename); cheers, andy Andy [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi there, I am still searching for a function which is replacing all chars not between [a-z] for

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
»andy« sagte am 2002-03-18 um 14:22:47 +0100 : Hi there, I am still searching for a function which is replacing all chars not between [a-z] for exampe a province name like: minºaqah-ash-shamal¿yah into valid chars or just deleting them. There seems to be an endless amount of those chars.

Re: [PHP] object reflection in php?

2002-03-18 Thread Andrey Hristov
get_object_vars(), get_class_vars(), get_class_methods() Andrey - Original Message - From: Filippo Veneri [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 1:28 PM Subject: [PHP] object reflection in php? Is there a way to get the name of a filed from a variable

Re: [PHP] PHP session ID not unique or session_register problems

2002-03-18 Thread Oliver Heinisch
At 18.03.2002 14:54, you wrote: Even if I did´nt look closely at your code, I would suggest, that you decrease the amount of data, diferent tables to one table. You set an cookie, therfor you have the same effect as if you use sesssion vars. So it´s easy to set and find the data, via cookie.

Re: [PHP] PHP CGI

2002-03-18 Thread Thalis A. Kalfigopoulos
Who knows? It might. Its use is growing rapidly, and it's much easier to learn. A few years ago the prospect would have been unthinkable, due to the vastly greater supply of Perl CGI web apps and free libraries in circulation. These days the advantage is not so strong. And PHP is far

[PHP] PHP3 file on PHP4 server

2002-03-18 Thread kip
Hi, The extension of my PHP files are saved as .php3 on the server and they were worked properly before. As the hosting server upgrade to PHP4 server, those .php3 files seem don't work and only display the blank page. Anybody know what problem is it? And how to config this problem? Thanks

[PHP] cant get image size because of htaccess

2002-03-18 Thread andy
Hi there, I did put a password via htaccess on my website to hide my testing environment from other users. Now I discovered, that PHP can't read imagefile information via getimagesize because it does not get access to this dir anymore. How could I add php as a user with propper password ?

Re: [PHP] converting html entities outside of tags

2002-03-18 Thread Erik Price
On Friday, March 15, 2002, at 03:17 PM, Alain Dresse wrote: I want to allow the users of my site to insert text with anchors, bold and italic html tags. I have filtered out all the other tags. I now want to convert the other , , quote, double quote and to html entities. If I use the

[PHP] PHP run as CGI?

2002-03-18 Thread Team GotFusion
I am developing and testing PHP on my local computer with MySQL server and PWS running along with PHP. My hosting site runs PHP as cgi only. What are the differences between cgi-based PHP and how I am running AND, what pitfalls can I avoid in development to be sure I code in a way that the

Re: [PHP] Driving me nuts, need one second of your time

2002-03-18 Thread Erik Price
On Friday, March 15, 2002, at 06:14 PM, cosmin laslau wrote: Thanks in advance for whoever sees what I am sure is a glaring and obvious flaw in the coding. I've been looking at it for an hours and just can't get anything from where I'm standing, maybe a different perpective will help.

RE: [PHP] Copy *.*

2002-03-18 Thread Robert V. Zwink
You'll probably have the most success using the system() function to execute the xcopy command. You shouldn't need to rewrite xcopy in php, seems like overkill. See: http://www.php.net/manual/en/function.system.php Here's the result of C:\xcopy /? XCOPY source [destination] [/A | /M]

=?x-unknown?q?Re=3A_=5BPHP=5D_Replacing_chars_like=3A_=BA_OR?==?x-unknown?q?_=BF?=

2002-03-18 Thread Rasmus Lerdorf
$new = preg_replace('/[^a-z]/i','',$old); Note that this will also get rid of the - in this case since you specifically asked for something that got rid of everything not a-z -Rasmus On Mon, 18 Mar 2002, andy wrote: Hi there, I am still searching for a function which is replacing all chars

Re: [PHP] XSLT parsing causes passed by reference error

2002-03-18 Thread Erik Price
On Friday, March 15, 2002, at 06:46 PM, Edward Tanguay wrote: I have this hosted at my ISP. The phpinfo() shows that they have: Linux 2.4.3 PHP Version 4.0.4pl1 Sablotron XSLT support: enabled Which annotations are you refering to? Ask them if they will upgrade to a PHP 4.1.x version,

Re: [PHP] new_xmldoc won't work?

2002-03-18 Thread Erik Price
On Friday, March 15, 2002, at 07:04 PM, Edward Tanguay wrote: $doc = new_xmldoc('1.0'); $root = $doc-ad_root('sites'); $site = $root-ne_child('site',''); $site-new_child('title','PHP.net'); $site-new_child('url','http://www.php.net'); $site-new_child('description','The homepge of PHP');

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
»Rasmus Lerdorf« sagte am 2002-03-18 um 07:12:21 -0800 : $new = preg_replace('/[^a-z]/i','',$old); Note that this will also get rid of the - in this case since you specifically asked for something that got rid of everything not a-z Yes. And to not get rid of the -, you need to specify it

Re: [PHP] Appropriate headers for Forcing download on IE/Mac and open with stuffit?

2002-03-18 Thread Erik Price
On Monday, March 18, 2002, at 05:03 AM, Jimmy Lantz wrote: and preferably also automatically let them open the file with stuffit expander. (it works with files downloaded from a webpage/apache without PHP) This feature depends on how the user has their browser preferences configured. In

[PHP] phpinfo() printing old ./configure arguments

2002-03-18 Thread Markus Bertheau
Hello, We recently upgraded the php apache modules to include some bugfixes and the wddx module, but phpinfo() does still show a compilation time of August 1 2001 and the old compilation infos. Where do I have to dig about that? Please cc me as I'm not on the list. Markus Bertheau

[PHP] Re: T_CONSTANT_ENCAPSED_STRING error

2002-03-18 Thread Mahmoud
I'm receiving Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error This parse error states that the path to the script that generates the error is /host/plugged... contents of homedir.php is ?php if (getenv(SERVER_ADDR) == 127.0.0.1)

Re: [PHP] object reflection in php?

2002-03-18 Thread Erik Price
On Monday, March 18, 2002, at 06:28 AM, Filippo Veneri wrote: Just to make myself understood: class obj { var $field; function obj( $value ) { $this-field = $value; } } $o = new obj( field value ); How can i know, if possible, that the instance of obj pointed to by $o

[PHP] Re: T_CONSTANT_ENCAPSED_STRING error

2002-03-18 Thread Mahmoud
I'm receiving Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' in /host/plugged/index.php on line 3 error This parse error states that the path to the script that generates the error is /host/plugged... contents of homedir.php is ?php if (getenv(SERVER_ADDR) == 127.0.0.1)

Re: [PHP] object reflection in php?

2002-03-18 Thread Michael Kimsal
Erik Price wrote: On Monday, March 18, 2002, at 06:28 AM, Filippo Veneri wrote: Just to make myself understood: class obj { var $field; function obj( $value ) { $this-field = $value; } } $o = new obj( field value ); How can i know, if possible, that the instance of

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread andy
so whats the difference between yours and : $filename = ereg_replace ([^a-z^0-9^/.^=^/-], , $filename); Andy Alexander Skwar [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... »Rasmus Lerdorf« sagte am 2002-03-18 um 07:12:21 -0800 : $new =

[PHP] How to get the IP of a visitor

2002-03-18 Thread Ulrik Witschass
Hi, I am new to this list and to PHP, so please excuse any newbie questions :) Want I need to know is how to get either the ISP or the IP of the visitor of a page. I guess this is a environment variable, but I don't know which. Any help is greatly appreciated :) Thanx! Ulrik -- PHP General

RE: [PHP] How to get the IP of a visitor

2002-03-18 Thread Darren Gamble
Good day, You'll need to check the documentation of your web server for that (or post on the appropriate list). You can use the phpinfo() function to see all of the environment values that PHP sees. Off the top of my head, I think Apache stores it in REMOTE_IP .

RE: [PHP] object reflection in php?

2002-03-18 Thread Coggeshall, John
Why are you going through all of this trouble, exactly? If you are looking to store the instance of the object in the databaes, why not just use serialize()/unserialize()?? John -Original Message- From: Erik Price [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 10:43 AM

RE: [PHP] How to get the IP of a visitor

2002-03-18 Thread Drew Lopucki
use ? phpinfo() ?. you'll see all the variable in the http request header. -Original Message- From: Ulrik Witschass [mailto:[EMAIL PROTECTED]] Sent: Monday, March 18, 2002 11:57 AM To: [EMAIL PROTECTED] Subject: [PHP] How to get the IP of a visitor Hi, I am new to this list and to

Re: [PHP] object reflection in php?

2002-03-18 Thread Michael Kimsal
John Coggeshall wrote: Why are you going through all of this trouble, exactly? If you are looking to store the instance of the object in the databaes, why not just use serialize()/unserialize()?? John If you're trying to map each object property to a specific table column in a

Re: [PHP] Timing PHP

2002-03-18 Thread Mika Tuupola
On Mon, 18 Mar 2002, Stig Kronback wrote: I need to see how long it takes for my php-scripts to execute, what can I do, doesn't PHP include a function that will show that information? PEAR has a benchmark class which does just that:

RE: [PHP] How to get the IP of a visitor

2002-03-18 Thread Sean @ InterConnect.is.it
$HTTP_SERVER_VARS['REMOTE_ADDR'] getenv(REMOTE_ADDR) $REMOTE_ADDR ... there are others too On the same topic, what do you folks think is the best way? meaning most cross-platform functional, fastest (if at all important for this), anything else that could help make a decision. Sean

Re: [PHP] Saving data with cookies

2002-03-18 Thread Mika Tuupola
On Sun, 17 Mar 2002 [EMAIL PROTECTED] wrote: input type=text name=name_of_var[] -- this is an arrayvaraible every field the same name ! the form will then submit an (one) array, which could be stored in your database (For I´m not shure how it will be saved, I would save this array as an

Re: [PHP] How to get the IP of a visitor

2002-03-18 Thread mnc
On Mon, 18 Mar 2002, Ulrik Witschass wrote: Hi, I am new to this list and to PHP, so please excuse any newbie questions :) Want I need to know is how to get either the ISP or the IP of the visitor of a page. I guess this is a environment variable, but I don't know which. Any help is

RE: [PHP] $_SESSION / Windows doesn't work!?

2002-03-18 Thread Ford, Mike [LSS]
-Original Message- From: Hiroshi Ayukawa [mailto:[EMAIL PROTECTED]] Sent: 18 March 2002 05:11 I'm trying to use $_SESSION on Windows2000+PHP4.1.2 binary version. But it seems that $_SESSION doesn't work, even in the simplest samples like; I think this is acknowledged as broken

Re: [PHP] Replacing chars like: º OR ¿

2002-03-18 Thread Alexander Skwar
»andy« sagte am 2002-03-18 um 17:00:16 +0100 : so whats the difference between yours and : $filename = ereg_replace ([^a-z^0-9^/.^=^/-], , $filename); You've got quite some ^ to much in there, I'd think. If I understand it correctly, you'd also not remove the ^ character, because you've

[PHP] Sablotron and LINUX trouble

2002-03-18 Thread Mike Eynon
Howdy all. I have got the Sablotron XSLT extension working in Windows, but now am having trouble getting it to work on my LINUX servers. I have tried reading http://www.devshed.com/Server_Side/XML/XSLTrans/print to find the answers (which I got from earlier posts), but it doesn't seem to give

[PHP] Sessions

2002-03-18 Thread Morten Nielsen
Hi, I got a page that is being reloaded a lot. In the bigging I register a Session variable with the SESSION_START and SESSION_REGISTER functions. Is it wrong that I keep registering the session? Should I also unregister the session at the bottom of the page? Regards, Morten -- PHP General

Re: [PHP] Sessions

2002-03-18 Thread Andrey Hristov
not the session is registered but a variable in the session jar. Andrey - Original Message - From: Morten Nielsen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 7:45 PM Subject: [PHP] Sessions Hi, I got a page that is being reloaded a lot. In the bigging I

[PHP] Re: building forms from what the MySQL table looks like

2002-03-18 Thread Chris Seymour
Hi Justin, You might want to take a look at CodeCharge (www.codecharge.com). Thanks. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Parse Error Suggestions?

2002-03-18 Thread Mike At Spy
Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I looked on the PHP site for error reporting functions, but apparently they do not handle Parse Errors. Thanks, -Mike -- PHP

[PHP] Retrieving Windows 98/NT/XP Login with PHP - Possible?

2002-03-18 Thread Shaun :p
I have created a simple intranet server within my home for my family. I am running Apache 1.3.23 and PHP 4. Everything works fine, except that I would like to be able to tailor the main webpage to whichever person visits it - but by using their windows login ID instead of having to get them to

Re: [PHP] Sessions

2002-03-18 Thread pong-TC
[EMAIL PROTECTED] writes: Hi, I got a page that is being reloaded a lot. In the bigging I register a Session variable with the SESSION_START and SESSION_REGISTER functions. Is it wrong that I keep registering the session? Should I also unregister the session at the bottom of the page? Regards,

Re: [PHP] Parse Error Suggestions?

2002-03-18 Thread mnc
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets you

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Darren Gamble
Good day, It's not really possible to have an error reporting function on a parse error. If there is a parse error, then the program can not be run, period. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada

[PHP] help with date formatting

2002-03-18 Thread Ryan
Hi, I'm trying to create an events page, where it shows the posted events. I enter data using phpmyadmin. Currently, the ouput is like this: Conference in New York 2002-03-06 There is going to be a conference in New York next week.

Re: [PHP] pdflib

2002-03-18 Thread Ben Edwards
This looks good, however when I try the examples I get: %PDF-1.3 3 0 obj endobj 4 0 obj stream 2.834646 0 0 2.834646 0 841.89 cm 2 J 0.2 w BT /F1 5.64 Tf ET BT 11 -16.692 Td (Hello World !) Tj ET endstream endobj 5 0 obj endobj 1 0 obj endobj 2 0 obj endobj 6 0 obj endobj 7 0 obj

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Mike At Spy
On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly brace open. Try opening the file in an editor that lets

Re: [PHP] help with date formatting

2002-03-18 Thread Mark Heintz PHP Mailing Lists
Since you're using phpmyadmin, I'm assuming you're using mysql. You could use the built-in date and time functions to do the formatting when selecting your date field. Check here: http://www.mysql.com/doc/D/a/Date_and_time_functions.html mh. On Mon, 18 Mar 2002, Ryan wrote: Hi, I'm trying

[PHP] permission denied using COPY function?

2002-03-18 Thread Paul Garton
Trying to use the COPY function to allow user uploads to a site, along the lines of: copy(temp directory, directory on my server). However, I'm getting an error: Warning: Unable to create 'directory/image name': Permission denied in myPHPfile on line x (where x is the COPY function). I've

Re: [PHP] help with date formatting

2002-03-18 Thread Ben Edwards
I use string manipulation on the date, basically split it into $day, $month and $year and use this to product formatted output. Ben At 17:51 18/03/2002, Ryan wrote: Hi, I'm trying to create an events page, where it shows the posted events. I enter data using phpmyadmin. Currently, the ouput

Re: [PHP] help with date formatting

2002-03-18 Thread mnc
On Mon, 18 Mar 2002, Ryan wrote: Hi, I'm trying to create an events page, where it shows the posted events. I enter data using phpmyadmin. Currently, the ouput is like this: 2002-03-06 I'm having trouble with the formatting of the date. I'm using the type date with the function now,

RE: [PHP] Parse Error Suggestions?

2002-03-18 Thread Ben Edwards
Not sure exactly what your code is but if you try to pass a literal where a reference type parameter is defined this produces a blank page. function test( $var ) { echo $var } if you call with test( hello ) you get NO output. Ben At 18:01 18/03/2002, Mike At Spy wrote: On Mon, 18 Mar

Re: [PHP] pdflib

2002-03-18 Thread mnc
On Mon, 18 Mar 2002, Ben Edwards wrote: This looks good, however when I try the examples I get: %PDF-1.3 3 0 obj endobj 4 0 obj stream 2.834646 0 0 2.834646 0 841.89 cm 2 J 0.2 w BT /F1 5.64 Tf ET BT 11 -16.692 Td (Hello World !) Tj ET endstream endobj 5 0 obj endobj 1 0 obj endobj 2

[PHP] Re: help with date formatting

2002-03-18 Thread Joshua E Minnie
Ryan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I'm trying to create an events page, where it shows the posted events. I enter data using phpmyadmin. Currently, the ouput is like this:

[PHP] Creating arrays using results from MySQL query

2002-03-18 Thread Mullin, Reginald
Hi Guys, I've been experiencing some problems when trying to build 3 arrays with the ID values of all of the groups a user belongs to. (I then want to register these arrays into the current session). The arrays only appear to be getting the first value (group ID) instead of all of the values

[PHP] FPDF (was Re: [PHP] pdflib)

2002-03-18 Thread Ben Edwards
sorry, should of made it clear I amusing FPDF (http://fpdf.org/) library which looks like it douse the headers for you. Ben At 18:05 18/03/2002, [EMAIL PROTECTED] wrote: On Mon, 18 Mar 2002, Ben Edwards wrote: This looks good, however when I try the examples I get: %PDF-1.3 3 0 obj

[PHP] Re: help with date formatting

2002-03-18 Thread Ryan
On Mon, 18 Mar 2002 11:51:07 -0600 Ryan [EMAIL PROTECTED] wrote: By, the way I'm getting the date from a MySQL database. The posted date variable is stored as the date type in the MySQL database so it comes out like this 2002-03-06. Should I convert the date into a time stamp or how should I

Re: [PHP] Creating arrays using results from MySQL query

2002-03-18 Thread Mark Heintz PHP Mailing Lists
You have to call mysql_fetch_array for each record in your result set... $emp_login_wkgrp_id = array (); $emp_login_grp_id = array (); $emp_login_role_id = array (); $i = 0; while($employee_2 = mysql_fetch_array($result_2)){ $emp_login_wkgrp_id[$i] = $employee_2[wkgrp_id];

[PHP] Two easy HTML/CSS questions

2002-03-18 Thread Phil Schwarzmann
I know I shouldn't be asking these questions on this mailing list but you guys are ALWAYS EXTREMELY helpful... 1) I want a a text link to change color when the mouse is hovering over top of it. How do I do this? Im sure it's some CSS thingy. 2) Is it possible to make a text field smaller

Re: [PHP] Parse Error Suggestions?

2002-03-18 Thread Jason Wong
On Tuesday 19 March 2002 02:01, Mike At Spy wrote: On Mon, 18 Mar 2002, Mike At Spy wrote: Anyone have any suggestions for getting better reporting on a generic Parse Error? Code is falling to the end of the script, and I can't find a problem anywhere. I'd guess you left a curly

Re: [PHP] Re: help with date formatting

2002-03-18 Thread JSheble
I always use the mySQL DATE_FORMAT function in my queries themselves... SELECT DATE_FORMAT( someDatField, %m/%d/%Y ) as thedate FROM someTable At 12:23 PM 3/18/2002 -0600, Ryan wrote: On Mon, 18 Mar 2002 11:51:07 -0600 Ryan [EMAIL PROTECTED] wrote: By, the way I'm getting the date from a

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Hunter, Ray
Answers: 1. Yes you can do it with css. http://www.w3schools.com/css/default.asp 2. The text field area is defined by the browse...You cannot change the size of the actual box that is the text field... Thank you, Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message-

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Darren Gamble
Good day, Just to clarify, yes, you can set the size of a text field, as well as its color, text font, border, and so on. This is also done with css and is outside the scope of this mailing list. Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 -

[PHP] preg_replace on digit word boundry help

2002-03-18 Thread Joe Rice
hi, i'm trying to replace ever digit nondigit boundary with a , in a string. i'm trying to get \d\D to be replaced with \d,\D and the reverse \D\d with \D,\d ... i'm not having any luck. $digiword = 123joe123 $replace = preg_replace(/(\d)(\D)/,\\1,\\2,$digiword); this ends up with

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Hunter, Ray
Actually, If I understand correctly, you want the actual text field box to be the same size as the text (as in height)...You can only change the width of the text field which is done by size= and this is based on characters... Example: input type=text name=stuff size=25 Then the width of

Re: [PHP] preg_replace on digit word boundry in 2 lines how about 1?

2002-03-18 Thread Joe Rice
i can do this if i do it in two line..i'm wondering if it can be done in 1 line. the two lines: $replace = preg_replace(/(\d)(\D)/,\\1,\\2,$digiword); $replace = preg_replace(/(\D)(\d)/,\\1,\\2,$replace); tia, joe Joe Rice([EMAIL PROTECTED])@Mon, Mar 18, 2002 at 12:39:17PM -0600: hi,

RE: [PHP] Two easy HTML/CSS questions

2002-03-18 Thread Adam Plocher
CSS Hover example: style type=text/css a:link,a:visited,a:active {color: #213C4D; text-decoration: none;} a:hover {color: #213C4D; text-decoration: underline; } /style As for the size of a text field, you can set it with SIZE= but note, netscape and IE both interpret size VERY differently...

[PHP] Testing for NULL

2002-03-18 Thread Jesse Warden
Hi, I am new... hope I am using this list correctly. I am trying to test for a null value, and if it is null, then to use a default value instead. The login page that I have, I want to show nothing in the username field unless it is passed a username from another PHP page via the header

Re: [PHP] Testing for NULL

2002-03-18 Thread Andrey Hristov
if (!isset($login)){ echo login undefined; } Best regards, Andrey Hristov - Original Message - From: Jesse Warden [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, March 18, 2002 9:09 PM Subject: [PHP] Testing for NULL Hi, I am new... hope I am using this list correctly.

Re: [PHP] Sessions and enable-trans-sid

2002-03-18 Thread Erik Price
On Saturday, March 16, 2002, at 09:04 PM, [EMAIL PROTECTED] wrote: I have compiled php with the enable-trans-sid (for the site I am using I can NOT use cookies) when I start a session or store something in _SESSION['varname'] varname can not be accessed on other pages nor is

[PHP] U.S. Section 508 Guidelines

2002-03-18 Thread pong-TC
Hello All It is quite off the topic. I think most of you work with form while you are using PHP. Does anyone need to conform your form webpage to ADA compliance? It is a U.S. Section 508 Guidelines for handicap people to access the webpage. However, when it applies to the webpage that has

RE: [PHP] Creating arrays using results from MySQL query

2002-03-18 Thread Mullin, Reginald
Mark, I'm still experiencing the same problem. Only one record is being added to the arrays. There are currently two records in the DB workgroups table matching the WHERE emp_id='$emp_login_id criteria. Here's the 2 records in the DB workgroups table: FIELDS Value#1 Value#2

[PHP] Re: Two easy HTML/CSS questions

2002-03-18 Thread Marcel Besancon
Hi Phil, here's an answer to your first question. You can use colorchanging links when put formatting code like this one: a:link { font-family:Arial Narrow, helvetica; font-variant:small-caps; color:black; text-decoration:none; font-size:13pt; } a:hover { font-family:Arial Narrow,

Re: [PHP] unscriber please

2002-03-18 Thread Erik Price
On Sunday, March 17, 2002, at 12:20 AM, [EMAIL PROTECTED] wrote: Roy Daniel , ST IT Developer System - PT BERCA COMPUTEL My E-mail : [EMAIL PROTECTED] and : [EMAIL PROTECTED] / [EMAIL PROTECTED] My ICQNumber : # 103507581 My Phone Cell : 0816-1192832 What embarrassing information to

  1   2   >