[PHP] replacing mail()

2002-09-18 Thread Liam
Yeah, mail() again... I want to disable the default mail command and replace it with my own. I've written a function that talks directly to my SMTP server, however, I'd rather not go thru every single script on my server and change all the mail() functions. Any ideas? Cheers, Liam -- PHP

Re: [PHP] Redirecting - header location - sometimes not work

2002-09-18 Thread Marek Kilimajer
Try direct connection to the server to see the response it sends, you may also try to send header(HTTP/1.0 302 Found) and see if that helps. What browsers does it happens to? jana konickova wrote: I have the php script with the command Header(Location: https://$SERVER_NAME$path;); which

Re: [PHP] Please, Help dynamicaly creating an Array

2002-09-18 Thread Marek Kilimajer
Try eval(), like this: $str= 'THREE'=3, 'FOUR'=4; eval(\$data2 = array('ONE'=1,'TWO'=2,$str);); Max Sullivan wrote: I am trying to populate array values and keys from a variable with no luck. Lets say I have the following array. $data1 = array('ONE'=1,'TWO'=2,'THREE'=3,'FOUR'=4); And I

[PHP] time to seconds

2002-09-18 Thread adi
Hi, I have a table table1, with a column Duration time type(ex 00:12:30) I want to make in PHP a sql selection: SELECT * from table1 WHERE condition, and after that, to make sum of values of column Duration and display it. Any Help? How to transform time in seconds, with php functions? tx

Re: [PHP] adding unix account via system command

2002-09-18 Thread Marek Kilimajer
It's a shell script, and your shell drops root privileges. Use a shell that doesn't or use a C-wraper. tim tom wrote: Dear Pete, Yes, apache runs as nobody. But I have setuid add.sh. Wouldn't that be sufficient ? -- tim --- Peter Houchin [EMAIL PROTECTED] wrote: you need to make sure

Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Marek Kilimajer
switch($DOCUMENT_URI) { case '/': include( watch you want); break; case } Eric C. Pollitt wrote: I would like to know how to conditionally included a file based on the document location. The purpose is for placement of location-specific navigation menus.

[PHP] Re: time to seconds

2002-09-18 Thread Denis Basta
Hello, Try this: SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition Hope it will help ya! Regards, Denis Basta. Adi [EMAIL PROTECTED] wrote in message 008701c25ef1$01d94260$9600a8c0@adi">news:008701c25ef1$01d94260$9600a8c0@adi... Hi, I have a table table1, with a column

Re: [PHP] replacing mail()

2002-09-18 Thread Marek Kilimajer
Try to set it in disable_functions, it may help, or may not. Otherwise disable it in php sources or even better regexp your scripts to change mail to something else. Liam wrote: Yeah, mail() again... I want to disable the default mail command and replace it with my own. I've written a

Re: [PHP] Re: time to seconds

2002-09-18 Thread Marek Kilimajer
won't help, it's forbidden to mix aggregate columns with non aggregate without a group by clause. Make your first query and then the sum. Denis Basta wrote: Hello, Try this: SELECT SUM(duration) AS summ, ..., ..., ..., FROM table1 WHERE condition Hope it will help ya! Regards, Denis Basta.

Re: [PHP] Messaging Solution

2002-09-18 Thread Marek Kilimajer
You are very general, what you are asking for is all PHP is about. karthikeyan wrote: Messaging Solution I want to develop a web-based Messaging System where the clients needs the messages and server keeps sending the messages based on Technical Request from the client. I

[PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
Hi people, I have a table with a column called ID (auto-increment). Is it possible to know the value of ID, right after inserting a row? I'm using postgresql. Thanks. Sincerely, Faisal __ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] time to seconds

2002-09-18 Thread Warren Daly
if your data is in UNIX TIMESTAMP format: $result = mysql_query(select * from table1;,$db); while ($row = mysql_fetch_array($result)){ // convert seconds from epoch into human date // $data[] = date(Hi,mktime(0,0,$row['duration'],1,1,1970)); } so I guess using mktime to convert DATE into unix

Re: [PHP] Auto-increment value

2002-09-18 Thread Scott Houseman
Hi there. You can use the function mysql_insert_id( [link id] ). regards Scott Faisal Abdullah wrote: Hi people, I have a table with a column called ID (auto-increment). Is it possible to know the value of ID, right after inserting a row? I'm using postgresql. Thanks.

Re: [PHP] Auto-increment value

2002-09-18 Thread Erwin
Scott Houseman wrote: Hi there. You can use the function mysql_insert_id( [link id] ). I'm using postgresql. Not if you're using PostGreSQL Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
As he uses postgresql, he should use *pg_last_oid()* Scott Houseman wrote: Hi there. You can use the function mysql_insert_id( [link id] ). regards Scott Faisal Abdullah wrote: Hi people, I have a table with a column called ID (auto-increment). Is it possible to know the value of

[PHP] Re: note 25286 added to function.mb-strcut

2002-09-18 Thread nicos
It means the $_GET or $_POST doesn't exist, just verify that it exists. a GET is on your URL like lala.php?irc=1 and $_GET['irc] = 1; a POST is on your form and it will appear like $_POST['lol']. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] www.WorldAKT.com - Hébergement de sites Internet -

Re: [PHP] Help.....still stuck after 3 days :/

2002-09-18 Thread Marek Kilimajer
I would do it this way (it fails if some names are same): Chad Winger wrote: Hello Rudolf, Thank you for responding to my post, I really appreciate it. I ran the script you sent me, and then I tried looking up the syntax to try to figure out what it means. As it would be pointless for me just

Re: [PHP] PHP and Microsoft Office

2002-09-18 Thread Marek Kilimajer
Look at the COM support (never have worked with it but it should be what you are looking for) Matthew Tapia wrote: Can you use PHP to add appts to my microsoft outlook calendar or open up a document in ms word? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] Auto-increment value

2002-09-18 Thread Justin French
not on postgreSQL :) Justin on 18/09/02 7:24 PM, Scott Houseman ([EMAIL PROTECTED]) wrote: Hi there. You can use the function mysql_insert_id( [link id] ). regards Scott Faisal Abdullah wrote: Hi people, I have a table with a column called ID (auto-increment). Is it possible

RE: [PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
I tried that. It gives me 24807, instead of 5. Or is oid is a reference to something else, which would lead me to the '5' i'm looking for? -- snip snip -- if($result = pg_exec($db, $sql)) { $query = success; echo oid : .pg_last_oid($result); } -- snip snip --

RE: [PHP] Help.....still stuck after 3 days :/

2002-09-18 Thread Ford, Mike [LSS]
-Original Message- From: Chad Winger [mailto:[EMAIL PROTECTED]] Sent: 18 September 2002 02:32 however there is a little problem with the end result. your code: ?php include (C:\Program Files\EasyPHP\www\florentiaviola.com\control\config.php); $fd = fopen ($teams,

php-general Digest 18 Sep 2002 10:16:23 -0000 Issue 1592

2002-09-18 Thread php-general-digest-help
php-general Digest 18 Sep 2002 10:16:23 - Issue 1592 Topics (messages 11 through 116709): Re: strange bug(?) when opening lots of files 11 by: Tyler Longren 116668 by: Shane Wright 116669 by: nicos.php.net 116670 by: Shane Wright 116671 by:

[PHP] Need some help please.

2002-09-18 Thread Simon Angell
Hi. I am having trouble with a PHP script. I am not the one who made this and my knowledge on php is very little. I came across this php script www.canberra-wx.com/bomonster/bomonster01.php which is weather forecasting for a place called Mildura. The file that the PHP gets its info from is

Re: [PHP] Re: Dependent Dropdown Boxes

2002-09-18 Thread lallous
it is all .js right, but there are the js_products and the js_categories javascript variables which are server-side generated. They are dumped from the database and encode '|' seperated values. Btw, what you are achieving is heavily JavaScript...otherwise you can it almost all in PHP w/o

[PHP] Re: replacing mail()

2002-09-18 Thread lallous
There is something you can set in php.ini afaik. search for 'sendmail' in that file. Elias, Liam [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Yeah, mail() again... I want to disable the default mail command and replace it with my own. I've written a function that talks

[PHP] Re: Need some help please.

2002-09-18 Thread Simon Angell
just thought i should add the source MILDURA (working) ?php //weather(Mildura,http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDV17001.txt; ,bomonster.htm); weather(Mildura,http://www.bom.gov.au/cgi-bin/wrap_fwo.pl?IDV17001.txt,; bomonster.htm); function weather($placename, $inputfilename,

[PHP] Urgent Installation Question

2002-09-18 Thread César Aracena
Hi all, I know this has been answered a lot in this list, but I'm not at my computer where I have fast access to my e-mails. I'm about to make my first PHP - MySQL installation under Win2K + IIS 5.0 and really don't have a clue of what to do (also sleepy). I've downloaded the 4.2.3 version of

RE: [PHP] Urgent Installation Question

2002-09-18 Thread John Holmes
Have you tried the chapter in the PHP manual on installation? It walks you right through it. MySQL is just a simple unzip and go, there's no real setup to it at all other than changing the root password... ---John Holmes... -Original Message- From: César Aracena [mailto:[EMAIL

[PHP] Image resolution and php

2002-09-18 Thread dsfljsdfklj kljvdskljfsdkl
I have the following problem: I need to get resolution information (dpi) from any image of jpg, gif or png formats. It would be sufficient to obtain pixel and inches dimension of such images and calculate resolution by simply dividing but I haven't found any function that gets effective

Re: [PHP] Urgent Installation Question

2002-09-18 Thread César Aracena
Thanks. I installed PHP first and will install MySQL (once the download finishes) hoping they'll work together just fine. One thing's missing... the phpinfo.php file, which should be here... but isn't... Should I grab it from somewhere else? Thanks again, C. - Original Message - From:

RE: [PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
Would a select last_value from sequence_name do any good? Is there a possibility that I get a value from the outcome of a nextval by another session? Meaning, I do an insert 1, 2, 3, 4 A 'select last_value from sequence_name' should give me '4'. But what if another user/session does another

RE: [PHP] Urgent Installation Question

2002-09-18 Thread John Holmes
There should be a php-ini.dist that you can rename to PHP.ini ---John Holmes... -Original Message- From: César Aracena [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 6:03 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] Urgent Installation Question

RE: [PHP] Help.....still stuck after 3 days :/

2002-09-18 Thread Rudolf Visagie
Hi, The solution I posted: echo 'OPTION VALUE='.$alphabetical[$i][0].''.$alphabetical[$i].'/OPTION'.\n; did indeed take the first letter of $squads[1] as option value. I wondered at the time why Chad would want the first letter of the name as option value (that was his original code); I

Re: [PHP] Urgent Installation Question

2002-09-18 Thread Marek Kilimajer
If you mean phpinfo.php which calls just phpinfo(), here it is: ? phpinfo(); ? César Aracena wrote: Thanks. I installed PHP first and will install MySQL (once the download finishes) hoping they'll work together just fine. One thing's missing... the phpinfo.php file, which should be here...

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
MySQL has |LAST_INSERT_ID() function, try it (SELECT ||LAST_INSERT_ID())| Faisal Abdullah wrote: Would a select last_value from sequence_name do any good? Is there a possibility that I get a value from the outcome of a nextval by another session? Meaning, I do an insert 1, 2, 3, 4 A 'select

RE: [PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
Thanks for your reply, but I'm using postgresql. Mysql is irrelevant for me. -Original Message- From: Marek Kilimajer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 7:41 PM To: PHP Subject: Re: [PHP] Auto-increment value MySQL has |LAST_INSERT_ID() function, try it

Re: [PHP] Auto-increment value

2002-09-18 Thread Leonid Mamtchenkov
Dear Faisal Abdullah, Once you wrote about RE: [PHP] Auto-increment value: Thanks for your reply, but I'm using postgresql. Mysql is irrelevant for me. There is a similar one for postgresql as well: pg_last_oid() . -Original Message- From: Marek Kilimajer [mailto:[EMAIL

[PHP] Re: Image resolution and php

2002-09-18 Thread Jome
I need to get resolution information (dpi) from any image of jpg, gif or png formats. It would be sufficient to obtain pixel and inches dimension of such images and calculate resolution by simply dividing but I haven't found any function that gets effective dimensions in inches.

RE: [PHP] Auto-increment value

2002-09-18 Thread Faisal Abdullah
There is a similar one for postgresql as well: pg_last_oid() . I tried that. It gives me 24807, instead of 5. Or is oid is a reference to something else, which would lead me to the '5' i'm looking for? -- snip snip -- if($result = pg_exec($db, $sql)) { $query = success;

RE: [PHP] Auto-increment value

2002-09-18 Thread bob parker
SELECT idno ORDER BY idno DESC LIMIT 1; assuming idno is what gets auto incremented bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Image resolution and php

2002-09-18 Thread Mark Charette
Images don't have a resolution per se; display devices have a resolution. Images (the formats you're talking about, anyway) are measured in pixel width and height. The height and width in any units other than pixels of course necessitates conversion - for an easy example, a 300x300 image on a

Re: [PHP] Auto-increment value

2002-09-18 Thread Marek Kilimajer
You encounter a race condition bob parker wrote: SELECT idno ORDER BY idno DESC LIMIT 1; assuming idno is what gets auto incremented bob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Auto-increment value

2002-09-18 Thread Jon Haworth
Hi Bob, SELECT idno ORDER BY idno DESC LIMIT 1; assuming idno is what gets auto incremented That's not the best idea - what happens if two users are inserting records into the table at nearly-but-not-quite the same time? 1. Insert A goes through 2. Insert B goes through 3. LastID A returns

[PHP] Oracle connection release

2002-09-18 Thread Rasmus Sellberg
Does PHP release the Oracle connection if I run PHP from the command line? If not, how can I release the connection if the OCILogoff is empty as stated on the comments of its documentation page? //rasmus Rasmus Sellberg

RE: [PHP] Auto-increment value

2002-09-18 Thread bob parker
If there is a possibilty of that then BEGIN INSERT ... whatever SELECT idno ORDER BY (idno) DESC LIMIT 1; END; It works, I just tried it in postgresql, the last idno is visible to the user making the transaction, and will be unavailable to others. From [EMAIL PROTECTED] Wed Sep 18

RE: [PHP] PHP and Microsoft Office

2002-09-18 Thread Steve Bradwell
Yes you can, check http://www.php.net/manual/en/ref.com.php for examples. HTH, Steve. -Original Message- From: Matthew Tapia [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 17, 2002 9:43 PM To: [EMAIL PROTECTED] Subject: [PHP] PHP and Microsoft Office Can you use PHP to add

[PHP] extension_dir

2002-09-18 Thread Ivo
Hi I had problems with extension_dir on windows. I followed the news and found out that there are more question that answers about it. I accidentally found a solution and would like to share it, hoping it could be useful for others looking for help. I tried in vain to set up the extension_dir

Re: [PHP] Auto-increment value

2002-09-18 Thread Justin French
I tend to (if I can't use mysql_last_id) insert a unique key into the row, and pull the row out that matches that key, in order to get the ID... ensures that it was the right row... then you can delete the unique key. Justin on 18/09/02 10:27 PM, Jon Haworth ([EMAIL PROTECTED]) wrote: Hi

Re: [PHP] Oracle connection release

2002-09-18 Thread Thies C. Arntzen
On Wed, Sep 18, 2002 at 02:48:13PM +0200, Rasmus Sellberg wrote: Does PHP release the Oracle connection if I run PHP from the command line? yes tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: replacing mail()

2002-09-18 Thread lallous
Afaik, PHP on Unix does not use internal functions but instead it uses Sendmail therefore you can configure it in PHP.INI to not use sendmail, as for win32, PHP mails via direct SMTP connections... Liam Mackenzie [EMAIL PROTECTED] wrote in message

[PHP] Re: PHP function for searching words in a string?

2002-09-18 Thread yasin inat
Example 1. Find the string of text php // the i after the pattern delimiter indicates a case-insensitive search if (preg_match (/php/i, PHP is the web scripting language of choice.)) { print A match was found.; } else { print A match was not found.; } Example 2. find the

Re: [PHP] Auto-increment value

2002-09-18 Thread bob parker
From: Marek Kilimajer [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Subject: Re: [PHP] Auto-increment value You encounter a race condition bob parker wrote: SELECT idno ORDER BY idno DESC LIMIT 1; assuming idno is what gets auto incremented

[PHP] MySQL Current Row??

2002-09-18 Thread Beeman
What function/array index should I use to determine the current row of a MySQL query when outputting using a do..while.. Loop?

RE: [PHP] MySQL Current Row??

2002-09-18 Thread Cal Evans
In (most) SQL servers there is no concept of 'row number'. Most DA's design tables with a unique primary key. This can be used to identify the row form all of the other rows but it is not the same as a 'row number'. Since you are using PHP you can set a counter to 1 before your loop and then

Re: [PHP] adding unix account via system command

2002-09-18 Thread Henrik Hudson
Personally, running a script directly from a website to add users is asking for security trouble.. I would have it write a adduser request to a file and then have a cron job parse that file everyt 5, 10 or 30 minutes or something looking for new users to add. This gets you around the SUID

[PHP] Re: Need some help please.

2002-09-18 Thread Simon Angell
I Have now got it kinda working, but not fully, i changed something i shouldn't have, but fixed that.. //create new string containing data for selected place preg_match(|$placename.*?\\n\\n.*?\\n\\n|s, $content, $temp); (i had it //create new string containing data for selected place

RE: [PHP] Problems with php and qmail

2002-09-18 Thread Michael J Humphries
I have installed the QMQP server end and configured with tcpserver but am unclear from the docs if I need to install Qmail 1.03 on the Bulletin Board server or just copy over the files it mentions in the docs. If this is not the place to discuss this please let me know but you seem to have

[PHP] Join - problem

2002-09-18 Thread Henning
Hello I'm using PHP4 and MySQL on Apache webserver. I have a table valled liste with names of some people, and a table called postnummer with zip-codes and citynames. My select should join the adress and zip from one table with the cityname from the other table. But my join-line does not work.

Re: [PHP] Join - problem

2002-09-18 Thread John Wards
not having the time to look at your code I am not sure but do this to see if its mysql causeing the errors $result = mysql_query($query) or die(mysql_error()); - Original Message - From: Henning [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 5:12 PM Subject:

Re: [PHP] Join - problem

2002-09-18 Thread 1LT John W. Holmes
Don't include the ; in your query, for one thing. ---John Holmes... - Original Message - From: John Wards [EMAIL PROTECTED] To: Henning [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:26 AM Subject: Re: [PHP] Join - problem not having the time to look

[PHP] Time Stamp

2002-09-18 Thread Chuck Payne
Hi, I have a form that I am using to update a mysql table but I can get timestamp to update. How can I pass that information to pass on. I have READ all books and feel I have correct systax but it just not working... input type=text name=lastupdate value=? echo date('D M d, Y H:i:s', time());

Re: [PHP] Join - problem

2002-09-18 Thread Henning
Oh dear - I forgot the rights in the new table: select command denied to user: 'henning@localhost' for table 'postnummer' Thanks for helping, John! Henning John Wards wrote: not having the time to look at your code I am not sure but do this to see if its mysql causeing the errors

Re: [PHP] Time Stamp

2002-09-18 Thread 1LT John W. Holmes
MySQL syntax is MMDDHHMMSS or -MM-DD HH:MM:SS ---John Holmes... - Original Message - From: Chuck Payne [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 11:25 AM Subject: [PHP] Time Stamp Hi, I have a form that I am using to update a mysql table

[PHP] header() and POST

2002-09-18 Thread dsfljsdfklj kljvdskljfsdkl
I have the following problem: a php page receives POST data from a form, it needs to elaborate the data and send it to another page again in POST automatically, without the user noticing. Is it possible to use the header() function to send a POST request? If yes how? And how do I send the post

[PHP] Re: Large uploads

2002-09-18 Thread Rickard Dahlstrand
Hi again, Is there anyone in this group that has successfully uploaded a file large than 10 MB? Regards, Rickard. Rickard Dahlstrand [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, I have been trying to upload files using PHP 4.1.2. Everything works OK

Re: [PHP] Re: Image resolution and php

2002-09-18 Thread Eric C. Pollitt
I believe that image files on the Mac platform contain metadata that does in fact include this information. Sherlock on Mac OS 9 is not capable of finding this information. However, I did find the following information for Adobe Photoshop 7 for Mac OS X on how you can achieve this. I don't know

RE: [PHP] Please, Help dynamicaly creating an Array

2002-09-18 Thread Max Sullivan
Thanks Marek, That's exactly what I was looking for. I also found another solution, which was to build a second array with the information I want and merge the two arrays together with +. I like eval better :) thanks again. For anyone that is interested this works too. $a = 'THREE'; $b = 3;

Re: [PHP] mid-level PHP/MySQL people in Los Angeles?

2002-09-18 Thread Eric C. Pollitt
I recommend checking out websites such as Elance for freelance workers and employers to find one another. http://www.elance.com/ There are several others out there that are similar as well...try searing http://dmoz.org/Business/Business_Services/Consulting/Marketplaces/Remotely

[PHP] Join in MySQL-select doesn't work

2002-09-18 Thread Henning
Hello I'm using PHP4 and MySQL on Apache webserver. I have a table valled liste with names of some people, and a table called postnummer with zip-codes and citynames. My select should join the adress and zip from one table with the cityname from the other table. But my join-line does not work.

[PHP] Difficult MIME question

2002-09-18 Thread C.F. Scheidecker Antunes
Hello all, I have one situation other than the normal that I cannot extract/save the MIME content of an e-mail which Content-type is different than the normal. When I get attachments that have the following normal structure: === Content-Type:

Re: [PHP] Image resolution and php

2002-09-18 Thread pan
I need to get resolution information (dpi) from any image of jpg, gif or png formats. It would be sufficient to obtain pixel and inches dimension of such images and calculate resolution by simply dividing but I haven't found any function that gets effective dimensions in inches. As

Re: [PHP] PHP and Flash

2002-09-18 Thread timo stamm
Or let Flash take over the active part. You can retrieve data from PHP scripts in Flash and build dynamic menus, for example. Pretty much everything is possible. Timo Am Mittwoch den, 18. September 2002, um 06:11, schrieb Rasmus Lerdorf: php.net/ming On Wed, 18 Sep 2002, [EMAIL

[PHP] Stripping specific tags

2002-09-18 Thread Alexis Antonakis
Hi, I was wondering is there a way to strip ONLY the tags that you specify from a page, rather than having to include all the tags you do want (using strip_tags() ) Cheers Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Global Vars

2002-09-18 Thread Sascha Braun
Hi Everone, for my newest projekt i started to use global var like $_REQUEST['varname'] and so on. But in some cases i started again to use old var mode. Finally i have read some about there is need to define the vars, before I'm going to create the source for my webpages. But how can i make

RE: [PHP] time() problem

2002-09-18 Thread Savaidis
Hello all! I use time() to keep UNIX seconds from 1970 to a timestamp(14) MySQL field. But when I read it (Dt_last) it is TO big compearing with today=time() in a php script that is only some seconds later. today : 1032350421 Dt_last: 20001101165838 What can I do? Thanks! Makis Makis --

[PHP] Loop through POST-result

2002-09-18 Thread Michelle
I would like to get all the data from a POST-result into an array. Is there a function like that adds all the vars from the post into an array where Key is the name of the form-field and Value is the value entered in this field. Like this: array('firstname' = 'fname', 'lastname' = 'lname');

RE: [PHP] time() problem

2002-09-18 Thread Adam Voigt
Change it to an INT or a VARCHAR datatype, the mysql timestamp field uses MySQL's date/time formmating. If you decide to let MySQL use it's own date time format, use UNIX_TIMESTAMP(fieldname) to get the unix timestamp from that date field. Adam Voigt [EMAIL PROTECTED] On Wed, 2002-09-18 at

[PHP] Date(), adjusted for one year

2002-09-18 Thread Support @ Fourthrealm.com
Hi guys, What is the easiest way to get the date of one year from today? Accommodating for leap years is not essential (but would be a nice bonus). Thanks, Peter - - - - - - - - - - - - - - - - - - - - - Fourth Realm Solutions [EMAIL PROTECTED] http://www.fourthrealm.com Tel: 519-739-1652 - -

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
Support @ Fourthrealm.com wrote: Hi guys, What is the easiest way to get the date of one year from today? Accommodating for leap years is not essential (but would be a nice bonus). Without leap year adjustment... date( your format string here, time() + 60 * 60 * 24 * 365 ); HTH, Rob. --

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Jacob Miller
With leap year adjustment... strtotime(+1 year, timestamp); will return a unix timestamp. - Jacob At 01:49 09/19/2002, Robert Cummings wrote: Support @ Fourthrealm.com wrote: Hi guys, What is the easiest way to get the date of one year from today? Accommodating for leap years is not

Re: [PHP] Date(), adjusted for one year

2002-09-18 Thread Robert Cummings
Jacob Miller wrote: With leap year adjustment... strtotime(+1 year, timestamp); will return a unix timestamp. Nice, don't think I've ever used that function :) Cheers, Rob. -- .-. | Robert Cummings | :-`. | Webdeployer -

[PHP] Unserialize stopped working after php db upgrade

2002-09-18 Thread Geoff Caplan
Hi folks Bit of a major panic - any help MUCH appreciated. I have been storing serialized arrays in MySQL Gemini tables without any problems. But with Gemini looking more and more like a dead duck, I decided to take the server down and port from Gemini to InnoDB. I also took the opportunity to

[PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
Are sessions domain specific? What I mean is this. Suppose I have two websites: secure.web.com www.web.com http://www.web.com and both web sites point to the same set of data. If I looking at web page http://www.web.com/index.html http://www.web.com/index.html and have a set of

[PHP] PHP Installation

2002-09-18 Thread Sascha Braun
Hi Peops, I need some help for an PHP Installation. I did uninstall my apache on my domain. I reinstalled it again and now want to install PHP again. I believe all option in httpd.conf are correct. My Linux Distribution is: RedHat 7.3 I looked into the Modules Direktory from Apache and I

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
Domains are specific, and so you do not get the same sesion variables. here's are ways around this, but you need control of the content of both servers. Cheers, Rob. David Buerer wrote: Are sessions domain specific? What I mean is this. Suppose I have two websites: secure.web.com

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
Yeah, I believe so, but you could reinitialize them when you jump to the other webserver, or you use one mysql database for sessionmanagement for both webservers. Ciao Sascha - Original Message - From: David Buerer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Jacob Miller
My first assumption would be yes they are domain specific, but it might be possible to cross domains if both domains were run from the same web server and you were to pass the session id between pages manually rather than it being stored in a cookie.. What does everyone else think? - Jacob

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread David Buerer
I do have control over the content of both domains...in fact right now it's the identical contenteven the same physical data store on the disk, I just seem to be losing session variables for one reason or another. DAvid -Original Message- From: Robert Cummings [mailto:[EMAIL

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Robert Cummings
Sascha Braun wrote: Yeah, I believe so, but you could reinitialize them when you jump to the other webserver, or you use one mysql database for sessionmanagement for both webservers. Not exactly true, since if they jump to another server, you can make the assumption they have a session

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
Normaly you store SESSION Data in variables. When you make the step to another domain, you should reassign a new Session and give to data of the old session to the new one. Or isn't is possible to put some date behind an url like www.somedomain.com?check=itout=mh If you are working with

Re: [PHP] Sessions /Cross Domain

2002-09-18 Thread Sascha Braun
That seems to be a more perfekt way. Honorabel, nice. Sascha - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Sascha Braun [EMAIL PROTECTED] Cc: PHP Mailingliste [EMAIL PROTECTED]; David Buerer [EMAIL PROTECTED] Sent: Wednesday, September 18, 2002 8:16 PM Subject: Re:

Re: [PHP] Date-format

2002-09-18 Thread Support @ Fourthrealm.com
Reformatting before an inserting/updating is one option, but how would we change the mySQL database to accept the other format? Peter At 04:18 PM 9/12/2002 +0800, Jacob Miller wrote: Why can't you just reformat it before inserting it into the db? $date = 31.12.2002; $parts

RE: [PHP] Sessions /Cross Domain

2002-09-18 Thread James E Hicks III
Have a look at this php.ini setting, I think it will help you! ; The domain for which the cookie is valid. session.cookie_domain = James -Original Message- From: David Buerer [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 1:39 PM To: '[EMAIL PROTECTED]' Subject: [PHP]

Re: [PHP] Date-format

2002-09-18 Thread Jacob Miller
From http://www.mysql.com/doc/en/Using_DATE.html quote The format of a DATE value is '-MM-DD'. According to ANSI SQL, no other format is allowed. You should use this format in UPDATE expressions and in the WHERE clause of SELECT statements. For example: mysql SELECT * FROM tbl_name WHERE

Re: [PHP] Conditionally include file based on document location

2002-09-18 Thread Eric C. Pollitt
Thanks for the insight, but I'm not clear on how to implement this. Here is what I have so far: ?php switch ($DOCUMENT_URI) { case '/home/globalhemp/www/': include(/home/globalhemp/www/includes/apple.inc); break; case '/home/globalhemp/www/Archives/':

[PHP] PHP4 Oracle SELECT statement ERROR

2002-09-18 Thread notoriousvic_ca
Hi I am a programmer and I just started using PHP4. I created a view in Oracle (code below) and I added an underscore to the end of one of the column names (id_number_). When I use asp code to select from this view I have to write a select statement like so: Select * from view_specimen_details

[PHP] Installation

2002-09-18 Thread Sascha Braun
All these installation docs are just driving me crazy. How am I installing PHP 4 any version on my RedHat 7.3 Server. Isn't it done by an RPM easily? Bye Sascha

RE: [PHP] Date-format

2002-09-18 Thread Chuck Payne
I know everyone love to quote read the manual and forget that we[newbies] are only asking here because we need help...so here you go... You can do the following... DATE_FORMAT IS THE MySQL Command And let say you want to format your date as the following mm-dd-yy(US) or dd-mm-yy(the rest of

Re: [PHP] Re: Large uploads

2002-09-18 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, You might want to check the archives..I know this came up before. Anyway, you didn't say if you checked your memory limitthat has to be larger than the post_max_size. HTH! ~Pauly On Wednesday 18 September 2002 11:54 am, you wrote: Hi

Re: [PHP] Unserialize stopped working after php db upgrade

2002-09-18 Thread Paul Nicholson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey, There must be an error in the serialized stringswould you mind posting one for us to look at? How about posting some code? ~Pauly On Wednesday 18 September 2002 02:02 pm, you wrote: Hi folks Bit of a major panic - any help MUCH

  1   2   >