[PHP] Question about clients

2005-04-07 Thread karl james
Team, How do most of you get your clients, are their any other tricks besides word of mouth. I really want to become a freelance web designer, or work for a provider of clients. Also/or for a major coporation that. Does anybody have any suggestions on how I can start getting paid for what I

RE: [PHP] Question about shortening a string

2005-03-16 Thread Kim Madsen
-Original Message- From: Steve Slater [mailto:[EMAIL PROTECTED] Sent: Saturday, March 12, 2005 5:29 PM $name_array = explode( ,$name); $short_name = $name_array[0] . end($name_array); And a dozen other ways to do it I'm sure. I just finished a project with a mess of pattern matching

Re: [PHP] Question about shortening a string

2005-03-12 Thread Steve Slater
At 11:54 PM 3/11/2005, Stephen Johnson wrote: Just a quick and dirty solution - but couldn't you explode the name into an array and use the first and last array fields ? $name_array = explode( ,$name); $short_name = $name_array[0] . end($name_array); And a dozen other ways to do it I'm sure. I

[PHP] Question about shortening a string

2005-03-11 Thread Mário Gamito
Hi, In Portgal we have big names. My complete name, for instance, is Mário Augusto Machado dos Reis Gamito. Mário is the Christian name and Gamito - the last one - is always the last name of the father. I have a form where i want to let my users insert their full big name like mine, but i want

Re: [PHP] Question about shortening a string

2005-03-11 Thread Steve Slater
Mario, Many ways to do it, most using regex. This is not as clean as it can be but still shows the idea: ?php $name = Mario Augusto Machado dos Reis Gamito; preg_match (/^(\w+)(\W*)(\w+\W+)*(\w+)$/,$name,$matches); $short_name = $matches[1] $matches[4]; ? This example works for any number of

Re: [PHP] Question about shortening a string

2005-03-11 Thread Stephen Johnson
Just a quick and dirty solution - but couldn't you explode the name into an array and use the first and last array fields ? On Mar 11, 2005, at 11:39 PM, Steve Slater wrote: Mario, Many ways to do it, most using regex. This is not as clean as it can be but still shows the idea: ?php $name =

[PHP] Question about php.ini

2005-02-07 Thread Stephen Wong
Hi, I hope we are all doing well today I'm very new to php. Here are some basic info about my server that I am running: Mac OS X 10.3.7 PHP 4.3.10 MySQL 4.0.18 Apache 1.3.33 What I want to do is host a forum on my web page. I can't seem to get it set up, and I notice that I do not have a

RE: [PHP] Question about php.ini

2005-02-07 Thread Jay Blanchard
[snip] 1.) rename the php.ini.default to plain php.ini and see if that resolves it. However, I'm not sure what kind of tests can I perform to see that it is working properly? [/snip] How about just making a copy of the file and testing it? Have you run phpinfo() yet? -- PHP General Mailing List

RE: [PHP] Question about php.ini

2005-02-07 Thread Jay Blanchard
[snip] Yup, I have tried making a copy of it. I'm just not exactly sure how to test it? I ran phpinfo() , and it runs even without a php.ini. [/snip] Change something in the configuation file that you know you can run a test on, like safe mode status, then restart Apache and conduct the test.

Re: [PHP] Question about php.ini

2005-02-07 Thread Richard Lynch
Stephen Wong wrote: I'm very new to php. Here are some basic info about my server that I am running: Mac OS X 10.3.7 PHP 4.3.10 MySQL 4.0.18 Apache 1.3.33 What I want to do is host a forum on my web page. I can't seem to get it set up, and I notice that I do not have a php.ini file in

RE: [PHP] Question about php.ini

2005-02-07 Thread Brandon Thompson
PROTECTED] Sent: Monday, February 07, 2005 12:53 PM To: Stephen Wong Cc: php-general@lists.php.net Subject: RE: [PHP] Question about php.ini [snip] Yup, I have tried making a copy of it. I'm just not exactly sure how to test it? I ran phpinfo() , and it runs even without a php.ini. [/snip

[PHP] Question about Safe Mode

2005-01-31 Thread Rick Root
I have a little home made CMS that writes files... on the server I've recently installed this CMS on, those files get written as apache:apache ... that file uses include to include other files that are not owned by apache, and this doesn't work. Warning: main(): SAFE MODE Restriction in effect.

RE: [PHP] Question about Safe Mode

2005-01-31 Thread Jay Blanchard
[snip] So... how do I work around this? Can I get php to write the files so they aren't owned by apache but rather thwn owner of the php script that creates them? [/snip] PHP scripts run by the HTTP server are run as the web server. The web server runs as 'Apache', so Apache needs permissions

Re: [PHP] Question about Safe Mode

2005-01-31 Thread Marek Kilimajer
Rick Root wrote: I have a little home made CMS that writes files... on the server I've recently installed this CMS on, those files get written as apache:apache ... that file uses include to include other files that are not owned by apache, and this doesn't work. Warning: main(): SAFE MODE

[PHP] question about a cron job

2005-01-17 Thread Al
I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/ -name 'sess_*'

RE: [PHP] question about a cron job

2005-01-17 Thread Jay Blanchard
[snip] I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Jay Blanchard wrote: [snip] I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up sessions folder 2 0 * * * (find

Re: [PHP] question about a cron job

2005-01-17 Thread Erwin Kerk
Al wrote: I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/

RE: [PHP] question about a cron job

2005-01-17 Thread Michael Sims
#this is only for testing a new cronjob, every minute * * * * * /usr/local/bin/php /www/r/rester/htdocs/phpList_cronjob/process_cronjob.php /www/r/rester/htdocs/phpList_cronjob/cron.log 21 The new one doesn't seem to want to run until after 3:01 or 3:02. Shouldn't the sever just run it

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Erwin Kerk wrote: Al wrote: I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up sessions folder 2 0 * * * (find

Re: [PHP] question about a cron job

2005-01-17 Thread Bret Hughes
On Mon, 2005-01-17 at 09:01, Erwin Kerk wrote: Al wrote: I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php /www/r/rester/htdocs/auto_backup/cron.log 21 #At 3:02 clean up

RE: [PHP] question about a cron job

2005-01-17 Thread Michael Sims
Erwin Kerk wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the every-minute job until 3.01 pm. I'm not sure I understand what you're saying above. Can you provide a pointer to documentation about this?

Re: [PHP] question about a cron job

2005-01-17 Thread Jason Wong
On Monday 17 January 2005 23:19, Al wrote: Erwin Kerk wrote: Al wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the every-minute job until 3.01 pm. Not sure if I've misunderstood what Al is saying

Re: [PHP] question about a cron job

2005-01-17 Thread Jochem Maas
Michael Sims wrote: Erwin Kerk wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the every-minute job until 3.01 pm. I'm not sure I understand what you're saying above. Can you provide a pointer to

RE: [PHP] question about a cron job

2005-01-17 Thread Michael Sims
Jochem Maas wrote: Michael Sims wrote: Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be

Re: [PHP] question about a cron job

2005-01-17 Thread Al
Michael Sims wrote: Erwin Kerk wrote: The CRON daemon only refreshes it's job list after a job in the current list is completed. Therefore, the CRON daemon won't notice the every-minute job until 3.01 pm. I'm not sure I understand what you're saying above. Can you provide a pointer to

Re: [PHP] question about a cron job

2005-01-17 Thread Jochem Maas
Michael Sims wrote: Jochem Maas wrote: Michael Sims wrote: Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus

[PHP] Question about dates

2004-12-24 Thread Brent Clements
How does one over come the issue of unix time not going beyond a certain date? ie, when I do echo strtotime(2099-10-08); it outputs -1 This has to do with the limitations of unix time, so how does one get around it? Thanks, Brent -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Question about dates

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 08:46:28 -0600, Brent Clements [EMAIL PROTECTED] wrote: How does one over come the issue of unix time not going beyond a certain date? Overcome the issue in what way? A 32bit integer is what it is. ie, when I do echo strtotime(2099-10-08); it outputs -1 So don't use

[PHP] Question about the date

2004-11-03 Thread Henri Marc
Hello, I have a question about the date. I have a script that compose an e-mail and send it. No problem until now, but I also need that the script can write the date of the next week. Let say we are Wednesday. The script must write the date of Wednesday 3rd in the e-mail. But from 5pm today, it

[PHP] Question about function dns_check_record

2004-11-01 Thread Bao Vu
Hello, I have a problem regard to function - dns_check_record - dns_get_mx Can you tell me why the PHP said the Call to undefined function? and also class Dog { function __construct() { } } the construct or descontruction are not working? Thanks, Bao

[PHP] question about mkdir() and ownership permissions

2004-10-13 Thread Jason FB
PHP General List, I am trying to use mkdir() on a shared unix server to create a directory within my home space. I have to have the ability for my user on this server to upload to this folder, however I think that mkdir() creates the directory and makes it owned by the process running Apache

Re: [PHP] question about mkdir() and ownership permissions

2004-10-13 Thread Jason Wong
On Thursday 14 October 2004 06:02, Jason FB wrote: Does anyone know how I can create a directory which is owned by my user account on this server-- or have any other creative suggetions? If you have it, use FTP. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software

[PHP] Question about array_search

2004-10-11 Thread Brian Dunning
Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. How does one circumvent this potential pitfall?

Re: [PHP] Question about array_search

2004-10-11 Thread Matt M.
Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. How does one circumvent this potential

Re: [PHP] Question about array_search

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as

Re: [PHP] Question about array_search

2004-10-11 Thread Robin Vickery
On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If it's in index 0 it returns 0, if it's not there at all it returns

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Brian Dunning wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the same answer as if it's not in there at all. No it doesn't. If the

Re: [PHP] Question about array_search

2004-10-11 Thread John Holmes
Greg Donald wrote: On Mon, 11 Oct 2004 09:07:13 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Say I'm trying to add a value to an array, only if it's not already in there somewhere; so I do an array_search to see. The problem is that if the item is at index 0 in the array, array_search gives the

Re: [PHP] Question about error_reporting()

2004-10-09 Thread Jason Wong
On Saturday 02 October 2004 00:34, Greg Donald wrote: The manual is not clear on this point. Also, must I have a an existing error file for the errors to append to? No, the web server error log is where they shoudl appear. No, PHP errors DO NOT appear in the apache logs[1], they are

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Gary Hotko
Could you provide more information, code example or a how to to do this.. Thanks On Mon, 04 Oct 2004 15:03:31 -0700, Matthew Fonda [EMAIL PROTECTED] wrote: The best way to store credit card numbers is to have them encrypted when they are stored in the database, and decrypted when they need

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Paul Waring
On Tue, 5 Oct 2004 12:29:53 -0400, Gary Hotko [EMAIL PROTECTED] wrote: Could you provide more information, code example or a how to to do this.. Have a look at the Mcrypt functions in PHP (you need to complie support for this extension to access these features):

Re: [PHP] Question about handling credit cards

2004-10-05 Thread Andrew Kreps
On Mon, 4 Oct 2004 14:49:44 -0700, Ed Lazor [EMAIL PROTECTED] wrote: I'm looking at online stores and it seems like a lot of them maintain copies of credit card numbers. Is this true? That seems like a bad thing to me, especially in terms of liability and risk of hackers. On the flip side,

[PHP] Question about handling credit cards

2004-10-04 Thread Ed Lazor
I'm looking at online stores and it seems like a lot of them maintain copies of credit card numbers. Is this true? That seems like a bad thing to me, especially in terms of liability and risk of hackers. On the flip side, it seems like there are legitimate reasons. For example, if you bill the

Re: [PHP] Question about handling credit cards

2004-10-04 Thread Matthew Fonda
The best way to store credit card numbers is to have them encrypted when they are stored in the database, and decrypted when they need to be used, that way it will be safer for the most part On Mon, 2004-10-04 at 14:49, Ed Lazor wrote: I'm looking at online stores and it seems like a lot of them

[PHP] Question about error_reporting()

2004-10-01 Thread Al
If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error reporting only shows E_ERRORS, so I wanted to see warnings also. Thanks -- PHP

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error reporting

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Al
Greg Donald wrote: On Fri, 01 Oct 2004 10:36:28 -0400, Al [EMAIL PROTECTED] wrote: If I place this at the top of my script file, the page just hangs. error_reporting (E_ERROR | E_WARNING); A virtual host on a Unix/Apache system. Runs fine without the error_reporting(). The default system error

Re: [PHP] Question about error_reporting()

2004-10-01 Thread Greg Donald
On Fri, 01 Oct 2004 12:13:18 -0400, Al [EMAIL PROTECTED] wrote: What's puzzling is that I can simply comment out the error_reporting line and the code runs fine. Also, the Apache error log doesn't show any errors. with or without the error_reporting. Make sure you have log_errors = On in

[PHP] question about file_put_contents

2004-08-12 Thread Corey Hitchcock
Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever then it overwrites that entry in the

Re: [PHP] question about file_put_contents

2004-08-12 Thread Curt Zirzow
* Thus wrote Corey Hitchcock: Hi, I'm relatively new with php but I have a question about this 'new' function. If I use file_put_contents(file.txt, whatever) then it, of course, writes whatever in the file.txt. If I later do the same thing but put a different word (say other) from whatever

[PHP] Question about for

2004-07-25 Thread Henri Marc
Hello, I woudlike to use a loop: for ($i=1;$i11;$i++) But instead of incrementing with 1, I would like to increment by 2. So $i would be 1,3,5,7,9. I tried to find the answer may be with step but couldn't find anything. Thank you for your help. Dave Vous

RE: [PHP] Question about for

2004-07-25 Thread Ash Young
You could try for ($i=1;$i11;$i=$i+2) -- ash young :: http://evoluted.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about for

2004-07-25 Thread Miroslav Hudak (php/ml)
?php for ($x = 0; $x 10; $x += 2) echo $x.','; ? m. Henri Marc wrote: Hello, I woudlike to use a loop: for ($i=1;$i11;$i++) But instead of incrementing with 1, I would like to increment by 2. So $i would be 1,3,5,7,9. I tried to find the answer may be with step but couldn't find

Re: [PHP] Question about executing PHP script

2004-06-29 Thread Red Wingate
Yep :-) [...] can I do a #!/usr/bin/php -q at the begining of the text file? [...] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Question about executing PHP script

2004-06-28 Thread Charlie Don
Hello, I need to have some scripts that do database maintanance on my cron tab. However, some might take more time to execute that the maxtime set on php.ini. These are now web scripts but scripts that I execute on my command prompt or cron tab. I wonder if there is any way to have on the

Re: [PHP] Question about executing PHP script

2004-06-28 Thread Charlie Don
a #!/usr/bin/perl -w can I do a #!/usr/bin/php -q at the begining of the text file? Thanks. From: Elijah Gallatin [EMAIL PROTECTED] To: Charlie Don [EMAIL PROTECTED] Subject: Re: [PHP] Question about executing PHP script Date: Mon, 28 Jun 2004 19:33:14 -0400 On Mon, 28 Jun 2004 23:29:16 +

Re: [PHP] Question about the mail() php function

2004-04-24 Thread Andy B
them what smtp server to use. - Original Message - From: Shawn Inder [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, April 24, 2004 1:02 AM Subject: [PHP] Question about the mail() php function Hello, I was browsing your site and came across the mail() PHP function. I tryed

RE: [PHP] Question about the mail() php function

2004-04-24 Thread Julien Wadin
you've to go in the php.ini and give a smtp server -Message d'origine- De : Shawn Inder [mailto:[EMAIL PROTECTED] Envoyé : samedi 24 avril 2004 6:03 À : [EMAIL PROTECTED] Objet : [PHP] Question about the mail() php function Hello, I was browsing your site and came across the mail() PHP

[PHP] Question about the mail() php function

2004-04-23 Thread Shawn Inder
Hello, I was browsing your site and came across the mail() PHP function. I tryed it out: ?php mail([EMAIL PROTECTED], My Subject, Line 1\nLine 2\nLine 3); ? [EMAIL PROTECTED] is my e-mail adress, obviously enough.. The problem is, the e-mail doesn't get sent. A warning appears on the page:

Re: [PHP] Question about the mail() php function

2004-04-23 Thread Travis Low
Sounds like you don't have a mail server running on localhost at port 25. If you do have a mail server running, then it seems to me that you should verify your SMTP and smtp_port setting in php.ini or use ini_set() in C:\Program Files\Abyss Web Server\htdocs\page.php on line 24. Just

Re: [PHP] Question about the mail() php function

2004-04-23 Thread Richard Harb
If I had to take a wild guess I'd say that there's no mail server on your machine that would be capable of accepting email for delivery. And that Warning is PHP's effort to tell you just that. Hint: google - and I bet most other search engines - give you plenty of sites providing good information

Re: [PHP] Question about dates

2004-04-06 Thread saepudin
hi, I want to send an SMS(to mobile phone etc) based on a database trigger or on completion of an php page. the site runs on linux. how to do this. How do i send the mobile no . what is the language, protocol, syntax and platform. if anyone knows please inform. i am unable to understand

[PHP] question about M. Lemos's HTML forms generation and validation

2004-03-25 Thread dr. zoidberg
Hello, I'm creating registration service with this great form script for creating forms within Smarty. Question is how can I validate 'username' against allready registered users in MySQL so that someone cannot register him self if there is another user with that username. TNX! -- PHP

Re: [PHP] question about M. Lemos's HTML forms generation and validation

2004-03-25 Thread Tom Rogers
Hi, Friday, March 26, 2004, 11:19:51 AM, you wrote: dz Hello, dz I'm creating registration service with this great form script for dz creating forms within Smarty. dz Question is how can I validate 'username' against allready registered dz users in MySQL so that someone cannot register him

[PHP] Question about magic quotes NEWBIE QUESTION

2004-03-01 Thread James Marcinek
Hello everyone! Are there any concerns with having the 'magic quotes' enabled or should I use the Add Strip Slashes? I will be using a database (MySQL). thanks, James __ Do you Yahoo!? Get better spam protection with Yahoo! Mail.

Re: [PHP] Question about magic quotes NEWBIE QUESTION

2004-03-01 Thread Richard Davey
Hello James, Monday, March 1, 2004, 7:09:24 PM, you wrote: JM Are there any concerns with having the 'magic quotes' JM enabled or should I use the Add Strip Slashes? I JM will be using a database (MySQL). I wouldn't be concerned about using them at all - they're not a security risk or anything

[PHP] Question about CGI binary

2004-02-25 Thread Chris
I've run into situation where my PHP script, (which loads records into a database) gets timed out after 30 seconds, terminating the script execution. I understand that PHP, on my hosting system, is installed as a CGI binary. I've even included set_time_limit which seems to have no effect. Is is

[PHP] Question about the manual content

2004-02-18 Thread janbro
htmlstylep {margin: 0px}/stylebody style='font-size:9pt; font-family:Verdana; font-family: Verdana' PHi List,/PPI have a little problem I posted a couple of times now. The PHP Manual gave me the idea that the clibpdf library seemed to work with php. Well I tried some things they didn't seem to

Re: [PHP] Question about php forwarding to javascript

2004-02-15 Thread David Otton
On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote: Could be missing the point here because your question is quite vague. However... I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php include(http://.../source.xls); ? Is it

Re: [PHP] Question about php forwarding to javascript

2004-02-15 Thread Peter Andersson
Thanks! It works like a charm! /peter On Sun, 15 Feb 2004 07:52:11 +0100 (CET), you wrote: Could be missing the point here because your question is quite vague. However... I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php

[PHP] Question about php forwarding to javascript

2004-02-14 Thread Peter Andersson
Hi! I am using a web page that uses the following php code to display the contents of a dynamically update webpage: ?php include(http://.../source.xls); ? Is it possible to forward the contents of the code to a javascript? eg if the file source.xls contains the text help me is it possible to

[PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
I'm using PHP to display a MySQL table. I've got everything working fine except the date function. I designated the first two fields VARCHAR. Those columns display just fine when I preview my web page, as do all the other columns except the third. I designated that one DATE. (The field name is

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread John W. Holmes
Freedomware wrote: When I view my data in phpMyAdmin, all I see in that column is NULL. When I preview it in a webpage, nothing displays at all. If I change it to NOT NULL, I see -00-00 in every cell. Here's a row of text from the CSV file I imported into my MySQL table:

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
John W. Holmes wrote: Freedomware wrote: When I view my data in phpMyAdmin, all I see in that column is NULL. When I preview it in a webpage, nothing displays at all. If I change it to NOT NULL, I see -00-00 in every cell. Here's a row of text from the CSV file I imported into my MySQL

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread John W. Holmes
Freedomware wrote: EMS lists the following: Short Date: M/d/ Long Date: , dd, Day followed by month, followed by another day, then year??? That format means something like Friday, May 5, 2004 I thought it was supposed to be year first, followed by month and day, as in the

Re: [PHP] Question About Date Function in PHP/MySQL

2004-02-08 Thread Freedomware
John W. Holmes wrote: Freedomware wrote: EMS lists the following: Short Date: M/d/ Long Date: , dd, Day followed by month, followed by another day, then year??? That format means something like Friday, May 5, 2004 I thought it was supposed to be year first, followed by month

[PHP] Question about dates

2004-02-02 Thread Renan G. Galang
I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys.

Re: [PHP] Question about dates

2004-02-02 Thread John Nichel
Renan G. Galang wrote: I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys. Correct. -- By-Tor.com It's all

Re: [PHP] Question about dates

2004-02-02 Thread John W. Holmes
Renan G. Galang wrote: I just need a confirmation, when the getdate() function is invoked inside a PHP script, the date returned will be the server hosting the pages' date and not the client requesting the page, right? or am i wrong in my assumption? Thanks guys. Yes, you are not wrong in

[PHP] Question about PEAR::raiseError use in XML_RPC client

2004-01-26 Thread Luis Cruz
Greetings; I recently grabbed the latest source for XML_RPC from CVS for use with a project I am working on. I grabbed the latest source rather than the stable build mainly because it includes a handy base class that defines a raiseError method. However, I am puzzled by own thing.

[PHP] Question about PEAR::raiseError use in XML_RPC client

2004-01-23 Thread Luis Cruz
Greetings; I recently grabbed the latest source for XML_RPC from CVS for use with a project I am working on. I grabbed the latest source rather than the stable build mainly because it includes a handy base class that defines a raiseError method. However, I am puzzled by own thing.

Re: [PHP] Question about array limits practicallity

2004-01-22 Thread Chris W
Joe Harman wrote: Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500

[PHP] Question about array limits practicallity

2004-01-21 Thread Joe Harman
I am curious how much data an array can hold.. And what the pros and cons are. Example.. I am making a testing system that will give a student a 102 question test... The test would be generated so that each one is different... So would it be practical to load all 102 questions and their options

Re: [PHP] Question about array limits practicallity

2004-01-21 Thread Robert Cummings
On Wed, 2004-01-21 at 23:07, Joe Harman wrote: I am curious how much data an array can hold.. And what the pros and cons are. How much memory have you allowed PHP to consume? Example.. I am making a testing system that will give a student a 102 question test... The test would be

Re: [PHP] Question about array limits practicallity

2004-01-21 Thread Chris W
Robert Cummings wrote: Also can I store those arrays as a blob in MySQL? You could, but you'd be better off storing them in normalized tables IMHO. In this cans I will have to strongly agree with Rob, but I also have to add a few comments. Why on earth would you store an array as a blob

RE: [PHP] Question about array limits practicallity

2004-01-21 Thread Joe Harman
of wisdom are also welcome :o) So thanks for your input, Joe -Original Message- From: Chris W [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 11:54 PM To: Robert Cummings; PHP-General Subject: Re: [PHP] Question about array limits practicallity Robert Cummings wrote: Also

Re: [PHP] Question about array limits practicallity

2004-01-21 Thread John Nichel
Joe Harman wrote: Thanks for your comments Chris and Rob... Chris you have great points to make, my ears are wide open... The reason I thought about storing the array in a blob is because every test generated will be different. the 102 question test will be generate randomly from a bank of 500

Re: [PHP] Question about array limits practicallity

2004-01-21 Thread Galen
Cummings; PHP-General Subject: Re: [PHP] Question about array limits practicallity Robert Cummings wrote: Also can I store those arrays as a blob in MySQL? You could, but you'd be better off storing them in normalized tables IMHO. In this cans I will have to strongly agree with Rob, but I also have

[PHP] Question about an array

2004-01-03 Thread Vernon
I want to create an array with some text. Let's say the following: $sometext = array(explode( , Objective: Position as a Machine Attendant and or Operator Summary - Over 16 years experience in packaging and maintenance of various operating machinery. - 13 years experience in cutting steel and

[PHP] question about security

2003-11-21 Thread Alan Fullmer
Is php capable of recognizing things such as in a text box, someone were to put ?php insert php code here; ? and display say, variables? do i have to htmlspecialchars every entry? does this make any sense? thanks in advance.

RE: [PHP] question about security

2003-11-21 Thread Chris W. Parker
Alan Fullmer mailto:[EMAIL PROTECTED] on Friday, November 21, 2003 5:00 PM said: do i have to htmlspecialchars every entry? Yes you have to protect yourself from your users data each and every time you receive user data, ever, always. does this make any sense? I think so. Chris. --

Re: [PHP] question about security

2003-11-21 Thread John W. Holmes
Alan Fullmer wrote: Is php capable of recognizing things such as in a text box, someone were to put ?php insert php code here; ? and display say, variables? No, not normally. If you just display the code, it'll show as plain PHP code and not be run. However, if it makes its way into an include

[PHP] Question about video (PHP unrealted)

2003-11-19 Thread Frank Tudor
I know this is bad but this is the only listserver/newgroup thingy I use because I am php challenged. Any how, I want to embed windows media player in my php pages (which I have done successfully), but I need help: I was wondering which is the best format for demand downloading of video files

RE: [PHP] Question about video (PHP unrealted)

2003-11-19 Thread Chris W. Parker
Frank Tudor mailto:[EMAIL PROTECTED] on Wednesday, November 19, 2003 11:26 AM said: I know this is bad but this is the only listserver/newgroup thingy I use because I am php challenged. Actually you have (nearly) the entire internet at your beck and call. Me: Frank, google. Google, Frank.

[PHP] Question about empty();

2003-11-18 Thread John
Hi all This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there be a function that returns true or false,

Re: [PHP] Question about empty();

2003-11-18 Thread Curt Zirzow
* Thus wrote John ([EMAIL PROTECTED]): Hi all This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there

Re: [PHP] Question about empty();

2003-11-18 Thread Mike Migurski
This function I don't get at all, I hear all the time, if you want to practice smart coding then turn register globals off, and be sure you keep query data out of your script that is not set or defined with something expected. So why would there be a function that returns true or false, $var is

[PHP] question about :: usage

2003-11-07 Thread Chris W. Parker
Hi yizzle. Anyway... Here is my problem. I have a class called Validate that has a method called ValidateInput. There is another method in this class called phonenumber. ValidateInput calls phonenumber at some point like this $this-phonenumber($input);. In my page I'm trying to use this class

Re: [PHP] question about :: usage

2003-11-07 Thread Eugene Lee
On Fri, Nov 07, 2003 at 11:28:18AM -0800, Chris W. Parker wrote: : : Anyway... Here is my problem. I have a class called Validate that has a : method called ValidateInput. There is another method in this class : called phonenumber. ValidateInput calls phonenumber at some point like : this

<    1   2   3   4   5   6   7   8   9   >