[PHP] PHP and DDE

2004-02-12 Thread Manuel Ochoa
Can PHP interface with other programs through DDE?

[PHP] ereg is failing on this simple test

2003-12-12 Thread Manuel Ochoa
Why is this test failing? $data = "A Simple test."; If (ereg("^[a-zA-Z0-9\s.\-_']+$", $data)) { echo "Valid text"; } else { echo "Not valid text"; } I'm running PHP 4.34 on a windows pc. This function is new to me, any help would be appreciated.

[PHP] Bad characters in a text field

2003-12-12 Thread Manuel Ochoa
I have a form with a "text area" that when submited, get stored in a "text" type field of a MySQL database. Occasionaly some of our users copy data from a DOS program and paste it in the text area which results in unwanted characters getting stored in the text field. What function can I use to s

[PHP] Internet Explorer toolbar

2003-03-27 Thread Manuel Ochoa
Is there any way of using php to launch a new browser without the IE toolbars?

Re: [PHP] File upload problem

2003-02-18 Thread Manuel Ochoa
['tmp_name'], "files/".$_FILES['imagefile']['name']) or die ("Could not copy"); echo "Name: ".$_FILES['imagefile']['name'].""; } else { echo ""; echo "Could Not Copy, Wrong Filetype (".$_FILES['imagefile']['name'].")"; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ~ Manuel Ochoa ~ Seven days is too long to wait for a gun!

[PHP] Advice on uploaded files

2003-01-28 Thread Manuel Ochoa
I writting a php program for a small insurance company and they want to receive uploaded digital photos. Should I store the photos in a mysql database or in a directory on the hard drive? If you have experience with this any advice would be appreciated.

[PHP] PHP complied code

2003-01-02 Thread Manuel Ochoa
I recently read a book on PHP and the author breifly said that if you compile the PHP code it would improve the performance. Is there a way to compile the code?

Re: [PHP] accelerator and Apache 2

2003-01-02 Thread Manuel Ochoa
I recently installed the Zend Optimizer and noticed an improvement in preformance. I'm running Windows .NET Enterprise Server 2003 PHP 4.3.0 as a module Apache 2.0.43 Go to www.Zend.com Jochen Kaechelin <[EMAIL PROTECTED]> wrote:Is there a free php accelerator out there which runs under Apach

Re: [PHP] case statement?

2002-12-19 Thread Manuel Ochoa
Yes, It's called "SWITCH" Just go to www.php.net and lookup "switch" in the function list Max Clark <[EMAIL PROTECTED]> wrote:Hi- I was wondering if php had a case function? Instead of building a large if/elseif/else block I would like to do a case $page in (list). Thanks in advance, Max

Re: [PHP] validate date

2002-12-19 Thread Manuel Ochoa
Here is a funtion that I use. A user can enter a date in any of the following ways: 01 01 03 01-01-03 1-1-03 01-1-2003 1-01/03 1/1 03 you get the idea... This function will standardize the date and make sure it's valid. If invalid it returns "ERROR" function fixdate($data){ $aux[0]=""; $aux[1]

[PHP] Getting the username

2002-12-19 Thread Manuel Ochoa
I'm developing an Intranet at my company and was wondering if there is any way to get the username from someone who is already logged into a Windows network?

[PHP] Mail Error

2002-12-13 Thread Manuel Ochoa
I have a Windows server running Apache 2 and PHP 4.3 I got the following error while using the mail() function: Warning: mail() [function.mail]: SMTP server response: 550 User not local. We don't relay in C:\Apache2\htdocs\mymail.php on line 22 Any ideas?

[PHP] Help with session variables

2002-12-03 Thread Manuel Ochoa
I'm running PHP 4.3 on a Windows .net server with Apache 2. Please look at the following code as I cannot figure out what I'm doing wrong. Page1. session_start(); session_register("step"); $step=1; header("location: page_A.php"); Page_A. session_start(); extract($_SESSION); $step=2; hea

[PHP] Need email solution

2002-11-26 Thread Manuel Ochoa
I'm setting up a Windows 2000 server with Apache, PHP and MySQL. I also need to setup email service for 1 domain name. I'm looking for any suggestions on SMTP software.

[PHP] Undefined variable: PHP_SELF

2002-08-15 Thread Manuel Ochoa
I keep getting "Undefined variable: PHP_SELF" when using the following: Global variables are off... What am I doing wrong?

[PHP] phpMyadmin with global variables off

2002-08-15 Thread Manuel Ochoa
I just installed phpMyadmin and I'm getting a message that I have an undefined variable. Is this because I have global variables off? Or in other words, should this program work the same regardless of whether global variables are on or off?