Can PHP interface with other programs through DDE?
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.
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
Is there any way of using php to launch a new browser without the IE toolbars?
['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!
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.
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?
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
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
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]
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?
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?
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
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.
I keep getting "Undefined variable: PHP_SELF" when using the following:
Global variables are off... What am I doing wrong?
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?
16 matches
Mail list logo