this also works:
$st1 = abc;
$st2 = abc;
if ($st1 != $st2) {
die(Death);
}
-Original Message-
From: Steve [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 6:39 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] How to check aBc different from abc ?
$st1 = abc;
$st2 =
How do I continue a line of code to the next line? I like to keep my lines
of code to about 60 characters in width then wrap to the next line. Is this
possible with lines of PHP code?
Thanks,
Mike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
I hate to keep asking regex stuff,
but it is really evasive for me..
I'm pulling phone numbers out of a DB
in the format of 1234567890, I would
like to format them like (123) 456-7890
or something else that at least breaks them
up a bit.
any help is appreciated,
Thanks,
Jerry Lake
Interface
it doesn't matter. the thing in php that separates lines (actually commands)
is the -- ; semicolan.
In theory you could put all your code on one line.
Mike Maki [EMAIL PROTECTED] wrote in message
9dsbhr$52j$[EMAIL PROTECTED]">news:9dsbhr$52j$[EMAIL PROTECTED]...
How do I continue a line of
Jerry, try sprintf(). Here's an example:
sprintf((%s) %s-%s, substr($GLOBALS[appPhoneHome], 0,
3),substr($GLOBALS[appPhoneHome], 3, 3),substr($GLOBALS[appPhoneHome],
6, 4))
Kirk
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 4:48 PM
To:
well, if all numbers are *always* 10 digits long,
use this
$old = 1234567890;
$new = preg_match('/(\d{3})(\d{3})(\d{4})/', $old, $matches);
print (. $matches[1] .) . $matches[2] .-. $matches[3];
prints (123) 456-7890
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
if they all have the same format, then you can do this (don't need regexs)
$number = '1234567890';
$formatted_number = '(' . substr($number,0,3) . ') ' . substr($number,3,3) .
'-' . substr($number,6);
-jack
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
then people would think you're a perl programmer ;)
-Original Message-
From: phpman [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Newbie-Continue Line of Code
In theory you could put all your code on one line.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Thanks folks, much better now.
Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com
-Original Message-
From: Johnson, Kirk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 3:52 PM
To: [EMAIL
Phpman, Thanks for the quick reply, Wow, guess I should have tried that
before I asked. What a great forum. Quick responses! Thanks again.
phpman [EMAIL PROTECTED] wrote in message
9dsblb$9i1$[EMAIL PROTECTED]">news:9dsblb$9i1$[EMAIL PROTECTED]...
it doesn't matter. the thing in php that
Hello Guys,
i'm with problems
first i try to add a value like 8.55 into my sql data base that was set
up to DOUBLE (10,0) and isn't work... i don't know how this work... but i'm
here to ask for someone explain me.
well... i did with varchar to add this value as i want to..
do i have a
Or, try count() in the sql statement..
?
$sql = SELECT count(email) from table WHERE email = '$email';
$result = @mysql_query($sql);
if (mysql_result($result, 0, count(email)) == 0) {
echo No good.;
}
?
I think that's faster than:
?
$sql = SELECT email FROM table WHERE email =
Eric Knudstrup [EMAIL PROTECTED] schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I am having an issue with 4.0.5 where the following code snippet:
$orig = imagecreatefromjpeg($tmp);
echo 'orig x: ' . imagesx($orig) . ' orig y: ' .
imagesy($orig)
.
Hi,
I'm having a problem with a file upload.
My code looks as follows :
?
include(config.ini);
include(funcs.php3);
if(empty($Image1)) {
?
center
table cellpadding=2 cellspacing=0 border=1
trtd bgcolor=? echo $main_color ? width=100Select the file you wish
to upload.
brIt must be less than
Hi,
Problem: I register a session variable and assign a value to it. The
value is lost when I try to access it from a different webpage later.
Must I use custom session_save_handler functions if I want to extend the
life of a variable's value from Webpage to Webpage?
Details:
I'm using PHP's
I might have the same problem with PHP 4.0.5 (win2k). Some of the images
from my Kodak DC-260 digital camera, are not recognized correctly by
getimagesize for some reason..
Example:
?php
$imagehw =
GetImageSize(http://maasdelta.eve-software.com/foto/kinderspelen/P0007811.J
PG);
I may have a variable that changes page to page, but once it loads up, it
never needs to be changed on that page.
So my question is should i just do:
define(myvar, 3);
OR:
$myvar = 3;
does defining it make that much of a difference (if i have several of these
variables that could be defined
chmod the file or directory so that php can access it
it doesn't run as you!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
In article 9dsknt$fb1$[EMAIL PROTECTED],
[EMAIL PROTECTED] (Noah Spitzer-Williams) wrote:
So my question is should i just do:
define(myvar, 3);
OR:
$myvar = 3;
does defining it make that much of a difference (if i have several of these
variables that could be defined instead).
Ok, I'm only wondering this because I'm tryin to decrease the load time
significantly because each page has to go through a lot of stuff before
they're loaded and with the volume of hits it gets, i need anything to help
out
- Noah
CC Zona [EMAIL PROTECTED] wrote in message
9dsm85$kgl$[EMAIL
Rafael,
Couple of things ... see below. I'm doing this without checking the MySQL
docs, so validate this against them.
At 08:22 PM 5/15/01 -0300, Rafael Faria wrote:
Hello Guys,
i'm with problems
first i try to add a value like 8.55 into my sql data base that was set
up to DOUBLE (10,0)
I am trying to get the first name and Last name plus the email
address out of the database in a format like this
Richard Kurth[EMAIL PROTECTED];Richard Kurth[EMAIL PROTECTED]
so I can put it in the BCC section of a mail all customer program
What I have below works for getting the
Hi. Are there any known/posssible security issues with PHP using SSL?
I'm trying to figure out if it would be better to user Perl or PHP based
on their security features/flaws. I'm sure there's holes in both, but
which one has the bigger hole...?
Thanks,
Jeff
--
PHP General Mailing List
I'm just trying to create a eregi expression that will evaluate a zip
code... and I cannot get it to work... can anyone assist me with this? --
also, is there a site that shows regular expression examples for checking
fields like, zip codes, phone numbers, etc...
See the following :
Where can I find some free hosting space by an ISP offering PHP.
http://www.faqts.com/knowledge-base/view.phtml/aid/4058/
regards,
philip
On Tue, 15 May 2001, Christian Dechery wrote:
Does anyone knows any good free php/mysql hosting other than www.f2s.com??
both are cool.
never heard of any holes as such,
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Jeff [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 11:26 AM
To:
Try this instead:
$sql =
SELECT
CONCAT(fname, ' ', lname, '', email, '') AS str_email
FROM
customers
;
and then the rest of your code..
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
hellos,
how can we know the referer link is from an email
client like outlook ? i have tried this, and the
$HTTP_REFERRER is empty.
thanks
ers
__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
Hello.
I just registered to the listserv about two weeks (my 1st time typing here).
I'm just curious, if you don't mind me asking. I'm just trying to learn
more. But, would someone list any scenarios in which one would want to
create directories recursively by using php?
Thanks in advance.
Hello Maxim,
This works great except that it does,t print the email if I take the
'' '' off then it does but I need those
Tuesday, May 15, 2001, 7:58:28 PM, you wrote:
Maxim Maletsky Try this instead:
Maxim Maletsky $sql =
Maxim MaletskySELECT
Maxim Maletsky CONCAT(fname, ' ',
because '' is an 'lt;',
look at the source of your HTML file when you are outputting these emails
for testing. or do htmlentities();
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
That is a javascripts job.
Look at extreeme tracking's code. They have that.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: Eris Ristemena [mailto:[EMAIL PROTECTED]]
Sent:
Hello Maxim,
That is neat
Tuesday, May 15, 2001, 8:44:57 PM, you wrote:
Maxim Maletsky because '' is an 'lt;',
Maxim Maletsky look at the source of your HTML file when you are outputting these
emails
Maxim Maletsky for testing. or do htmlentities();
Maxim Maletsky Sincerely,
Maxim
I know I've seen one before, and before I go write my own version, does
anyone know of a PHP script that echoes the uptime of a server (Linux) in
days,hour,minutes, etc?
Thanks!
Ryan Christensen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
exec(uptime);
or
system(uptime);
Tyler
-Original Message-
From: Ryan Christensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 11:43 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Uptime script?
I know I've seen one before, and before I go write my own version, does
anyone
Can't help you with your code but, you may want to check out the snoopy
class at Sourceforge.net.
http://sourceforge.net/projects/snoopy/
It uses ssl and cURL. Works pretty well.
Kevin Leavell
Leavell Digital Design Inc.
P 406.829.8989
C 406.240.4595
--- -Original Message-
--- From:
I guess you got the small package of PHP 4.0.5, you can go to www.php4win.de
or www.php.net and download the php crypt extension and modifiy the php.ini
to enabled it.
-elias
Brandon Orther [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hello,
I just
good question...I might need an answer when you get one.
-elias
Johannes Schmiderer [EMAIL PROTECTED] wrote in message
9ds7le$caa$[EMAIL PROTECTED]">news:9ds7le$caa$[EMAIL PROTECTED]...
Is there no way to access the $x within the inner function:
function outer()
{
$x = 50;
function
On 14-May-01 Mattias Segerdahl wrote:
Hi,
I was wondering if someone could help me explain how Microsoft OUTLOOK knows
which emails that it has downloaded from the server, as far as I know, there
isn't any way of marking the email in a pop3 queue that they have been
either read or
that's great :)
From: scott [gts] [EMAIL PROTECTED]
then people would think you're a perl programmer ;)
In theory you could put all your code on one line.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
101 - 140 of 140 matches
Mail list logo