[PHP] SOLVED:Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
problem was solved by using substr() on the timestamp -- www.phpexpert.org/truefaith.htm "True Faith is not just when you believe in God and yourself, it is when others begin to believe in you as well" - Damian John Paul Brown 2004 "Damian Brown" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PR

[PHP] SOLVED:Re: trying to output a hyperlink

2004-04-10 Thread Damian Brown
Thanks for all the help, I overlooked a simple mistake in html, I was so much concentrating on concatenating the $link that I forgot to include the link I got a private email that solved it for me -- www.phpexpert.org/truefaith.htm "True Faith is not just when you believe in God and yourself, it is

[PHP] Re: trying to output a hyperlink

2004-04-10 Thread Andy Ladouceur
When in doubt, view source. :) As John has already mentioned, you need text between the two tags to actually display in the browser. You probably would've seen your mistake a lot sooner if you viewed the page source when you first tried it out. Also, you can save yourself some time using PHP's

Re: [PHP] trying to output a hyperlink

2004-04-10 Thread John W. Holmes
Damian Brown wrote: ' ; $link = $link . '' ; echo $link ; ?> is not working, I want to output $row[2] as a hyperlink as it is the refering URL, but the above is just showing blank in the output, with no link and no text in the output table You kind of need something betw

Re: [PHP] trying to output a hyperlink

2004-04-10 Thread John W. Holmes
Damian Brown wrote: ' ; $link = $link . '' ; echo $link ; ?> is not working, I want to output $row[2] as a hyperlink as it is the refering URL, but the above is just showing blank in the output, with no link and no text in the output table You kind of need something betw

RE: [PHP] Re: PHP5 and pear

2004-04-10 Thread electroteque
standard make install, did it for both rc1 and snaps > -Original Message- > From: Aidan Lister [mailto:[EMAIL PROTECTED] > Sent: Sunday, April 11, 2004 1:06 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: PHP5 and pear > > > Was that from a > pear install xml_rpc ? > > > > "Electroteq

[PHP] trying to output a hyperlink

2004-04-10 Thread Damian Brown
' ; $link = $link . '' ; echo $link ; ?> is not working, I want to output $row[2] as a hyperlink as it is the refering URL, but the above is just showing blank in the output, with no link and no text in the output table -- www.phpexpert.org/truefaith.htm "True Faith is n

[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I have cracked it Andy, by using substr to take apart the 14 digit timestamp 10 04 2004 - 21:23:50 is now showing, and each record is different Thanks anyway, stick around for more questions here is one ' ; $link = $link . '' ; echo $link ; ?> is not working, I want to o

Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
Thank Yoy Ryan I had thought the same, but I didn't know how to go about it I did not know of the substr function it is now outputting as follows 10 04 2004 - 21:23:50 Thanks once again, I am sure I will be asking for more help soon I tend to dive in at the deep end and never learn the basics --

[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Andy Ladouceur
And these are UNIX timestamps? Odd. I can't see date giving the wrong output, could you post the timestamp you're using? Thanks Andy Damian Brown wrote: I have tried that, but it gives a date in the future and all records have the same time the code is and it gives an output of Monday 18th

RE: [PHP] PHP e-commerce questions

2004-04-10 Thread PHP Email List
> From: Matt Hedges [mailto:[EMAIL PROTECTED] > Subject: [PHP] PHP e-commerce questions > Hello. Hi! > I have built a site where people can register their weddings. I use > MySQL/PHP to handle the database. I wish to add a step where people must > pay to enter their information into the databas

[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I have tried that, but it gives a date in the future and all records have the same time the code is and it gives an output of Monday 18th of January 2038 10:14:07 PM I need it to proces the timestamp in the database table so that it shows the different times Thanks in advance for a solution >

Re: [PHP] video thumbnail generation

2004-04-10 Thread Curt Zirzow
* Thus wrote Stuart Gilbert ([EMAIL PROTECTED]): > I'd really like to generate video thumbnails within PHP, are there any > libraries available or anything? I can't find very much on the subject > on php.net and not a lot more on google. > > I'd appreciate any pointers you could give me. http:/

Re: [PHP] Most bizarre date problem ever

2004-04-10 Thread Curt Zirzow
* Thus wrote Brian Dunning ([EMAIL PROTECTED]): > > $check_date = mktime(0, 0, 0, substr($end_date, 5, 2), > substr($end_date, 8, 2) - $i, substr($end_date, 0, 4), -1); > > Note that this works PERFECTLY for every date, and always has. Except > for one particular day. When $end_date - $i is sup

Re: [PHP] php as cgi and module at same time

2004-04-10 Thread Curt Zirzow
* Thus wrote Andy B ([EMAIL PROTECTED]): > is it possible to have php installed with apache as cgi and module both at > the same time...?? Yes. See php.net/install Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] phpextdist and phpize

2004-04-10 Thread Curt Zirzow
* Thus wrote Elfyn McBratney ([EMAIL PROTECTED]): > > > phpextdist > > Can't remember.. Google is your friend :) Makes a standalone/out-of-tree tar ball. Also uses php-conf. Curt -- "I used to think I was indecisive, but now I'm not so sure." -- PHP General Mailing List (http://www.php.ne

[PHP] Re: timestamp to readabe date and time ?

2004-04-10 Thread Andy Ladouceur
The second parameter of PHP's date() function takes a timestamp as an argument, this may be what you're looking for? Andy Damian Brown wrote: I need to output a date and time that shows more clearly than just outputting the timestamp what is the correct way to go about it ? I have looked at get

Re: [PHP] timestamp to readabe date and time ?

2004-04-10 Thread Ryan A
On 4/11/2004 3:25:09 AM, Damian Brown ([EMAIL PROTECTED]) wrote: > I need to output a date and time that shows more clearly than just > outputting the timestamp > > what is the correct way to go about it ? > I have looked at getdate(), but I haven't fathomed it out yet ! If you are using timesta

[PHP] timestamp to readabe date and time ?

2004-04-10 Thread Damian Brown
I need to output a date and time that shows more clearly than just outputting the timestamp what is the correct way to go about it ? I have looked at getdate(), but I haven't fathomed it out yet ! -- www.phpexpert.org/truefaith.htm "True Faith is not just when you believe in God and yourself, it

php-general Digest 11 Apr 2004 01:11:05 -0000 Issue 2698

2004-04-10 Thread php-general-digest-help
php-general Digest 11 Apr 2004 01:11:05 - Issue 2698 Topics (messages 183066 through 183096): How to do this? 183066 by: Mike Mapsnac 183068 by: Duncan Hill 183069 by: John W. Holmes 183083 by: Mike Mapsnac Re: Store e-mail in DB 183067 by: Raditha Di

Re: [PHP] phpextdist and phpize

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sunday 11 Apr 2004 00:22, [EMAIL PROTECTED] wrote: > Hello, > > I have just installed PHP 5.0b4, and had a look into /usr/local/php5/bin. I > have found these files: > > php You know :) > pear Can be used to install/remove/update/etc pear/pecl pa

[PHP] phpextdist and phpize

2004-04-10 Thread gayard
Hello, I have just installed PHP 5.0b4, and had a look into /usr/local/php5/bin. I have found these files: php pear php-config phpextdist phpize php is the only file I know, it is the one that interprets (interpretates ?) the PHP code. But what do the other programs do ? None of them

Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Saturday 10 Apr 2004 23:42, Pembo13 wrote: > Well I've setup a reltively simple code block: > > function mailboxmsginfo($mailbox='INBOX', $username, $password) { > $username = $username."@dalive.com"; >$imap_stream = "{localhost:143/notls}

Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Pembo13
Well I've setup a reltively simple code block: function mailboxmsginfo($mailbox='INBOX', $username, $password) { $username = $username."@dalive.com"; $imap_stream = "{localhost:143/notls}".$mailbox; $mbox = imap_open($imap_stream, $username, $password) or die("can't connect ($username w

Re: [PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread John W. Holmes
Andy B wrote: going to try some different things out... the if statement didnt work cuz when i didnt put a query string at the end of the page name when going to it it complained about month being an undefined index... if(!isset($_GET['month']) || $_GET['month'] <= 0 || $_GET['month'] > 12) -- --

Re: [PHP] php 5 install

2004-04-10 Thread Rainer Müller
Andy B schrieb: anybody know how to put that in english?? i have no clude what it says... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 5:13 PM Subject: Re: [PHP] php 5 install Hallo und guten Tag, herzlichen Dank für Ihre Mail.

Re: [PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
going to try some different things out... the if statement didnt work cuz when i didnt put a query string at the end of the page name when going to it it complained about month being an undefined index... - Original Message - From: "Rainer Müller" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTE

Re: [PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Elfyn McBratney
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On Saturday 10 Apr 2004 22:59, Pembo13 wrote: > Hello, > > Does anyone have php's imap functions working with CourierIMAP as their > imap server? Yes, as does IMP (see horde.org). What errors do you get? What code are you using (strip it do

[PHP] Re: query strings coming from the same page going back to the same page

2004-04-10 Thread Rainer Müller
Andy B schrieb: was wondering if this would work or do i need different code: 12)){ $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable ORDER BY StartDate DESC"; } else { $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable WHERE Star

[PHP] imap_open() fails with CouirerIMAP

2004-04-10 Thread Pembo13
Hello, Does anyone have php's imap functions working with CourierIMAP as their imap server? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] query strings coming from the same page going back to the same page

2004-04-10 Thread Andy B
was wondering if this would work or do i need different code: 12)){ $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable ORDER BY StartDate DESC"; } else { $query="SELECT Type, StartDate, EndDate, Name, County, Notes FROM $EventsTable WHERE StartingMonth='{$_GE

[PHP] configure php solaris with openssl

2004-04-10 Thread Sascha Ferley
Hi, I am having a issue with configure in that it doesn't like to find the openssl libraries when running configure. Looking through the log it states that there is a issue with configure itself.. config.log --- configure:16174: checking for OpenSSL version "configure

Re: [PHP] php 5 install

2004-04-10 Thread Richard Harb
That's just one of those annoying out of office messages... I could translate it .. but if the sender didn't care I guess it's not important enough for him to provide an english translation himself. Saturday, April 10, 2004, 11:17:44 PM, you wrote: > anybody know how to put that in english?? i ha

Re: [PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
Thanks a lot - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "Mike Mapsnac" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 10:34 AM Subject: Re: [PHP] How to do this? > Mike Mapsnac wrote: > > My php page takes data from the database such as

Re: [PHP] php 5 install

2004-04-10 Thread Andy B
anybody know how to put that in english?? i have no clude what it says... - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, April 10, 2004 5:13 PM Subject: Re: [PHP] php 5 install > Hallo und guten Tag, > > herzlichen Dank für Ihre Mail. > > Zeit zu

[PHP] php 5 install

2004-04-10 Thread Andy B
if i install php5 will it affect any of the php4.3.3 code that i have running at all...?? i want to install 5 and see what they have new going on and stuff but i dont want to crash my 4.3.3 running code any and where would i be able to read a list of stuff that is new in 5?? -- PHP General M

[PHP] video thumbnail generation

2004-04-10 Thread Stuart Gilbert
I'd really like to generate video thumbnails within PHP, are there any libraries available or anything? I can't find very much on the subject on php.net and not a lot more on google. I'd appreciate any pointers you could give me. Regards, Stuart Gilbert. -- PHP General Mailing List

Re: [PHP] MVC based frameworks and PHP5 Object Model.

2004-04-10 Thread Robert Cummings
On Sat, 2004-04-10 at 15:19, Lukasz Karapuda wrote: > I am curious to see if the experienced PHP developers have a recommendation > as far as which MVC or Model 2 based framework is the most robust to use in > web applications that will be developed in PHP5. For Java developers the > Struts Framewo

[PHP] MVC based frameworks and PHP5 Object Model.

2004-04-10 Thread Lukasz Karapuda
I am curious to see if the experienced PHP developers have a recommendation as far as which MVC or Model 2 based framework is the most robust to use in web applications that will be developed in PHP5. For Java developers the Struts Framework has become an Industry Accepted choice, whereas in PHP we

RE: [PHP] cleaning up html output from php in apache

2004-04-10 Thread Jason Sheets
If you use Smarty you can use the {trim} m Otherwise you can also use output buffering to grab the output buffer and remove the sapces that you want. Note that you can't actually remove all whitespace as this sometimes has the side effect of breaking cetain scripts, etc. I'd rather implement g

Re: [PHP] Smarty Summary was Re: [PHP] smarty

2004-04-10 Thread Jochem Maas
Justin Patrin wrote: Jochem Maas wrote: ... Smarty does force that at all; you have to make the distinction and apply liberal self-restraint. I meant 'does NOT force' - thinko! ... PLEASE WORLD: GET BEHIND CSS, AND FREE CONTENT FROM STYLE ON THE CLIENT. why because it allows the structrully ma

Re: [PHP] Most bizarre date problem ever

2004-04-10 Thread trlists
On 10 Apr 2004 Brian Dunning wrote: > Check this out: I'm returning a list of the last 30 days, looping > through i, subtracting it from $end_date where $end_date is 2004-04-10 > 00:00:00. I'm just trying to derive a timestamp $check_date for each > iteration, like 1081321200. Here's the code w

[PHP] PHP e-commerce questions

2004-04-10 Thread Matt Hedges
Hello. I have built a site where people can register their weddings. I use MySQL/PHP to handle the database. I wish to add a step where people must pay to enter their information into the database. How do I do this? What services do ya'll recommend? I won't need a complicated shopping cart, s

[PHP] Re: Read file backwards

2004-04-10 Thread Kim Steinhaug
Got a tip by email, Might look here and modify it if needed ... http://tailforwin32.sourceforge.net/ Thanks, this is atleast much better than switching windows and refershing the files in Textpad which I do at the moment. tail was ofcourse the word I was looking for, not the trace word. Thanks

[PHP] Read file backwards

2004-04-10 Thread Kim Steinhaug
Anyone have a script that reads a file backwards? Im looking for a way to trace a log file, say the last 30 lines each time I run the script. I havnt found any DOS tools so I guess doing it in PHP will be just as fine, and Im on a Win32 platform. I could however read the entire file, and count the

[PHP] Most bizarre date problem ever

2004-04-10 Thread Brian Dunning
Check this out: I'm returning a list of the last 30 days, looping through i, subtracting it from $end_date where $end_date is 2004-04-10 00:00:00. I'm just trying to derive a timestamp $check_date for each iteration, like 1081321200. Here's the code within the loop: $check_date = mktime(0, 0, 0

[PHP] Re: PHP5 and pear

2004-04-10 Thread Aidan Lister
Was that from a > pear install xml_rpc ? "Electroteque" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Pear does not seem to be actually in the sources for some reason > > [PEAR] XML_RPC: The following errors where found (use force option to > install an > yway): > missing package

Re: [PHP] How to do this?

2004-04-10 Thread John W. Holmes
Mike Mapsnac wrote: My php page takes data from the database such as ID, Date, Value and prints on the screen. About 20 entries are printed on the screen. The each entry has option 'yes' or 'no'. So I need to gather the information about each entry and update database. I cannot access the varia

Re: [PHP] How to do this?

2004-04-10 Thread Duncan Hill
On Saturday 10 April 2004 14:36, Mike Mapsnac wrote: > So I need to gather the information about each entry and update database. I > cannot access the variable from $_POST because parameter is not static and > $_POST is not working like this $_POST['$id']; $_POST["$id"] " does variable substitut

Re: [PHP] Store e-mail in DB

2004-04-10 Thread Raditha Dissanayake
MadHD wrote: Hi, i'm searching some script that can read e-mails with attachments from an account pop3 and that store them in a db. Michelle has an informative post on how to do this. I am proposing an alternative. If you are setting up a new system you might want to consider using IMAP since

[PHP] How to do this?

2004-04-10 Thread Mike Mapsnac
My php page takes data from the database such as ID, Date, Value and prints on the screen. About 20 entries are printed on the screen. The each entry has option 'yes' or 'no'. So I need to gather the information about each entry and update database. I cannot access the variable from $_POST beca

php-general Digest 10 Apr 2004 12:40:52 -0000 Issue 2697

2004-04-10 Thread php-general-digest-help
php-general Digest 10 Apr 2004 12:40:52 - Issue 2697 Topics (messages 183036 through 183065): Re: List Admins 183036 by: -{ Rene Brehmer }- 183041 by: Elfyn McBratney regular expressions 183037 by: René Fournier 183039 by: Richard Harb Re: Looking for a comp

[PHP] php as cgi and module at same time

2004-04-10 Thread Andy B
is it possible to have php installed with apache as cgi and module both at the same time...?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 and pear

2004-04-10 Thread electroteque
Pear does not seem to be actually in the sources for some reason [PEAR] XML_RPC: The following errors where found (use force option to install an yway): missing package name missing summary missing description missing license missing version missing release state missing release date missing relea

Re: [PHP] (new question on this) http referer

2004-04-10 Thread Don Read
On 08-Apr-2004 John Nichel wrote: > Joe Szilagyi wrote: >> Just a follow up on this one--I've seen where consistently that >> $HTTP_REFERER will only show local referers, but not stuff from >> other >> sites/hostnames. This is on mod_php... any workaround for that? >> >> Regards, >> Joe > > The

Re: [PHP] cleaning up html output from php in apache

2004-04-10 Thread Merlin
Htmltidy I found it on the net, but it lacks on documentation. Is this a tool to include into apache as a library which cleans up each php generated html page? thanx merlin Electroteque wrote: Htmltidy ? -Original Message- From: Merlin [mailto:[EMAIL PROTECTED] Sent: Saturday, April 1

[PHP] error with curl and PHP5 compile

2004-04-10 Thread electroteque
Hi there i am getting a wierd error when trying to compile php5 with curl ext/curl/interface.lo /usr/share/src/php-5.0.0RC1/ext/curl/interface.c: In function `curl_free_post': /usr/share/src/php-5.0.0RC1/ext/curl/interface.c:655: warning: passing arg 1 of `curl_formfree' from incompatible pointer

RE: [PHP] cleaning up html output from php in apache

2004-04-10 Thread electroteque
Htmltidy ? > -Original Message- > From: Merlin [mailto:[EMAIL PROTECTED] > Sent: Saturday, April 10, 2004 5:04 PM > To: [EMAIL PROTECTED] > Subject: [PHP] cleaning up html output from php in apache > > > Hi there, > > I am searching for a way to strip the white spaces from each > php ge

[PHP] mysqli

2004-04-10 Thread electroteque
bloody excellent, it has its own wrapper object, the prepared statements feature looks cool http://www.zend.com/php5/articles/php5-mysqli.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] cleaning up html output from php in apache

2004-04-10 Thread Merlin
Hi there, I am searching for a way to strip the white spaces from each php generated html site. Goal is to speed up the pages. During my research for apache modules I found one for perl: http://search.cpan.org/~geoff/Apache-Clean-0.05/Clean.pm Is there something for php as well? Thanx for any hin

[PHP] stripping the query string from url

2004-04-10 Thread Andy B
i have to write code for the following standard: 1. 13 links at the top and bottom of the page 2. those links reload the same page with a query string that will be part of a mysql query 3. all query strings that come from anywhere except from say www.test.com/ViewEvents.php get stripped out and ign