[PHP] Displaying query results

2001-03-29 Thread M. A. Ould-Beddi
I wrote a PHP script which perfrom a query on a MysQl databasis. i want the result to be displayed by 10 records in each page with hyperlinks to move to the next or previous page and to each page. Something like this: XX records were found Display 1-10 results 1- 2 . Next

Re: [PHP] Php extension for Ultradev available now !

2001-03-29 Thread elias
Nice post! ""Ovidiu EFTIMIE"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... For those working with ultradev : http://www.udzone.com/showDetail.asp?TypeId=4NewsId=488 Ovidiu -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

RE: [PHP] This PHP list

2001-03-29 Thread Boaz Yahav
And don't forget that there are several very good PHP related sites out there that have been out there for many years now. Many people find it more convenient to simply post the problems and solutions on that kind of a platform rather than send it to tens of thousands of people on the list that

Re: [PHP] This PHP list

2001-03-29 Thread Chris Fry
There was a mailing list [EMAIL PROTECTED] I subscribed and received a confirmation but nothing more - is the list still alive? Chris Jason Lotito wrote: -Original Message- From: Ian Harris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:36 PM To: [EMAIL

Re: [PHP] Displaying query results

2001-03-29 Thread elias
Dear Sir, Consider the following attached example. Hope it helps. Best regards, -Elias bachaalany. ""M. A. Ould-Beddi"" [EMAIL PROTECTED] wrote in message Pine.LNX.3.96.1010329091827.2931A-10@localhost">news:Pine.LNX.3.96.1010329091827.2931A-10@localhost... I wrote a PHP script which

Re: [PHP] Php extension for Ultradev available now !

2001-03-29 Thread Yasuo Ohgaki
Timely post for me. I am considering upgrading Dreamweaver and Fireworks. How and why do you like Ultradev? Why PHP user should use it? -- Yasuo Ohgaki ""Ovidiu EFTIMIE"" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... For those working with ultradev :

[PHP] split string value

2001-03-29 Thread Jacky
Hi people If I have value like [EMAIL PROTECTED] stored in a variable. How do I break it up to be take only the foo.com bit to use that to redirect user back to that URL? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself"

[PHP] Line breaks in PHP

2001-03-29 Thread Matt Davis
I have a form that edits the text on a web page by putting the data into a db and then outputting to the webpage when it is called. When I enter my text into my form I use the return key to start new lines, but when the text appears on my webpage it has no line breaks so the text just wraps to

Re: [PHP] What is the difference between session_unset() and session_destroy()?

2001-03-29 Thread Yasuo Ohgaki
Anyway, session_unset() only unset session vars in memory, but session_destroy() deletes session vars from storage. i.e. You can free storage with session_destroy() without waiting garbage collection. Unless programmer discards session id, session data will be created with the same session id,

[PHP] Announcement - New Web Graphic Design forum

2001-03-29 Thread Boaz Yahav
For those of you interested, We have a new phorum called Web Graphic Design. The phorum manager is a graphic designer named Nina ([EMAIL PROTECTED]). She is an artist and sculptress. Nina currently works in "Nina Web Development" , a small design company she started a few years back. Nina

Re: [PHP] Line breaks in PHP

2001-03-29 Thread Renze Munnik
I think nl2br() is what you're looking for. RenzE Matt Davis wrote: I have a form that edits the text on a web page by putting the data into a db and then outputting to the webpage when it is called. When I enter my text into my form I use the return key to start new lines, but when the

RE: [PHP] Line breaks in PHP

2001-03-29 Thread Boaz Yahav
check out the nl2br() function. HTML does not recognize the line breaks, it needs BR for that. Sincerely berber Visit http://www.weberdev.com Today!!! To see where PHP might take you tomorrow. -Original Message- From: Matt Davis [mailto:[EMAIL PROTECTED]] Sent: Thursday,

[PHP] saving uploaded image as file Vs. directly to database

2001-03-29 Thread toto
what's the difference between them, i mean for effectiveness and performance ? -toto- Imagination is more important than knowledge. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the

[PHP] Line breaks in PHP

2001-03-29 Thread Martin Cabrera Diaubalick
nl2br (PHP 3, PHP 4 ) nl2br -- Inserts HTML line breaks before all newlines in a string Description string nl2br (string string) Returns string with 'br /' inserted before all newlines ***

[PHP] split string value again

2001-03-29 Thread Jacky
Hi again have to try again after I have not recieved any advice, I have a vairable that stores email address value. I need to break it so that I will only get the dmain name bit to store in another variable so that I can redirect user to that domain, like if user email is [EMAIL PROTECTED]

Re: [PHP] split string value

2001-03-29 Thread Yasuo Ohgaki
Use split('@',$email_address) http://www.php.net/manual/en/function.split.php -- Yasuo Ohgaki ""Jacky"" [EMAIL PROTECTED] wrote in message 005a01c0b8a0$453ede00$[EMAIL PROTECTED]">news:005a01c0b8a0$453ede00$[EMAIL PROTECTED]... Hi people If I have value like [EMAIL PROTECTED] stored in a

[PHP] For ... in ...

2001-03-29 Thread André Næss
Javascript has this very neat control structure that makes it easy to iterate over the properties of an object. It would be nice to see something similiar in PHP. I often use Objects as a way of "packing" data in a more orderly fashion, and sometimes I need to do stuff to all the properties of an

RE: [PHP] split string value again

2001-03-29 Thread Martin Cabrera Diaubalick
Try to use explode and keep the second element of the array Just a quick thought .. - Original Message - From: Jacky [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 30, 2001 12:52 AM Subject: [PHP] split string value again Hi again have to try again after I have not

Re: [PHP] split string value again

2001-03-29 Thread dempsejn
"try again" after 20 minutes...give people some time to respond!...anyways, you can explode the variable... list($junk,$domain) = explode("@",$email); checkout http://www.php.net/explode you'll use it a lot -jack - Original Message - From: "Jacky" [EMAIL PROTECTED] Date:

Re: [PHP] Curious

2001-03-29 Thread Christian Reiniger
On Wednesday 28 March 2001 23:59, you wrote: This is where I implement a reversal of quotes depending on what kind of quotes I'll be using in it - the draw back is hitting the . key a lot to concat with variables, but it makes the my code more readable (IMO - no \'s all over the place. So

Re: [PHP] saving uploaded image as file Vs. directly to database

2001-03-29 Thread Yasuo Ohgaki
I would use filesystem if I need performance and if I don't worry about management. I would use database if I need to manage lots of them and if images have attributes. Some older databases have really poor performance when LOB is used. If it is the case, you might want to use combination of

RE: [PHP] split string value again

2001-03-29 Thread Stewart Taylor
$addr = "[EMAIL PROTECTED]"; $splitaddr = explode("@",$addr); resulting in $splitaddr[0] = "test"; $splitaddr[1] = "foo.com"; -Stewart -Original Message- From: Jacky [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 23:52 To: [EMAIL PROTECTED] Subject: [PHP] split string

Re: [PHP] Passing Special Characters in Query String

2001-03-29 Thread Christian Reiniger
On Wednesday 28 March 2001 18:34, you wrote: I've tried everything : rawurlencode, urldecode, htmlentities, htmlspecialchars - nothing is working. and come 2 think of it - it seems like such a basic problem... well, then I'd say you do something else wrong. Difficult to say without seeing

Re: [PHP] split string value again

2001-03-29 Thread elias
try this snippet: ? if (ereg("[^@]+\$", "[EMAIL PROTECTED]", $result)) { $domain = $result[0]; echo $domain; } ? ""Jacky"" [EMAIL PROTECTED] wrote in message 009301c0b8a2$e856f6c0$[EMAIL PROTECTED]">news:009301c0b8a2$e856f6c0$[EMAIL PROTECTED]... Hi again have to try again after I

Re: [PHP] split string value again

2001-03-29 Thread [EMAIL PROTECTED]
thank you everone, sorry about the rush though. I was kind of in urgent need. Anyway, thanks again.:-) Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Stewart Taylor [EMAIL PROTECTED] To: 'Jacky' [EMAIL

Re: [PHP] remote acces

2001-03-29 Thread Christian Reiniger
On Wednesday 28 March 2001 20:01, you wrote: Hi I'm triying to connect from windows to linux... do i have to manipulate grant tables on mysql... what should I do?? read the mysql documentation. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Pretty cool, the kind of power

Re: [PHP] For ... in ...

2001-03-29 Thread Yasuo Ohgaki
You can use get_class_vars() or get_object_vars() http://www.php.net/manual/en/function.get-object-vars.php http://www.php.net/manual/en/function.get-class-vars.php You also need to use Variable variables (i.e. $$var) to iterate object properties. ?php class foo { var $v1 = 1; var $v2 = 2;

Re: [PHP] For ... in ...

2001-03-29 Thread Yasuo Ohgaki
I thought more examples might be useful someone. ?php class foo { var $v1 = 1; var $v2 = 2; var $v3 = 3; } $obj = new foo; $property_names = array_keys(get_object_vars($obj)); foreach ($property_names as $name) { print("foo-$name = ".$obj-$name."br\n"); } while (list($k,$v) =

[PHP] Session Varables with PHP3

2001-03-29 Thread Sean Weissensee
How can I create Session Varables, the docs I have read only provide funtions for PHP4. Sean Weissensee Ion Solutions.

Re: [PHP] Session Varables with PHP3

2001-03-29 Thread Renze Munnik
PHP Documentation: "Note: Session handling was added in PHP 4.0." RenzE Sean Weissensee wrote: How can I create Session Varables, the docs I have read only provide funtions for PHP4. Sean Weissensee Ion Solutions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Delete LDAP attribute value

2001-03-29 Thread Anders Östling
Hi people I have written a website to manage our LDAP directory, but there is one outstanding problem that I can find any solution to. What I need to do is to delete a single value from a multivalued attribute. I can't figure out the correct arguments to do this Attribute X Values Y

[PHP] pdflib

2001-03-29 Thread Ali
Hello, how do I get a whole paragraph written in pdf using pdflib function PDF-show-xy? Or is there another function or method to manage this? I appreciate any hint. Thank you. Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] Session Varables with PHP3

2001-03-29 Thread Matt Williams
See http://phplib.netuse.de regarding sessions in php3 HTH M@ -Original Message- From: Sean Weissensee [mailto:[EMAIL PROTECTED]] Sent: 29 March 2001 11:38 To: [EMAIL PROTECTED] Subject: [PHP] Session Varables with PHP3 How can I create Session Varables, the docs I have

[PHP-CVS] cvs: php4 /ext/iconv iconv.c

2001-03-29 Thread Wez Furlong
wez Thu Mar 29 01:37:09 2001 EDT Modified files: /php4/ext/iconv iconv.c Log: Fixed leak in php_iconv_string. Also returns FAILURE on failure, rather than -1 Index: php4/ext/iconv/iconv.c diff -u php4/ext/iconv/iconv.c:1.9

Re: [PHP] CodeCharge? is it any good?

2001-03-29 Thread Donald Goodwill
Re:1 Yes, PHP should be the right tool to use to build your system. It is likely much more powerful (has more functions) than any other web related language you can find. Re:2 CodeCharge is the best PHP generator (or code generator in general) I seen, except for its own UI, which can be

[PHP] How may :)

2001-03-29 Thread Nilesh Parmar
Hi Does anyone know how many keywords does PHP have.And where can I find them ? I would appretiate if anyone can send a list of them if possible bye and thanx in advance Nilesh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

[PHP] Setcookie not working

2001-03-29 Thread Sean Weissensee
When I use set cookie with an expire value it does not retain the value ? setcookie ("TestCookie2", "test", $value,time()+3600); I am using echo $TestCookie2; or echo $HTTP_COOKIE_VARS["TestCookie2"]; in another page to view the value Sean Weissensee Ion Solutions

[PHP-CVS] cvs: php4 /pear/Experimental/XML fo2pdf.php

2001-03-29 Thread Christian Stocker
chregu Thu Mar 29 02:13:50 2001 EDT Modified files: /php4/pear/Experimental/XML fo2pdf.php Log: MSIE needs a Content-Length: Header to display pdfs correctly. so here it is.. Index: php4/pear/Experimental/XML/fo2pdf.php diff -u

[PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread Alexander Bokovoy
ab Thu Mar 29 02:35:33 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: - Typo fixed - config.m4.session updated to config.m4 Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.21

[PHP] [PHP-DB] ALTER TABLE - code not working.

2001-03-29 Thread Martin E. Koss
I have been trying to get a new column added to a table (vips) via a PHP script, but having exhausted all the things I can find, I'm still struggling. I've referred to TFM for all those who just can't wait to tell me to do so, and I believe my SQL statement is correct: $NewCol = $Prod_Code;

RE: [PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread James Moore
abThu Mar 29 02:35:33 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: - Typo fixed - config.m4.session updated to config.m4 What does this fix do?? does it need to be included in 4.0.5?? or will ming work without it?? James -- PHP

Re: [PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread Alexander Bokovoy
On Thu, Mar 29, 2001 at 11:50:29AM +0100, James Moore wrote: ab Thu Mar 29 02:35:33 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: - Typo fixed - config.m4.session updated to config.m4 What does this fix do?? does it need

Re: [PHP] How may :)

2001-03-29 Thread Pavel Jartsev
Nilesh Parmar wrote: Hi Does anyone know how many keywords does PHP have.And where can I find them ? You can find them here: http://www.php.net/manual/en/reserved.php -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

RE: [PHP-CVS] cvs: php4 /ext/midgard config.m4 config.m4.session

2001-03-29 Thread James Moore
On Thu, Mar 29, 2001 at 11:50:29AM +0100, James Moore wrote: abThu Mar 29 02:35:33 2001 EDT Modified files: /php4/ext/midgard config.m4 config.m4.session Log: - Typo fixed - config.m4.session updated to config.m4 What does this fix do??

[PHP] sessions and REMOTE_USER

2001-03-29 Thread Rahul Bhide
Gurus, I am a relative newbie to sessions in php. Question: How can I get the loginname of the user . Can session and session variables get this??. Another way I have tried(but unsuccessfully !!) is to have a .htaccess file in the directory . Once the user logs in I use the following code to

[PHP-CVS] cvs: php4 / run-tests.php

2001-03-29 Thread James Moore
jmoore Thu Mar 29 04:07:38 2001 EDT Modified files: /php4 run-tests.php Log: Output php version at end of tests. Index: php4/run-tests.php diff -u php4/run-tests.php:1.21 php4/run-tests.php:1.22 --- php4/run-tests.php:1.21 Wed Mar 21 08:01:52 2001

[PHP] fatal error

2001-03-29 Thread Theo Richel
Can anyone please tell me why I get the following message: Fatal error: Call to unsupported or undefined function session_start() in /www/richel/authent/index.php3 on line 22 Thank you, Theo Richel

Re: [PHP] fatal error

2001-03-29 Thread Jon Rosenberg
what version of PHP are you using? - Original Message - From: "Theo Richel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 29, 2001 8:08 AM Subject: [PHP] fatal error Can anyone please tell me why I get the following message: Fatal error: Call to unsupported or

Re: [PHP] sessions and REMOTE_USER

2001-03-29 Thread Renze Munnik
Well, try this: $REMOTE_USER or $PHP_AUTH_USER or $HTTP_SERVER_VARS["REMOTE_USER"] or $HTTP_SERVER_VARS["PHP_AUTH_USER"] or $HTTP_SERVER_VARS{"PHP_AUTH_USER"} or $HTTP_SERVER_VARS{"REMOTE_USER"} ...make your choice... RenzE Rahul Bhide wrote:

Re: [PHP] fatal error

2001-03-29 Thread Renze Munnik
PHP3 doesn't support sessions RenzE Theo Richel wrote: Can anyone please tell me why I get the following message: Fatal error: Call to unsupported or undefined function session_start() in /www/richel/authent/index.php3 on line 22 Thank you, Theo Richel -- PHP General Mailing

[PHP] rewrite one line in file

2001-03-29 Thread Peter Van Dijck
How do I rewrite 1 line in a file? I got the filename and the linenumber. i was playing around with fwrite but to find the line I had to do all sorts of gymnastics, I'm sure there must be a more elegant way... thanks for any hints! Peter ~~

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
Typically I would never respond to this type of thread discussion, but it's one that gives me a great amount of frustration from time to time. I think this level of frustration stems from the fact that a lot of these 'newbie' questions are even more basic than a PHP newbie should be asking.

[PHP] Tough One

2001-03-29 Thread KPortsmout
Hi, Ok I have a real tough one here (well to me it is :-) If I telnet into my server I can add a user by running the following command... /usr/sbin/cadduser -d www.domain.com -f users full name -u username -p password -w emailaddress for forwarding Which is great, but as I`m offering

RE: [PHP] Tough One

2001-03-29 Thread Krznaric Michael
To get this done I would use an Expect script, driven through CGI. Mike -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:22 AM To: [EMAIL PROTECTED] Subject: [PHP] Tough One Hi, Ok I have a real tough one here (well to me it is

Re: [PHP] Tough One

2001-03-29 Thread Chris Moewes-Bystrom
I good solution for this kind of stuff is to just build a queue, either file or database. WHen you need to do a system type function you add that command to the queue, then have a cron job that runs (which can more safely run as a provolidged user), verifies that the function is ok and

Re: [PHP] Tough One

2001-03-29 Thread KPortsmout
In a message dated 29/03/2001 15:27:27 GMT Daylight Time, [EMAIL PROTECTED] writes: To get this done I would use an Expect script, driven through CGI. Mike Problem is I don`t program in CGI so have no idea what you mean :-) Ade -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] rewrite one line in file

2001-03-29 Thread Jason Stechschulte
On Thu, Mar 29, 2001 at 03:05:09PM +0100, Peter Van Dijck wrote: How do I rewrite 1 line in a file? I got the filename and the linenumber. i was playing around with fwrite but to find the line I had to do all sorts of gymnastics, I'm sure there must be a more elegant way... thanks for any

[PHP] Re: Complex mysql query

2001-03-29 Thread Robert Vetter
Yann Larrive wrote: Thanks for the answer but it is a bit more complexe, i actually creates these sample table for the example. Here is an attachement of the structure dump. Hummm you got me to think more about my database structure withc is really good. The idea you bourght up seems

[PHP] Finding linefeeds in Strings

2001-03-29 Thread Jens Kisters
String functions like explode, strpos or str_replace seem to fail when asked to work with "\n". What can i do to tokenize or explode a string by linefeeds? i replaced "\n" by another expression and it seems to work, but i'm curious if there's a mor elegant solution... cu Jens -- Gre aus dem

[PHP] environment variable, why does it not work?

2001-03-29 Thread Scott Fletcher
Hi! I'm using PHP4, iODBC OpenLink for the database connection and communication. After installing the iODBC (driver manager) OpenLink (driver), fix up the odbc.ini (part of iODBC or OpenLink) and did the odbctest. The test passed and it connect the linux to the MS-SQL Server and I was

RE: [PHP] Easy HTML PHP question

2001-03-29 Thread Paulson, Joseph V. \Jay\
Yeah that would work if I knew how to do that? Any suggestions on how to go about doing that? Thanks, Jay -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 1:59 AM To: 'Fabian Raygosa'; Paulson, Joseph V. "Jay"; [EMAIL PROTECTED] Subject: RE:

RE: [PHP] Easy HTML PHP question

2001-03-29 Thread Tim Ward
script language="javascript" function ImgClick(imgName) { ThisImage = document.all[imgName]; document.form1.fred.value = ThisImage.value; } /script form name="form1" input type=hidden value="" name="fred" input type="image" src="image.bmp"

RE: [PHP] This PHP list

2001-03-29 Thread John Almberg
True, but you have to remember that a lot of 'newbies' are actually superb graphic designers with a lot of experience developing static websites. They are grappling with new demands from their customers for more dynamic features. If they don't quite grasp the difficulty of what they are trying to

Re: [PHP] Tough One

2001-03-29 Thread Pierre-Yves Lemaire
This is the only viable solutions because most system admin will banned all system calls coming from the web. As it should be, I think. py At 08:34 AM 3/29/01 -0600, you wrote: I good solution for this kind of stuff is to just build a queue, either file or database. WHen you need to do a system

RE: [PHP] This PHP list

2001-03-29 Thread Joe Sheble (Wizaerd)
I wouldn't expect a programmer to walk in off the street and try to do graphic design without having any concept of graphic design. I wouldn't expect a mechanic to walk into the kitchen and expect to build a souffle. I wouldn't expect a gardner to walk in and perform brain surgery. And I

RE: [PHP] Easy HTML PHP question

2001-03-29 Thread Paulson, Joseph V. \Jay\
You are a God! :) It works great! Is there any chance I could get you to make some suggestions on some good javascript books or web sites? Jay -Original Message- From: Tim Ward [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 9:28 AM To: Paulson, Joseph V. "Jay"; Tim Ward;

Re: [PHP] Best way to check if a query succeeded

2001-03-29 Thread Christian Reiniger
On Thursday 29 March 2001 13:00, you wrote: Hi, i was just wondering what you guys do to check if a wquery suceeded or not? I know about mysql_num_rows() and mysql_affected_rows(), just wondered what you guys do? Check the return code of mysql_query(). The only safe method. -- Christian

RE: [PHP] This PHP list

2001-03-29 Thread Philip Olson
I wouldn't expect a programmer to walk in off the street and try to do graphic design without having any concept of graphic design. ack! i do this very thing! one reason i rely on css and tables rather then graphics, that and it means less hits on my server :-) regarding this thread,

[PHP] Need urgent help... Send HTML with jpg/gif page with php

2001-03-29 Thread Paul Godard
Hi, I am finalizing a new web site that needs to be live this week-end and I still have a problem to receive HTML email send from a web page using implode in php. Help to fix the problem will be VERY much appreciated... Please reply directly to [EMAIL PROTECTED] ... thanks Here is the php

Re: [PHP] This PHP list

2001-03-29 Thread Rick St Jean
that is not true... I for one would hang out on more than one list. And IF no one did answer the question, what do newbies do they get the answer themselves. they spend energy on solving the problem and they learn how to learn. We can exhaust this topic to death. I just created [EMAIL

Re: [PHP] comparing dates works sometimes and fails another time!

2001-03-29 Thread trogers
You are doing a string compare not date, convert them to a unix time stamp and then compare $d1 = explode("-",$date1); $d2 = explode("-",$date2); $ts1 = mktime(0,0,0,$d1[1],$d1[2],$d1[0]); $ts2 = mktime(0,0,0,$d2[1],$d2[2],$d2[0]); if( $ts1 $ts2 ): echo "Date 1 is greater than date2";

[PHP-CVS] cvs: php4 /pear Cache.xml

2001-03-29 Thread Ulf Wendel
uw Thu Mar 29 07:01:16 2001 EDT Added files: /php4/pear Cache.xml Log: - package XML for the Cache I'm not sure how to use the package.dtd to document packages and if at all the Cache can be it's own package, but one has to start with it...

[PHP] Retrieving environment variables

2001-03-29 Thread Jon
Hi, I am using Apache 1.3.19 for Win32 and PHP 4.04 as a module. I would like to retrieve, as a variable, the user name loged in the W2000 domain. Running PHPINFO() function e it does not display USERNAME variable so I do not know how to accomplish this task Thanks -- PHP General Mailing

[PHP] Compiling GD with freetype2

2001-03-29 Thread Ashley T. Howes Ph.D.
Hi, I've installed freetype2 from source into the default locations, and modified the Makefile for GD to include TTF support. Added /usr/local/include/freetype2/ to the INCLUDE var. When I try to make, lots of files compile fine but gdttf.c complains it can't find freetype.h. If I add

[PHP] Weirdness With Header Function

2001-03-29 Thread Grimes, Dean
?php function auth_user() { exec(""); Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); } // Header("WWW-Authenticate: Basic realm=\"My Realm\""); if (!isset($PHP_AUTH_USER)) { // echo "USER: $PHP_AUTH_USER";

RE: [PHP] Line breaks in PHP

2001-03-29 Thread Martin E. Koss
When getting the data out of a mySQL table with PHP, use: $TextArea = nl2br($TextField); If you are opening it into a form you shouldn't need any formatting as it will detect the new lines and if using a TEXTAREA the lines will be as you typed them initially. If you want to save BRs when

RE: [PHP] Compiling GD with freetype2

2001-03-29 Thread Grimes, Dean
Yup...That's what happened to me too. I got around it by installing Freetype as a shared library and compiling GD without Freetype. Then I linked on both Freetype and GD during PHP compile and this seems to work. I have had no problems creating images with TTF. Dean -Original Message-

[PHP] Giving my script the power!

2001-03-29 Thread Brandon Orther
Hello, I am trying to make a script that can add users and multiple things to a linux box. I have all teh programming issues solved except I need to make this script root, or make it able to run anyhting it want to. Is there a way to make my php script liek a super user? INFO: Redhat 7

[PHP] PHP Wordfile for UltraEdit

2001-03-29 Thread Sebastian Bergmann
Since I was not satisfied with the "official" Wordfiles provided by UltraEdit.com I started to create my own one, which can be found in an initial version in the "Projects" section of my homepage (URL see below). My wordfile uses the funclist.txt from cvs.php.net, so it includes ALL function

[PHP] Re: PHP Wordfile for UltraEdit

2001-03-29 Thread Sebastian Bergmann
I just noticed that my domain provider has some problems, so www.sebastian-bergmann.de is currently unreachable. Please use http://sb.rc5.de/ for the time beeing. Thanks for your patience, Sebastian :-( -- sebastian bergmann[EMAIL PROTECTED]

[PHP] urgent,configure-problems

2001-03-29 Thread MMATTES
Hello People, I want to configure the version php-4.0.4pl1 on to a RS/6000 with AIX4.3.3. IBM HTTP Server 1.3.12.0, IBM JDK 1.2.2, IBM DB2 UDB 6.1, IBM C-Compiler 3.6.4, LDAP-Server 3.2.0. After unpacking the php-4.0.4pl1.tar-file under /usr/, parallel to the HTTPServer, I used the

Re: [PHP] Help w/ exec() on Win2k, IIS5.

2001-03-29 Thread Tobias Talltorp
I have had this problem with exec, passthru with that configuration aswell... To read the files into an array, do this: (http://www.php.net/manual/en/function.opendir.php) ?php if ($dir = @opendir("e:\\dir")) { // Notice the double "\\" while($file = readdir($dir)) { if ($file !="."

Re: [PHP] Need urgent help... Send HTML with jpg/gif page with php

2001-03-29 Thread Renze Munnik
Paul Godard wrote: Hi, I am finalizing a new web site that needs to be live this week-end and I still have a problem to receive HTML email send from a web page using implode in php. Help to fix the problem will be VERY much appreciated... Please reply directly to [EMAIL PROTECTED]

[PHP] Case?

2001-03-29 Thread acleave
I have tried the online documentation and it either errors out on me or cannot find anything when I search on case. Can someone tell me if PHP supports case statements (or do I just need to do a series of ifs?) and if so where I can find them detailed in the online docs? Thnaks, Allan --

RE: [PHP] Case?

2001-03-29 Thread Boget, Chris
I have tried the online documentation and it either errors out on me or cannot find anything when I search on case. Can someone tell me if PHP supports case statements (or do I just need to do a series of ifs?) and if so where I can find them detailed in the online docs? You want:

[PHP] Match em up

2001-03-29 Thread KPortsmout
Hi, I have two database`s with one table in each. (MySQL) Is there a way that I can select data from one table and then match it with the data in another and discard the results so all I am left with is the original data from the first table which never matched up. Database1

RE: [PHP] Case?

2001-03-29 Thread Grimes, Dean
Yes... switch ($my_variable_to_case) { case "value_1": php-code-here; break; case "value_2": php-code-here; break; default: php-code-here; } It works exactly like c. -Original Message- From:

Re: [PHP] Case?

2001-03-29 Thread Egon Schmid (@work)
acleave wrote: I have tried the online documentation and it either errors out on me or cannot find anything when I search on case. Can someone tell me if PHP supports case statements (or do I just need to do a series of ifs?) and if so where I can find them detailed in the online docs?

Re: [PHP] Case?

2001-03-29 Thread Andrew Rush
on 3/29/01 12:14 PM, [EMAIL PROTECTED] splat open and thusly melted: if so where I can find them detailed in the online docs? look under switch, in control structures. -- :: Andrew Rush :: Lead Systems Developer :: MaineToday.com ::

[PHP] Sessions Q.

2001-03-29 Thread KPortsmout
Hi, I currently have sessions working nicely on my site, but I want to add a timeout feature. What would be the best method, grabbing the server time and setting it using the session_register, and then running a time check so if the session time is more than one hour old destroy it?? Ade --

RE: [PHP] Sessions Q.

2001-03-29 Thread Johnson, Kirk
PHP will do this for you. See the setting "session.gc_maxlifetime" in the php.ini file. This sets the session lifetime. Kirk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 10:37 AM To: [EMAIL PROTECTED] Subject: [PHP] Sessions

[PHP] arrays in sessions, please!

2001-03-29 Thread Christian Dechery
Why I can get this to work? I don't understand... I made another simple script that the only thing it did was the "build array/serialize it/register the session var/ = next page load unserialize it into array/update array/serialize it again".. and it worked like a charm... I'm doing the exact

[PHP] shipping module

2001-03-29 Thread Craig Cameron
Hi, We are developing a shopping cart application are wondering if there are any modules available to integrate with the different shipping companies. An help would be greatly appreciated. Thanks, Craig

[PHP] Super User Script?

2001-03-29 Thread Brandon Orther
Hello, Is there anyway I can have my script turn super user at the beginning when it runs? Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators,

Re: [PHP] Match em up

2001-03-29 Thread Mark Maggelet
On Thu, 29 Mar 2001 19:58:51 +0200, Johannes Janson ([EMAIL PROTECTED]) wrote: Hi, SELECT a.list FROM db1 a, db2 b WHERE a.email!=b.email; this shoulds work no, this isn't even close. you need a left join, there's an example in the mysql docs under left join that shows you how to do what you

[PHP] (another) cms, but internationalized

2001-03-29 Thread Peter Van Dijck
Hi, I'm working on another content management system, coz I can't find what I need out there. Some features: - multiple languages for everything - multiple templates (so you can have a english-simple template version or a french-old style template version of the same page, all cached) - easy to

[PHP] Compairing Times

2001-03-29 Thread Brian C. Doyle
Hello All, how do I compare 2 times. What i want to do is $time=date("H:i:s",mktime(0,1,03,0,0,0)); IF ($time 00:00:35) { echo "Too High"}; when I do this all i ever get is Too High no matter what the value of time is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] PHP Wordfile for UltraEdit

2001-03-29 Thread Geoff Caplan
Sebastian, Thanks for the wordfile - a definite improvement. Good idea to have regular and curly brackets a different colour! One of those things that you wonder why you never thought of yourself... Why don't you post the list on the UltraEdit site? As far as I know, there is no "official"

[PHP] Error during session_start - is this a bug?

2001-03-29 Thread Michael Champagne
Ok, in testing our site that heavily uses sessions I came across this error: Warning: open(/tmp/sess_f3051699b0f1ae4a89570e66dab05de9, O_RDWR) failed: m (0) in /ora9ias/Apache/Apache/php/cisweb_global.inc on line 19 I can't figure out what causes it. It just happens occasionally when I'm

[PHP] Editors Inquiry.

2001-03-29 Thread Rick St Jean
Enter your vote today! A new poll has been created for the group: Which editor do you prefer?? o Ultra Edit o Home Site o Edit Plus o Php Editor o Text Pad o Other http://groups.yahoo.com/group/php-adv/polls Note: Please do not reply to this message. Poll votes are not

  1   2   3   >