Hey,
Is there any way one can get the name tags for a form?? other then
explicitly defining the tags in an array or any such thing. I just want to
be able to get the name tags and there values dynamically...
Regards,
Kunal Jhunjhunwala
--
PHP General Mailing List (http://www.php.net/)
To unsubs
On Fri, 11 Jan 2002, Rasmus Lerdorf wrote:
> Google for something called PostToHost I wrote ages ago. Lots of
> variations of that around. Basically you just fsockopen() to the site in
> question and fputs() your request and POST data and then fgets() the
> result.
With one variation being send
Hi All,
Thank you very much for all the responses to my SOS. Yoda has made contact.
P. Westover
"P. Westover" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> It all started when I wanted to create a photography competition and forum
> on my web s
Hi Gaylen,
> Please visit my web site at href=http://www.mysite.com>www.mysite.com. You will be glad you did!
assumming all link start with www and all word which start
with www must be a link:
$repLink = preg_replace("/ (www[^ ]*) /i",
"\\1",
$m
Hi All,
I am in sql mode today. Two issues that bother me:
1- I had a script"
select user_id, username from users having user_id = max(user_id)
my max user_id = 150 or something, but script kept bringing 122
I fixed the issue by using a select max(user_id) and select username from users whe
php-general Digest 12 Jan 2002 05:57:48 - Issue 1106
Topics (messages 80214 through 80265):
Re: Using PHP to post the contents of an email to MySql database
80214 by: bvr.xs4all.nl
80235 by: Mullin, Reginald
Paging using arrays Question
80215 by: Lerp
Re: removing
JAVASCRIPT VERSION
mytitle
function multiply(x){
var myresult = 2 * x;
document.write(myresult);
}
PHP VERSION
mytitle
if($mybutton){
$myresult = 2 * $mybutton;
pr
On Saturday 12 January 2002 11:30, Mehmet Kamil ERISEN wrote:
> Hi,
> If I have en ENUM column in a mysql table, can I leverage
> this through PHP to restrict user entry with a list?
> Other option that I have is to create a lookup table, or
> use an array.
You'll need to adapt this for your own
on 1/11/02 8:20 PM, Gaylen Fraley at [EMAIL PROTECTED] wrote:
> Can someone recommend a good tutorial
> or book on this subject?
Mastering Regular Expressions
Jeffrey Friedl
O'Reilly & Associates
ISBN 1-56592-257-3
-- mike cullerton
--
PHP General Mailing List (http://www.php.net/)
To uns
how to set cookies in win98 using PWS ?
if i set the session of php.ini, where is the cookies setting ?
Mpu Strees
--
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
Hi,
If I have en ENUM column in a mysql table, can I leverage
this through PHP to restrict user entry with a list?
Other option that I have is to create a lookup table, or
use an array.
=
Mehmet Erisen
http://www.erisen.com
__
Do You Yahoo!?
Se
I have need to be able to replace text within a string to turn it into a
link. In other words, I might have a phrase lik:
"blah, blah, blah, please visit my site at www.mysite.com. blah,
blah,blah".
I need to have the string converted to "blah, blah, blah, please visit my
site at http://www.my
Google for something called PostToHost I wrote ages ago. Lots of
variations of that around. Basically you just fsockopen() to the site in
question and fputs() your request and POST data and then fgets() the
result.
-Rasmus
On Fri, 11 Jan 2002, Jeremy Reed wrote:
> Cold Fusion, as far as I'm c
Cold Fusion, as far as I'm concerned, stinks. However, I have been involved
in porting a website from Cold Fusion to PHP and during this
transmogrification, I've come across something I'm not sure how to emulate
in PHP. Perhaps if there are any CF/PHP gurus out there, they can help me
out.
The
Hi,
It all started when I wanted to create a photography competition and forum
on my web site. I searched and searched for a program (script) on the web
that would help me.
I found one and paid $125.00 for it, but I am very unhappy with the way it
works. It is not very user friendly and I'm lo
Hi.
I´m trying to develop a search engine where users could search not only individual
words, but also phrases enclosed by "", but I´m having trouble to build the function
to recognize each phrase and individual word from a variable sent with html form.
Did anybody make something like this? Ca
This is probably more of an HTML question, but...
I would like to have the ability to upload files onto a site, however using
the normal HTML results in a somewhat disgusting
looking control which I cannot seem to get to fit into my site's theme.
Is there a better way - remembering of course th
I am looking for a php script that allows me to upload a file via a browser,
and the generates an automatic link on a predefined page.
Is that possible?
Regards
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
On Friday, January 11, 2002, at 05:42 PM, Nick Wilson wrote:
> That's not it. Your first $result is a resource indicator (container for
> results) so if you re-assign it (put another value into it) it becomes
> useless as your while statement depends on it.
(This may be redundant, but I'm hopi
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 11-01-02 at 23:39
* Erik Price said
>
> EXCELLENT!
> It worked perfect.
> So $result can't be used twice -- I wonder if it somehow is altered by
> the mysql_fetch_array() that is performed upon it.
That's not it. Your first $result is a
Because, as a dope, I forget that you can invert IF statements like
that -- you're right, I'd rather do that than mess with the array.
Although the feedback on unset($arrayname['index']) was extremely useful
knowledge! Thank you everyone.
Erik
On Friday, January 11, 2002, at 12:31 PM, Rasm
EXCELLENT!
It worked perfect.
So $result can't be used twice -- I wonder if it somehow is altered by
the mysql_fetch_array() that is performed upon it.
Thanks Nick.
On Friday, January 11, 2002, at 05:23 PM, Nick Wilson wrote:
> I'll most likely be corrected (I just joined the list to brush u
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 11-01-02 at 23:08
* Erik Price said
> I am curious if using the same mysql_query() function twice causes some
> kind of problem.
>
> It seems that if I use
>
> $result = mysql_query($sql, $db);
> if (mysql_fetch_array($result)) {
>
Hi,
I am currently developing a site which makes use of SSL and sessions.
However, sometimes when I submit
form data (from an SSL page to another SSL page on the same server), I get
an error saying "This page
contains both secure and unsecure items. Do you want to display the
nonsecure items" (I
* Brian Williams ([EMAIL PROTECTED]) [Jan 11. 2002 16:46]:
> > So you configured PHP --with-iconv? My guess is that you'll need to
> > include the path to your libraries for iconv in /etc/ld,so.conf then run
> > ldconfig.
> I do not have /etc/ld.so.conf on my system, but I do have
> /usr/compat/
PHP is entirely server-based. So when you load this page into your
browser, all of the PHP is being parsed BEFORE it ever loads into the
browser. So the function will be executed even before the page loads.
Do it in JavaScript if you want it to be done in the browser. What you
have written
It seems that you are saying that not using quotes is bad (first), but
then later you show that omitting the quotes does not result in an error.
Or are you saying that the quotes can be omitted if the array element is
being used in a string (between quotes), but generally the quotes around
the
After lots of trial and error I traced the problem back to a missing
browscap.ini, I commented out that line in php.ini and it worked
fine. I guess it was causing php to think the it wasn't dealing with
a browser so it sent the headers differently (or something)
thanks to everyone.
- Mark
--
P
Many people use mail clients that don't do any sort of threading to follow
what's going on on this list; I use Eudora, personally, when in Windows,
and the Mozilla mail client when I'm in Linux. It was, quite literally,
years before someone finally pointed out to me that in a mail reader or a
I am curious if using the same mysql_query() function twice causes some
kind of problem.
It seems that if I use
$result = mysql_query($sql, $db);
if (mysql_fetch_array($result)) {
while ($row = mysql_fetch_array($result) or die("You lose. No data
fetched.")) {
// print some dat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 11-01-02 at 22:57
* J Smith said
>
> PHP is a server-side language (i.e. Perl when used with mod_perl), not a
> client-side language (i.e. JavaScript). All of the processing is done on
> the server BEFORE it is sent to the user. Therefo
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* On 11-01-02 at 22:48
* Morten Nielsen said
> Hi,
>
> I am rather new to PHP so I hope somebody can help me.
>
> I have a normal button (HTML code). Then I have made a function
>
> function multiply($X)
> {
> return 2*$X;
> }
>
> The b
PHP is a server-side language (i.e. Perl when used with mod_perl), not a
client-side language (i.e. JavaScript). All of the processing is done on
the server BEFORE it is sent to the user. Therefore, you can't call a PHP
function directly from a web page after the user has received it, since al
> So you configured PHP --with-iconv? My guess is that you'll need to
> include the path to your libraries for iconv in /etc/ld,so.conf then run
> ldconfig.
I do not have /etc/ld.so.conf on my system, but I do have
/usr/compat/linux/etc/ld.so.conf
Thanks,
Brian
--
PHP General Mailing List (
Hi,
I am rather new to PHP so I hope somebody can help me.
I have a normal button (HTML code). Then I have made a function
function multiply($X)
{
return 2*$X;
}
The button has an OnClick, which calls my function.
I then writes $X to the screen.
The problem is I dont even have to pres
Well, I did not configure it any particular way.
I just tried to build the mod_php4 port on FreeBSD. I assumed it would
work. Why would the FreeBSD port developers commit something to the stable
release that doesn't work?
Thanks,
Brian
"Brian Clark" <[EMAIL PROTECTED]> wrote in message
200201
> Hi Guys,
>
> I've written the following program to write an email from PHP Standard
> Input to an html file:
>
> **
> ***
> $file = "php://stdin";
> $fp = @fopen($file,"rb");
> if ($fp){
> $contents = fread($fp,file
Hi,
I am currently developing a site which makes use of SSL and sessions.
However, sometimes when I submit
form data (from an SSL page to another SSL page on the same server), I get
an error saying "This page
contains both secure and unsecure items. Do you want to display the
nonsecure items" (I
Hi Everybody,
Has anyone doing it sucefuly? I can compile it. The phpinfo(); call
returns ok! (UCD-Snmp enable) but when I call the snmp functions I got a
SegFault (on PHP-CGI). I already tried with an without
--enable-ucd-snmp-hack, and recompiling the UCD-Snmp packages as told on
the PHP man
one of my biggest problems, which happens here a lot, is that some people
will ask a completely different question (with a different topic header)
under an existing thread rather than starting a new thread. all it takes is
a few minutes to familiarize oneself with the newsreader, but apparently a
Quick tip -- locate and whereis are your friends in the shell. They make
finding executables like php are a snap.
As for emailing from php/cron, it depends on how your system is set up.
Many email servers bounce any emails they receive from IPs that they can't
reverse map or otherwise identif
Hi
I built PHP on an ALPHA running OSF V5.1
I did the install after the make just like i did in the past.
This time, however, when i do:
apachectl start
i get this:
/usr/local/apache/bin/apachectl: 323331 Memory fault
/usr/local/apache/bin/apachectl start: httpd could not be started
There are n
On Friday, January 11, 2002, at 06:05 AM, Ford, Mike [LSS] wrote:
> Incidentally, I've occasionally had problems including a variable name
> containing an underscore in a double-quoted string (e.g. "$num_recs
> records retrieved"), where PHP tries to insert the value of $num
> followed by th
Ben Clumeck wrote:
> When using MySQL to Authenticate users for a specific directory (i.e.
> www.mysite.com/user) how would it know to go to that directory ("/user").
> How would it know to not let someone access a file directory in that
> directory (i.e. www.mysite.com/user/page2.php)?
this
Hola !!!
Tienes que ins oh, sorry. ;-))
You need to install MsSQL support for PHP, by getting the right PHP module
and adding it in your 'php.ini' file see this file for the exact syntax.
Hasta la vista ...
Le Vendredi 11 Janvier 2002 19:14, vania a écrit :
> quiero conectarme con un
quiero conectarme con un servidor sql server 2000
y hasta ahora no he podido. lo intentado con la funcion mssql_connect("server name",
"user name", "contraseña")
y en el browser recibo el siguiente mensaje
Fatal error: Call to undefined function: mssql_connect() in
c:\inetpub\wwwroot\receve\pru
Hi again Michael:
Digging documentation I found out that this behaviour (string and int keys)
is native for mysql_fetch_arrow() (found into the help: 'In addition to
storing the data in the numeric indices of the result array, it also stores
the data in associative indices, using the field names
Hi again Michael:
Digging documentation I found out that this behaviour (string and int keys)
is native for mysql_fetch_arrow() (found into the help: 'In addition to
storing the data in the numeric indices of the result array, it also stores
the data in associative indices, using the field names
Hi again Michael:
Digging documentation I found out that this behaviour (string and int keys)
is native for mysql_fetch_arrow() (found into the help: 'In addition to
storing the data in the numeric indices of the result array, it also stores
the data in associative indices, using the field names
Hi again Michael:
Digging documentation I found out that this behaviour (string and int keys)
is native for mysql_fetch_arrow() (found into the help: 'In addition to
storing the data in the numeric indices of the result array, it also stores
the data in associative indices, using the field names
Hi again Michael:
Digging documentation I found out that this behaviour (string and int keys)
is native for mysql_fetch_arrow() (found into the help: 'In addition to
storing the data in the numeric indices of the result array, it also stores
the data in associative indices, using the field names
> > $sql = "SELECT * FROM tablename WHERE
> > tablename.column=$_GET['criteria_integer']";
> >
> > but unfortunately, this isn't working.
On a related note, outside of strings one should always surround keys with
quotes, so:
$arr = array('a' => 'apple', 'b' => 'banana');
print $arr['a'];
On Saturday 12 January 2002 01:49, [EMAIL PROTECTED] wrote:
> It happens a lot here that people ask questions that could easily be found
> by browsing the manual or searching the PHP FAQ and website.
>
> Some people really should read the FAQ and manual (php.net) when they have
> a question and pr
Erik Price wrote:
> what function is used to remove an array element from an array? Like
> array_pop(), except one by which I can refer to the element by its
> associative index rather than just the last element of the array.
>
>
> For more detail with what I'm doing, I have two versions
It happens a lot here that people ask questions that could easily be found
by browsing the manual or searching the PHP FAQ and website.
Some people really should read the FAQ and manual (php.net) when they have a
question and preferrably search an archive of this list (deja.com).
It really wo
> what function is used to remove an array element from an array? Like
> array_pop(), except one by which I can refer to the element by its
> associative index rather than just the last element of the array.
unset($array['index']);
> echo "\n";
> echo " selected=\"yes\">$div_name\n
Hi there, I have a db with only one table in it called "CONSULTANT". I'm
using sqlServer and would like to do record paging, say 5 at a time. I'm
aware that sqlServer doesn't support the LIMIT statement so I've decided to
do it using arrays.
So I've written the appropriate query statement, manage
on linux, you could simply open these 'files':
/dev/stdin
/dev/stdout
for windows, and for portability, PHP provides the following dummy's,
which can also simply be used by fopen() :
php://stdin
php://stdout
bvr.
On Fri, 11 Jan 2002 12:19:05 -0500, Mullin, Reginald wrote:
>Hi Guys,
>I r
php-general Digest 11 Jan 2002 17:21:42 - Issue 1105
Topics (messages 80161 through 80213):
Re: Can PHP access BIOS information?
80161 by: Jason Bell
80211 by: Austin Gonyou
Re: Piping phpinfo();
80162 by: Rasmus Lerdorf
80166 by: Vaccius ITsec
80167
A quick question:
what function is used to remove an array element from an array? Like
array_pop(), except one by which I can refer to the element by its
associative index rather than just the last element of the array.
For more detail with what I'm doing, I have two versions of a
listbox
Hi Guys,
I recently read an email entitled "Can a PHP program receive an e-mail and
write it to a file???" in the PHP archives (see
http://marc.theaimsgroup.com/?l=php-general&m=97986044121868&w=2) and wanted
to ask a follow up question. I'm a novice programmer, new to PHP, and
unfamiliar with th
It might be possible with php of you could write a function that access
lm_sensor type info. Just a thought.
On Fri, 2002-01-11 at 00:03, Jason Bell wrote:
> as far as I know, PHP can't do that itself, however. if you had a
> commandline utility that did the BIOS read for you, you should be
I think that he uses "bytecode" wrongly.
C is not generating a bytecode but asm instead, then translated to machine code.
Bytecode is another thing. Java is bytecoded.
IMO that the question is : "Is there any tool which generates machine code as the C
compiler does? "
AFAIK the encoder first opt
Andrey Hristov wrote:
> Several months ago there were notes on few websites about "phpcompiler".
> AFAIK it is not so good but it is something.
> Last week a man on php-dev said that he starts working on new php
compiler but with different approach - to connect in one thing -
> php4ts.dll, p
Martin Wickman wrote in [EMAIL PROTECTED]:">news:[EMAIL PROTECTED]:
> I dont know what a perpetual-running socket server is, but to have
> a main PHP script execute different functions with the same name I
> guess
I'm thinking about a server that can keep it's connection up &
running, even if
Several months ago there were notes on few websites about "phpcompiler".
AFAIK it is not so good but it is something.
Last week a man on php-dev said that he starts working on new php compiler but with
different approach - to connect in one thing -
php4ts.dll, php.exe, and the source code untouch
Are there any php compilers available for win32?
Can they compile to byte code that the processor like C uses, instead of an
interpreter?
Charles Killmer
IIS 5.0, Windows 2000 Server, PHP 4.1.0
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Try the backtick too.
print "" . `ls -l` "";
Matt Friedman
Web Applications Developer
www.SpryNewMedia.com
Email: [EMAIL PROTECTED]
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Friday January 11, 2002 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] php ex
>Also, the value I set in the ini file for java.library is changed from
>libjvm.so to libjava.so. Is this suppose to happen? I was guessing as to
>what library I should use here, but the error I am getting indicates that it
>can't start the jvm, so this has me worried to. Which library is the corr
If you have file with name "0" , with
while ($file = readdir($dir)) {
it will be casted to false, but this is regular file. Thus !== is used.
Regards,
Andrey Hristov
- Original Message -
From: "mike cullerton" <[EMAIL PROTECTED]>
To: "php-general" <[EMAIL PROTECTED]>
Sent: Friday, Jan
I'm not sure if a resource casted to numeric to be 0 - var_dump() to say :(0) resource
of type
!==flase assures that it is FALSE, not 0.
!== is like != but makes type checking. Frequently used with strpos(). See the memos
there.
There is also available === operator. It is like == but also m
hey folks, hope the new year is treating everyone well.
i was RTFMing yesterday and ran across this piece of code
while (false !== ($file = readdir($handle))) {
which is similar to stuff i've done
while ($file = readdir($dir)) {
so, what am i not catching with my code, and what is really
on 1/11/02 1:35 AM, louie miranda at [EMAIL PROTECTED] wrote:
> Hi, can php execute system commands
> like df, and then print it to html ?
http://www.php.net/manual/en/ref.exec.php
-- mike cullerton
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
Probably
1)You do echo before session_start()
2)You have white space before the opening
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 10, 2002 11:00 PM
Subject: [PHP] session related
> i can't use session, give me an error when use ie 6.
>
> Warning: Cannot send session cookie - headers alrea
i can't use session, give me an error when use ie 6.
Warning: Cannot send session cookie - headers already sent by (output
started at /home/www.apollodisplays.com/public_html/mainpage.php:10) in
/home/www.apollodisplays.com/public_html/mainpage.php on line 29
Warning: Cannot send session cache
Sandeep Murphy wrote:
> hi,
>
> I am running PHPtriad on a win2k machine... when I run phpinfo() it
> displays " XMLACTIVE"
this means that the standart, expat based xml support ist active
>but I keep getting an error "Fatal error: Call to
> undefined function: xmldoc() in C:\apache\htd
Hi,
I want to change a PDF file into the HTML, DOC, TXT...
All programs that I used is not enogh to create a good
document...
- HTML output is not clear enough like original PDF
OR
- Images inside the PDF document has been
> -Original Message-
> From: Neil Freeman [mailto:[EMAIL PROTECTED]]
> Sent: 11 January 2002 12:03
>
> Who's awake today then? :) What I'm trying to do is create variable
> variable arrays and then fill these arrays with values. The problem I
> have though is that the values don't appear
That's done the trick. More coffee for me I think :) Cheers Jason.
Jason Wong wrote:
> On Friday 11 January 2002 20:02, Neil Freeman wrote:
> > Hi there guys,
> >
> > Who's awake today then? :)
>
> Someone isn't :)
>
> > Here's a snippet of the code. Any ideas guys???
> >
> > ...
> > //s
On Friday 11 January 2002 20:02, Neil Freeman wrote:
> Hi there guys,
>
> Who's awake today then? :)
Someone isn't :)
> Here's a snippet of the code. Any ideas guys???
>
> ...
> //store children page_IDs into array for each parent
> $str_array = "menu_array_" . $current_parent_page_ID;
Hi,
If you want some parameters which will be pass in your site, you can
use "session"
.
for example, you have parameters, fooa, foob, fooc, ...
etc..
session_start();
$fooa = 1;
$foob = "sait";
$fooc = "http://ww
Hi there guys,
Who's awake today then? :) What I'm trying to do is create variable
variable arrays and then fill these arrays with values. The problem I
have though is that the values don't appear to be getting stored - as
following the assignment I have outputted a 'sizeof' command which
always
> I want from a Form page to pass a couple of values (fooa, foob, fooc)
> which are not form fields
> when submit button pressed to the submited page...
Use hidden fields:
Valentin Petruchek (aki Zliy Pes)
http://zliypes.com.ua
mailto:[EMAIL PROTECTED]
--
PHP General Mailing List (ht
hi,
I am running PHPtriad on a win2k machine... when I run phpinfo() it
displays " XMLACTIVE" but I keep getting an error "Fatal error: Call to
undefined function: xmldoc() in C:\apache\htdocs\example.php on line 24"
What needs to installed/configured ??
TIA,
sandeep
--
PHP General Mai
Hello everybody
I want from a Form page to pass a couple of values (fooa, foob, fooc)
which are not form fields
when submit button pressed to the submited page...
thanks in advance for your help
simos
Or checkout the sql import facilities offered by your choice of database to 'convert'
the data from log to
db-tbl, then set up your analysis in PHP+SQL separately.
=dn
- Original Message -
From: "Martin Wickman" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 11 January 2002 09:08
Subj
> -Original Message-
> From: Yoed [mailto:[EMAIL PROTECTED]]
> Sent: 10 January 2002 23:01
>
> I never really found the trick to this one yet, and wanted to
> see what you
> guys say is the best methods to call a variable that needs a variable.
>
> Say I have variables called $Var_1_Sta
> -Original Message-
> From: Erik Price [mailto:[EMAIL PROTECTED]]
> Sent: 10 January 2002 15:44
>
> I thought that $_GET[] and $_POST[] could be used in place of regular
> variables... that is,
>
> $sql = "SELECT * FROM tablename WHERE
> tablename.column=$_GET['criteria_integer']";
>
I have been having problems with Segmentation faults when using SNMP
with PHP. This used to work just fine on my Redhat 6.2 box. Appears that
the problem is related to the way the standard Redhat 7.x ucd-snmp RPM
is built. Rebuilding the RPM using the latest software obtained from
http://sourcefor
On Thursday 10 January 2002 19:36, [EMAIL PROTECTED] stuffed this into my
mailbox:
Please note that not all proxies will fill in HTTP_X_FORWARDED_FOR. Some will
obscure it others will not fill it in at all, either due to privacy or to
conseal things.
> > > Okay, thanks. 'Cause I mean, the REM
Hi Sait,
> no characters except for the followings will not be allowed.
> 0-9 a-z A-Z ~ @ # $ % ( ) _ - + = [ ] { } < ? >
if ( ereg("[^0-9a-zA-Z\_\-]", $user_input) ) {
//invalid char detected
}
else {
//input contain only allowed char
}
just add all your valid char in the pattern,
Thank you Michel
You;ve understand correct the question. Thank you for the removing new
keyword
Everything you've said is exact but using following snippet
$b = array('one' => 'bla', 'two' => 'blabla', 'three' => 'blablabla');
while(list($k, $v) = each($b)) {
print "$k - $v";
}
the
Im not sure if "function-backtrace" is the correct word for what I need, so I'll
explain:
If I have for example
then I want to get
array(
[0]=> 'a',
[1]=> 'b',
[2]=> 'c'
)
or something similar. So I want to know, what functions have been called. If you know
perl, the
Louie Miranda wrote:
> Hi, can php execute system commands
> like df, and then print it to html ?
`df`;
shell ("df");
exec ("df");
etc
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
Hi all,
I want a regular expression process such that,
no characters except for the followings will not be allowed.
0-9 a-z A-Z ~ @ # $ % ( ) _ - + =
[ ] { } < ? >
I create a web site with membership. I have a problem. Som
Ken Kinder wrote:
> The $this->children attribute should be an array of (references to) objects.
> I think somehow in the foreach ($this->children as $child) the objects are
> being copied, as $child->validate(); seems not to effect the original objects.
Someone just said you can use
$a = &
Austin Gonyou wrote:
> The real question I suppose is how could I parse this type
> of output into something I could use to make a graph.
>
> Example:
> 12:20:00 PM CPU %user %nice %system %idle
> 12:30:00 PM all 2.17 0.79 0.77 96.27
> Problem is I
Arve Bersvendsen wrote:
> As a small, personal, "enjoy-myself"-project I'd like to run a
> perpetual-running socket server. Problem is; I also want it to be
> self-modifying so I can insert, remove and change functions as the
> server is running.
>
> The problem is; under normal circumstances
Hi, can php execute system commands
like df, and then print it to html ?
thanks,
louie
--
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]
try
$total=((0.416 / $time) * 60) * 60);
$output=number_format($total,2,'.',','); / / uses comma separators between
thousands and a decimal point between the units and tenths.
or
$output=number_format(((0.416 / $time) * 60) * 60),2,'.',','); / / php is
usually forgiving on combined operations.
n
1 - 100 of 101 matches
Mail list logo