[PHP] Re: php/mysql email

2004-03-20 Thread David Robley
[EMAIL PROTECTED] (Bigmark) wrote in news:[EMAIL PROTECTED]: I have a sports tipping script and instead of using the admin to close a round off or input results ,would it be possible to do it via an email. Mark This can be done on a Unix style system by creating a mail alias which pipes

Re: [PHP] CMS advice needed

2004-03-20 Thread Justin French
On Saturday, March 20, 2004, at 12:47 AM, [EMAIL PROTECTED] wrote: I need to setup a Content Management System Which is the best from the many? Arrrgh!! Which is the best car? Which is the best soft drink / soda? Is ASP or PHP better? I'm sure you see my point -- it depends *entirely* on your

[PHP] Comparing 2 files

2004-03-20 Thread Jens Schmeiser
Dear list. I want to compare two text files and print the differences. The text files contain the structure of a database, so they are very big (6000 lines). The file looks like that: TABLENAME#COLUMNNAME#DATATYPE#DATALENGTH#DATAPRECISION#NULLS ... I only check if the datatype and nulls are

[PHP] Important notify about your e-mail account.

2004-03-20 Thread management
Dear user of Php.net mailing system, Your e-mail account has been temporary disabled because of unauthorized access. For more information see the attached file. For security reasons attached file is password protected. The password is 81584. Have a good day, The Php.net team

php-general Digest 20 Mar 2004 12:43:29 -0000 Issue 2657

2004-03-20 Thread php-general-digest-help
php-general Digest 20 Mar 2004 12:43:29 - Issue 2657 Topics (messages 181007 through 181019): Re: What does it take to give a good technical presentation? 181007 by: John Coggeshall Blank Page instead of Errors 181008 by: Jonathan Duncan 181009 by: John W. Holmes

[PHP] Re: too much trimming

2004-03-20 Thread Gerben
you need to add an space after ? for to output the newline after it. Ivan Sergio Borgonovo [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I've simple code like this: -- begin -- #!/usr/bin/php -q ? $pippo='goofy' ? hey my name is ?= $pippo ? and I feel good -- end -- I

[PHP] Image size ??

2004-03-20 Thread Tom Wuyts
Hi, Is there any way to know the size of an image ?? Thanx in advance, RCTycooner - Admin of The Silver Luna Forums http://www.wuyts.org/tom/phpbb2/ [EMAIL PROTECTED] -

Re: [PHP] Image size ??

2004-03-20 Thread Marek Kilimajer
http://www.php.net/getimagesize Tom Wuyts wrote: Hi, Is there any way to know the size of an image ?? Thanx in advance, RCTycooner - Admin of The Silver Luna Forums http://www.wuyts.org/tom/phpbb2/ [EMAIL PROTECTED] - --

[PHP] Re: [PEAR] Auth

2004-03-20 Thread Firman Wandayandi
Hi Frederic, Stefan right, I just notice on the error Fatal error: _factory(): Failed opening required 'Auth/Container/DB.php' (include_path='.:') in /www/news/Auth-1.2.3/Auth.php on line 218 I'd bet you didn't turned On include_path directive on php.ini. Please correct thism, just remove

Re: [PHP] Turn on E_ALL Error Reporting

2004-03-20 Thread Jason Wong
On Friday 19 March 2004 00:43, Roger Spears wrote: I changed the title of this email so it doesn't thread hijack... Sorry, but you're still hijacking someone's thread. Smart mail clients use the following headers (which were still present in your post) to perform threading: References:

Re: [PHP] Re: [PEAR] Auth

2004-03-20 Thread Firman Wandayandi
Wrong List!! - Original Message - From: Firman Wandayandi [EMAIL PROTECTED] To: Frederic SOSSON [EMAIL PROTECTED] Cc: PHP-GEN [EMAIL PROTECTED] Sent: Saturday, March 20, 2004 9:27 PM Subject: [PHP] Re: [PEAR] Auth Hi Frederic, Stefan right, I just notice on the error Fatal error:

[PHP] Apache - PHP Load-n-Go ?

2004-03-20 Thread gordon stewart
Hi there About 12 months ago, - (on an old PC), I ran Apache, installed PHP.. (I dont remember any hastles at the time..) Anyway, I havnt used PHP much - (didnt need to..) - I have a new PC now - loaded Apache onto it (a test server, before I upload to main 24/7 website/server) Its 3:30

[PHP] HELP! Apache dies on regular MySQL query :-/

2004-03-20 Thread -{ Rene Brehmer }-
Okay ... I've run into the strangest error situation. Running Apache 2.0.48 on WinXP Pro SP1, and just upgraded PHP from 4.2.3 to 4.3.0 and didn't do anything but to delete the 4.2.3 binaries and replace them with the 4.3.0 binaries. Problem is I get this error message: Internal Server Error

[PHP] mail headers

2004-03-20 Thread Will
Hello all, I searched for this but did not find what I was looking for. I want to send a file from a directory, i know how to do that in txt but I would like to send a doc or rtf document. Is the header like this: $headers = Content-Type: multipart/mixed; Thanks, ~WILL~ -- PHP General

[PHP] PS : [PHP] Apache - PHP Load-n-Go ? : FIXED

2004-03-20 Thread gordon stewart
Sorry for the new thread - I deleted my old email (thread ID)... http://marc.theaimsgroup.com/?l=php-generalm=107979353616896w=2 Basically : FIXED I went to the website :- on the 3rd-4th screen :- http://www.webmasterstop.com/tutorials/apache-php-mysql-installation3.shtml I found MY

[PHP] Convert Date Format?

2004-03-20 Thread Jeff Oien
How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) Or alternatively take the Month/Day/Year format and find anything older than 9 months ago. Thanks. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] This Group....

2004-03-20 Thread gordon stewart
Hi there Got PHP going :) - ok - Is this the correct group to ask ? Or can anyone suggest another group / forum for newbie how-to questions.. BASICALLY :- Ive been programming in HTML / CGI (Perl) for several years, have only 'briefly' done PHP.. - At work, Someone wants one of my CGI

Re: [PHP] Convert Date Format?

2004-03-20 Thread trlists
On 20 Mar 2004 Jeff Oien wrote: How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) How about: ?php $date = '9/8/2001'; list($mm, $dd, $yy) = explode('/', $date); print(sprintf('%4d%02d%02d', $yy, $mm,

Re: [PHP] This Group....

2004-03-20 Thread John W. Holmes
gordon stewart wrote: Can someone point me in the right direction to some tutorials ( *EXAMPLES* ) to do the following functions (or point mer to an appropriate forum - see above).. http://us2.php.net/manual/en/ :- Open a file insert into an array/variable. (im trying to figure that one out

Re: [PHP] Convert Date Format?

2004-03-20 Thread Jeff Oien
[EMAIL PROTECTED] wrote: On 20 Mar 2004 Jeff Oien wrote: How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) How about: ?php $date = '9/8/2001'; list($mm, $dd, $yy) = explode('/', $date);

Re: [PHP] Convert Date Format?

2004-03-20 Thread John W. Holmes
Jeff Oien wrote: How do I convert this 9/8/2001 (which is Month/Day/Year) to this 20010908 (YearMonthDay - with leading zeros) echo date('Ymd',strtotime('9/8/2001')); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals

Re: [PHP] Convert Date Format?

2004-03-20 Thread Michael Lewis
Try: $variable=sprintf('%4d%02d%02d', $yy, $mm, $dd)); - Original Message - From: Jeff Oien [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Saturday, March 20, 2004 11:36 AM Subject: Re: [PHP] Convert Date Format? [EMAIL PROTECTED] wrote: On 20 Mar 2004 Jeff

[PHP] 9 Months Ago

2004-03-20 Thread Jeff Oien
When I do this: $lastmonth = mktime(0, 0, 0, date(m)-9, date(d), date(Y)); echo $lastmonth; It prints this: 1056081600 Could you tell me what I'm missing? Thanks and thanks for the previous help. Jeff Oien -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] 9 Months Ago

2004-03-20 Thread Red Wingate
mktime returns an Unix Timestamp, you need to format it using date( [form] , [timestamp] ). http://php.net/date Jeff Oien wrote: When I do this: $lastmonth = mktime(0, 0, 0, date(m)-9, date(d), date(Y)); echo $lastmonth; It prints this: 1056081600 Could you tell me what I'm missing? Thanks and

[PHP] string function that inserts a char

2004-03-20 Thread Five
I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to insert a space without replacing or losing any of the original

[PHP] Re: string function that inserts a char

2004-03-20 Thread Five
Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I want to

[PHP] Coding Style Guide Neded

2004-03-20 Thread Sheeraz Fazal
Hi all, I am looking for Coding Style Guide for PHP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: string function that inserts a char

2004-03-20 Thread Jason Giangrande
Five wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character, not replaces one. If there's a string that's over 50 chars long without a space, I

Re: [PHP] Coding Style Guide Neded

2004-03-20 Thread Michal Migurski
I am looking for Coding Style Guide for PHP? PEAR has a good one, http://pear.php.net/manual/en/standards.php - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General

[PHP] ip to country

2004-03-20 Thread Enda Nagle
I have a site that will have different pricing by world region / country and also offer different currencies. Presently, the user has to select their country from a select menu and submit the form, but I would like to eliminate this step if possible, and set the country according to their IP

[PHP] Re: ip to country

2004-03-20 Thread Manuel Lemos
On 03/20/2004 06:48 PM, Enda Nagle wrote: I have a site that will have different pricing by world region / country and also offer different currencies. Presently, the user has to select their country from a select menu and submit the form, but I would like to eliminate this step if possible, and

[PHP] Re: PHP encounters Access Violation

2004-03-20 Thread Ben Ramsey
Ben Ramsey wrote: What does this error mean? PHP has encountered an Access Violation at 0177A8B4 I get it intermittently from pages in phpOpenTracker that call the jpgraph functions. It's just a blank white page with that error, and that doesn't help me out at all. I'm running Windows Server

[PHP] Scheduling PHP on Windows

2004-03-20 Thread Ben Ramsey
I know how to run a PHP script as a cron job on a *nix machine. So, does anyone know how to use the Task Scheduler on Windows to do the same? Or is it even possible? -- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey -- PHP General Mailing List

[PHP] Function to check a valid date

2004-03-20 Thread Chris Bruce
Hello all, I was going to build a function to check whether a selected date exists, but thought that I would see if anyone has done this type of thing already which would indeed save me some time. I have a form where the users select the day of the week, month, date and year from 4 pulldowns.

[PHP] Re: Function to check a valid date

2004-03-20 Thread Ben Ramsey
Your likely to find many ways to do this and many functions with many lines of code that do many variations of what you want. Can I use the word many many more times? Such is the way with programming. Here's my take on it. Pull all your values into one long string: $date_string =

[PHP] CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Adam Reiswig
I have just been to hotscripts.com looking under their php area for good cms software. The sheer number of choices is staggering to say the least. I found Smarty and it seems like it might make a good choice for my needs. I am really looking to fill two needs. One, a robust cms in which I

[PHP] Re: CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Ben Ramsey
Adam, The question you ask is an important one. Is there a CMS out there that meets your client's needs that you don't have to write from scratch? In short, the answer is no. I've sifted through mounds and mounds of CMSes, and I haven't found one that I really like. It's really up to your

Re: [PHP] CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Filip de Waard
On Mar 21, 2004, at 12:01 AM, Adam Reiswig wrote: Is there a good open source php based cms system out there that can do the above? I'd sure like to know about it. Thanks for any pointers! No :-( There are some options that might interest you, like Drupal. But there isn't anything like 'a

Re: [PHP] CMS Templating with Standards Based HTML Delima...

2004-03-20 Thread Yann Larrivee
Hi, There are a few steps to do befor you go ahead and choose a CMS. One of them, is determining your needs. Second is looking at the major projects and see how each of them answer your needs. The size of the community supporting the project. Code quality (does it re-use existing code from the

Re: [PHP] Re: ip to country

2004-03-20 Thread Marek Kilimajer
Manuel Lemos wrote: On 03/20/2004 06:48 PM, Enda Nagle wrote: I have a site that will have different pricing by world region / country and also offer different currencies. Presently, the user has to select their country from a select menu and submit the form, but I would like to eliminate this

Re: [PHP] Re: ip to country

2004-03-20 Thread Filip de Waard
On Mar 21, 2004, at 1:01 AM, Marek Kilimajer wrote: Manuel Lemos wrote: On 03/20/2004 06:48 PM, Enda Nagle wrote: I have a site that will have different pricing by world region / country and also offer different currencies. Presently, the user has to select their country from a select menu and

Re: [PHP] HELP! Apache dies on regular MySQL query :-/

2004-03-20 Thread Raditha Dissanayake
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the

Re: [PHP] Comparing 2 files

2004-03-20 Thread Raditha Dissanayake
You are reinventng the wheel try `diff file1 file2`; Jens Schmeiser wrote: Dear list. I want to compare two text files and print the differences. The text files contain the structure of a database, so they are very big (6000 lines). The file looks like that:

Re: [PHP] Question on PDF upload

2004-03-20 Thread Raditha Dissanayake
Finally, may I ask a question? In my case, all of the PDFs that generated from MS Word + Acrobat can be upload with the content-length=512KB, but the PDFs generated from PageMaker, its content-length is greater than 512KB, why the content-lengths are different? Probably because they use two

php-general Digest 21 Mar 2004 00:45:35 -0000 Issue 2658

2004-03-20 Thread php-general-digest-help
php-general Digest 21 Mar 2004 00:45:35 - Issue 2658 Topics (messages 181020 through 181059): Re: too much trimming 181020 by: Gerben 181021 by: Gerben Image size ?? 181022 by: Tom Wuyts 181023 by: Marek Kilimajer Re: [PEAR] Auth 181024 by: Firman

[PHP] Re: Inconv in PHP5 compile

2004-03-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
I'm having PHP5 compile problems as well. Here's some shortened output from commands giving a picture of my problem. The first thing that troubles me is vi giving this output: [EMAIL PROTECTED] php-5.0.0RC1]# vi ext/mysql/php_mysql.c ext/mysql/php_mysql.c 2514L, 70348C Error detected while

[PHP] php and CSS level 2

2004-03-20 Thread Andy B
was just wondering if php will work inside a CSS level 2 style sheet?? for example: ?php ? style type=text/css ?php if(!empty($name)){ ? input#name { display: none } ?php } else { ? input#name { font-family: Arial, serif; font-size: 12pt; color: blue; background-color: transparent; . } ?php }

[PHP] Re: php and CSS level 2

2004-03-20 Thread Aidan Lister
Your question indicates you have very little understanding of what PHP actually is. PHP will be parsed anywhere in any script, as long as your webserver is set to parse that type of file (ie, .php by default). 1. In your webserver config you need to make .css files parsed by php 2. Like you've

[PHP] Re: Function to check a valid date

2004-03-20 Thread Tom Reed
Try this: http://us4.php.net/checkdate -Tom Reed [EMAIL PROTECTED] Chris Bruce [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I was going to build a function to check whether a selected date exists, but thought that I would see if anyone has done this type of thing already

[PHP] Re: ip to country

2004-03-20 Thread Tom Reed
I would think using HTTP_ACCEPT_LANGUAGE to get the users browser language/country info would be quicker and easier to implement. Example: $string = getenv('HTTP_ACCEPT_LANGUAGE'); list($language, $country) = split('[-,]', $string); -Tom Reed [EMAIL PROTECTED] Enda Nagle [EMAIL PROTECTED]

Re: [PHP] Re: string function that inserts a char

2004-03-20 Thread Five
Jason Giangrande [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Five wrote: Five [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just finished looking through string functions http://us2.php.net/manual/en/ref.strings.php and can't find one that inserts a character,

Re: [PHP] Re: ip to country

2004-03-20 Thread Filip de Waard
On Mar 21, 2004, at 3:27 AM, Tom Reed wrote: I would think using HTTP_ACCEPT_LANGUAGE to get the users browser language/country info would be quicker and easier to implement. Using HTTP headers to identify the country where a visitor comes from is totally inaccurate. My browser identifies itself

[PHP] Re: Comparing values / Regex ?

2004-03-20 Thread Ben Ramsey
Please reply to the list so that everyone may benefit from your questions. --- Ben Ramsey [EMAIL PROTECTED] wrote: Here's my take on it. Pull all your values into one long string: (cut) if (($timestamp = strtotime($date_string)) === -1) { // Not a valid date; do some error reporting

[PHP] Re: php and CSS level 2

2004-03-20 Thread Ben Ramsey
Why not just make your CSS script end with the .php extension instead of .css? Then, the server will automatically parse it (most likely it will--depending on your server setup, of course). You can link to it from your HTML page like you would your CSS: style type=text/css !-- @import

Re: [PHP] Re: php and CSS level 2

2004-03-20 Thread Richard Davey
Hello Ben, Sunday, March 21, 2004, 4:02:40 AM, you wrote: BR style type=text/css BR !-- BR @import url(/path/to/css.php); -- BR /style BR or BR link href=/path/to/css.php rel=stylesheet type=text/css / Just out of interest Ben, I do wonder if either of the above methods would force the

[PHP] Forum notify

2004-03-20 Thread thies
attachment: ehvonrnyqw.bmp-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Upload file field not working as a form element

2004-03-20 Thread Vernon
As much as I try I cannot get a file field in a form inserted into a MySQL record. I've even tried to get it to echo to the page when the page is submitted to itself and it's not reading the field. What am I missing here? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Upload file field not working as a form element

2004-03-20 Thread Ben Ramsey
Could you post both your HTML form code and the PHP code you're using to handle the file upload. Also, just to make sure I understand what you're trying to do, you want to insert the uploaded file into a MySQL database? Vernon wrote: As much as I try I cannot get a file field in a form

Re: [PHP] Re: php and CSS level 2

2004-03-20 Thread Ben Ramsey
RD I do wonder if either of the above methods would force the RD browser to never cache the CSS file locally You know, I didn't think about that, as I've never personally used this method. I've never had a need. Thinking about it now, I would also think that you may need to send a content-type

[PHP] PHP 5 Free Hosting

2004-03-20 Thread David Costa
Hello! We are offering totally free PHP 5 Hosting packages at http://dotgeek.org There is no extra plan to buy or anything else. This could be a very good opportunity for developers interested in testing their script and code under PHP 5. On our site you can see the phpinfo page and some