Hi,
Sunday, April 25, 2004, 3:15:25 PM, you wrote:
AB> ok sorry but since i never used preg_* before i dont quite get what some of
AB> this stuff means. i looked at the doc page for it but it doesnt make mention
AB> at all of what \d, \w, \s or any of those things mean... i only assume that
AB> \
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
works fine, except the script doesn't appear to receive any of the query
string information if that page has a query string on it...
an example would be something li
Hi all,
ok, this may be a dumb question, but I have a page that has server side
includes that include a php script like this :
works fine, except the script doesn't appear to receive any of the query
string information if that page has a query string on it...
an example would be something li
php-general Digest 25 Apr 2004 05:14:04 - Issue 2725
Topics (messages 184527 through 184545):
Re: PHP5 bloats the code
184527 by: Johannes Reichardt
184529 by: Marek Kilimajer
184531 by: Mark Charette
184533 by: Marek Kilimajer
184535 by: Johannes Reic
[snip]
$phone = '1234567890';
$newphone = preg_replace('/(\d{3})(\d{3})(\d)/','(\1)\2-\3',$phone);
echo $newphone.'';
--
regards,
Tom
[/snip]
ok sorry but since i never used preg_* before i dont quite get what some of
this stuff means. i looked at the doc page for it but it doesnt make mention
at
Hi,
Thx ur help Richard , but ur method doesn't work.
However, when I switch to the PHP5 RC1, it works!~~
I use the recommonded php.ini setting.
my previous version is 4.3.6.
I really love PHP 5! :)
Strongly suggest anyone who uses COM switch to PHP 5.
Hello Steven,
Saturday, April 24, 200
Hi,
Sunday, April 25, 2004, 11:17:16 AM, you wrote:
AB> hi...
AB> i have a string i want to pull out of a database (mysql). the column name is
AB> Phone1 and it is a 10 digit phone number. the raw string coming out of the
AB> table column would look like this: 1234567890
AB> what i want to do is
hi...
i have a string i want to pull out of a database (mysql). the column name is
Phone1 and it is a 10 digit phone number. the raw string coming out of the
table column would look like this: 1234567890
what i want to do is format the string on display like this: (123)456-7890
but dont quite kno
Hello
I am having a major prolem when compiling PHP5the problem is new,
and I have never had it before. I have tried compiling on to seperate
dists og Linux, Debian testing and Slackware 9.0, but the error persistes.
The output I recieve is:
/usr/local/include/unix.h:222: error: parse erro
Thx Curt!
Intruder Consulting
Anton Krall
Director General
[EMAIL PROTECTED]
tel: 5233-9281
mobile: 044-55-1320-8717
IM: [EMAIL PROTECTED]
www.intruder.com.mx
%-Original Message-
%From: Curt Zirzow [mailto:[EMAIL
* Thus wrote Anton Krall ([EMAIL PROTECTED]):
> Guys.
>
> Im doing a small php auth system and I was wondering, how can avoid having
> to do a form to pass the user and pw to the php scripts and just use the
> popup auth windows on IE and NS? do you remember the names of the vars that
> get passe
Anton Krall schrieb:
Guys.
Im doing a small php auth system and I was wondering, how can avoid having
to do a form to pass the user and pw to the php scripts and just use the
popup auth windows on IE and NS? do you remember the names of the vars that
get passed thru that popup or how can I invoke
> I just tested it and yes, the Michal function runs on Windows and Linux.
> Just must write the path in the proper format for the OS you're using.
Holy smokes, that's good news. :) Spreading dis-information is my price
for not having the first clue about windows.
---
Guys.
Im doing a small php auth system and I was wondering, how can avoid having
to do a form to pass the user and pw to the php scripts and just use the
popup auth windows on IE and NS? do you remember the names of the vars that
get passed thru that popup or how can I invoke it?
Thx!
--
PHP
Hi Marek,
actually this behaviour is "too critical" since there are many cases
where "compliant code" is not as well as much more simpler code. reminds
me on the w3c standards that are so high that some things simply dont
comply if you want them ;)
just a warning would be way better.
- Johann
* Thus wrote Andy B ([EMAIL PROTECTED]):
> does anybody have any idea why this message keeps coming up every time i
> send a msg to the list?? im sort of confused now
I've gotten so used to them now, that I consider them receipts that
my messages have been posted to everyone :)
Curt
--
"I used
Mark Charette wrote:
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Well, what I always know about my variables is if they are arrays or
scalar ;) And I don't consider warning to be much nicer then error
Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the
type passed t
Though this isn't stricly a PHP question - here we go:
It sounds as if IIS didn't really go away...
There's a nice utility out there that lets you know what ports are
active and in use ...
It's called Active Ports (duh!) and is a small download from
http://www.ntutility.com (section /freeware.htm
> From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
> Well, what I always know about my variables is if they are arrays or
> scalar ;) And I don't consider warning to be much nicer then error
Hmmm ... my current methods and functions in PHP 4.x oftentimes adapt to the
type passed to them since PHP
I've been running IIS for a while now and I'm really sick of it and all it's
security flaws. I decided today to upgrade to Apache, so I download the msi
from the Apache website. I install it, but once it tries to install it as a
service onto my XP Pro box, it gives me an error telling me that port
Curt Zirzow wrote:
Here is the offending situation:
/* E_NOTICE: undefined index, returns false */
unset($a);
echo is_array($a['foo']['asdf']);
/* returns false */
$a = 'asdf';
echo isset($a['foo']['asdf']);
/* returns false */
$a = array('foo' => 'asdf');
echo is_array($a['foo']['asdf']);
/* E_
That may be the exact problem. I was not figuring that one out. Thi is my
fopen and XML parser code:
$xml_parser = xml_parser_create();
xml_set_element_handler($xml_parser, "startElement", "endElement");
xml_set_character_data_handler($xml_parser, "characterData");
if (!($fp = fopen($uFile,"rb")))
Hi Curt,
thank you for pointing this one out. Who are the "php internals" and how
could i contact them? This issue was rejected as bug recently.
- Johannes
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]):
I just installed php5 (finaly :-)) and it does not throw any error nor
warning. I th
According to historical records, on Sat, 24 Apr 2004 17:49:42 +0200 Torsten
Roehr wrote about "[PHP] Re: Microsoft Update and how its done question":
>"Anton Krall" <[EMAIL PROTECTED]> wrote in message
>news:!~!UENERkVCMDkAAQACABgAyt+Udpm8KEiSEdKfabIEWMKA
>[EMAIL PROTECTED]
Travis Low wrote:
Break it up a little. Try something like this:
$title = preg_replace( "/.*/i", "", $file_text );
$title = preg_replace( "/.*/i", "", $title );
My title one worked, but I like your idea. I started to write that you
were all flip-flopped on your title example, until I realized
"Anton Krall" <[EMAIL PROTECTED]> wrote in message
news:!~!UENERkVCMDkAAQACABgAyt+Udpm8KEiSEdKfabIEWMKA
[EMAIL PROTECTED]
> Guys.. Ive been wondering this.. when you visit microsofts update sites,
if
> you click on look for updates, it loads something into your computer, an
Guys.. Ive been wondering this.. when you visit microsofts update sites, if
you click on look for updates, it loads something into your computer, an vb,
activex or whatever, and looks into your computer for some stuff to update,
then it download and installs it... all showing nice windows, process
Because the Javascript onclick event runs in the client browser, you could call a php
file that has and runs a particular php function.
>> Is it possible to call php function in the onclick event ?
>>
>>REgards,
>>Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
* Thus wrote Marek Kilimajer ([EMAIL PROTECTED]):
> I just installed php5 (finaly :-)) and it does not throw any error nor
> warning. I think what you see is Notice, so the behavior did not change.
Here is the offending situation:
'asdf');
echo is_array($a['foo']['asdf']);
/* E_ERROR Invalid
I just tested it and yes, the Michal function runs on Windows and Linux.
Just must write the path in the proper format for the OS you're using.
Regards,
Jordi.
Matt Palermo wrote:
Will this work on both a Windows and Unix server?
"Michal Migurski" <[EMAIL PROTECTED]> wrote in message
news:[EMAI
I just installed php5 (finaly :-)) and it does not throw any error nor
warning. I think what you see is Notice, so the behavior did not change.
Johannes Reichardt wrote:
Hi there,
i don´t know if this is the right place to ask but since there are a lot
of cracks around i thought i throw this i
According to historical records, on 24 Apr 2004 17:41:14 +0530 gowthaman
ramasamy wrote about "[PHP] mouse over problem on php":
{snip}
>2)even if i hyperlink the text with title attribute... only the text
>before the first space (the very first word) is displayed. Not the
>entire sentence.
Usin
gowthaman ramasamy wrote:
hi list ,
[snip]
I use .. and have two
[snip]
Try enclosing $display betwen " like:
echo ' ... ';
Regards ...
I do not agree about it's a Javascript issue, the title attribute is an
standard HTML one. The error possibly was in the PHP code not passing
the stri
Because someone that's subscribed to the list has a full mailbox ... I get
it too ... all the time ... just like the address harvesters masquerading as
banks ... "Advance Credit Suisse Bank" <[EMAIL PROTECTED]> and
"Information Desk" <[EMAIL PROTECTED]>
Rene
According to historical records, on S
Same here ... I only initialize variables where's there any point to it ...
like the booleans I use for error checking ... all the others are normally
never initialized
Rene
According to historical records, on Fri, 23 Apr 2004 17:15:58 -0400 Travis
Low wrote about "Re: [PHP] Scripting practi
Sure you can :) ... I've been doing it for a very long time now ... works
alot better than FAT32 actually ... much faster...
The programs don't care about the file system, that's for the OS to deal
with. Only pure DOS programs have problems with the NTFS ... for all other
programs they can't see w
I am very sorry for that. I am very sorry i bugged you all. anyway
thanks for the hints ...
thanks a lot
>
--
Ra. Gowthaman,
Graduate Student,
Bioinformatics Lab,
Malaria Research Group,
ICGEB , New Delhi.
INDIA
Phone: 91-9811261804
91-11-26173184; 91-11-26189360 #extn 314
--
PHP Gen
[EMAIL PROTECTED] wrote:
Hi
I had a problem with what my host called "a spate of insecure PHP
applications being used to upload proxying applications" which I think has
been solved, however I've just spotted this when trying to validate my
HTML:
The HTML validator wants the to be within the . P
gowthaman ramasamy wrote:
hi list ,
Hi. This has nothing to do with PHP.
In the web page, i display different bars (actually tables with single
column, with cellpadding=1 and color=xxx) based on the information
parsed from MySQL database. I, now want to display more information by
mouse over when
Hi Marek
Thanks for the response
Two things you should notice is my declaration of the constructor as
private and the $ConfigSettings variable as static. This class is
designed in such a way that it can never be instantiated, preventing
loading the configuration file twice and possibly having
try javascript
- Original Message -
From: "gowthaman ramasamy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 24, 2004 8:11 AM
Subject: [PHP] mouse over problem on php
> hi list ,
> In the web page, i display different bars (actually tables with single
> column, with
This is more of a Javascript/Style Sheets question than anything else. Try
your luck on a JS/CSS mailing list.
Regards, Torsten
"Gowthaman Ramasamy" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi list ,
> In the web page, i display different bars (actually tables with single
> c
hi list ,
In the web page, i display different bars (actually tables with single
column, with cellpadding=1 and color=xxx) based on the information
parsed from MySQL database. I, now want to display more information by
mouse over when ever user moves the cursor over the bar(actually single
cell tab
Noel Da Costa wrote:
Hi,
Anyone know what might stop the $PATH_INFO variable from working? I
developed a nav system using this which works on the test server, but not on
the live server. I'm guessing this is something to do with the way PHP
(4.2.2) and Apache (2.0) were compiled on the live serv
Hi
I had a problem with what my host called "a spate of insecure PHP
applications being used to upload proxying applications" which I think has
been solved, however I've just spotted this when trying to validate my
HTML:
The HTML validator wants the to be within the . Problem
is, I didn't put
Hi
I had a problem with what my host called "a spate of insecure PHP
applications being used to upload proxying applications" which I think has
been solved, however I've just spotted this when trying to validate my
HTML:
The HTML validator wants the to be within the . Problem
is, I didn't put
Hi
I had a problem with what my host called "a spate of insecure PHP
applications being used to upload proxying applications" which I think has
been solved, however I've just spotted this when trying to validate my
HTML:
The HTML validator wants the to be within the . Problem
is, I didn't put
does anybody have any idea why this message keeps coming up every time i
send a msg to the list?? im sort of confused now
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Andy B" <[EMAIL PROTECTED]>
Sent: Saturday, April 24, 2004 7:17 AM
Subject: NDN: [PHP] php/apache/mysql on ntfs
>
hi...
we are upgrading test servers to xp home and want to know if its possible to
run php/apache/mysql and all that sort of stuff on ntfs or does the servers
have to run fat32??
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"Johannes Reichardt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there,
>
> i don´t know if this is the right place to ask but since there are a lot
> of cracks around i thought i throw this in here. actually i am using
> typo3 (www.typo3.org) a full-blown, extendable cm-framew
Hmm, this will certainly slow down PHP5 acceptance. I cannot imagine a
hosting company that will upgrade to PHP5 and break so many client's
applications.
Johannes Reichardt wrote:
Hi there,
i don´t know if this is the right place to ask but since there are a lot
of cracks around i thought i th
Hi there,
i don´t know if this is the right place to ask but since there are a lot
of cracks around i thought i throw this in here. actually i am using
typo3 (www.typo3.org) a full-blown, extendable cm-framework that is
based on php. so here is the problem:
typo3 very often uses a syntax like
I'm not sure if it will help but do't define the magic functions as
public static, use just:
function __get(...)
The function is not public anyway, as it should no be called directly.
And to my knowledge self:: references a class, not an object. You should
use $this-> instead.
David Goodlad s
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 f
Hi Pambos,
you can use the function date in this manner:
date("YmdGis");
because the type TIMESTAMP has the following format:
MMDDHHMMSS, where:
=year like 2004
MM=month like 04
DD=day like 24
HH=hour like 10
MM=minutes like 24
SS=seconds like 33
in this case date("YmdGis"); has the out
hi...
the reason that mail() wont work on windows without an smtp server (outgoing
mail server) is because normally windows doesnt have a mail server
installed. the default smtp settings in php.ini usually is for *nix systems
(that is if it is even set).
it is very easy to fix:
go into c:\windows
56 matches
Mail list logo