Andrew Hill,
I would like to thank you very much for your help. I manage to connect to
remote oracle after a week try. The problem was I run apache as nobody and
nobody user does not have priviliege to access ~oracle directory. Now I can
continue with my project.. :)
Jeffrey Iskandar Ahmad
System
Stephan,
Check that there are no html statements or blank lines above the
To: Johan Vikerskog (EMP) <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 12:13 AM
Subject: Re: [PHP] imageJPEG problem.
>
> - Original Message -
> From: "Johan Vikerskog (EMP)" <[EMAIL
Hello !
I am trying to keep my string after including av file.
file1.php:
(accessed with file1.php?id=1)
index.php:
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]
if (ereg('^[a-z][-a-z0-9\._]*[a-z]$', $TestPwd)) {
echo "Good";
} else {
echo "Bad password $TestPwd";
}
should do it.
If you want a case insensitive match, use eregi(...) instead. The
above regexp allows passwords as short as 2 characters. If you want
to, for example, enforce
Whooops, right. HTML after or before picture data doesn't make any sense :)
I checked my a bit older function, which puts out image data correctly
working.
I'm sorry, but I didn't see a big difference to yours...
But as I said before: I don't know what your doing at that lines where you
wrote:
$i
> Oh well, who didn't know me can whether ignore this message or just say
> hi :-)
>
> Cheers Everybody!
> Maxim Maletsky
Welcome back Max
M@
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To conta
On Tue, 25 Sep 2001 17:01, Bård Tommy Nilsen wrote:
> Hello !
>
> I am trying to keep my string after including av file.
>
> file1.php:
> (accessed with file1.php?id=1)
>
> include 'index.php';
>
> function func() {
> echo "buddy";
> }
> ?>
>
> index.php:
> echo "Hello";
> if (function_exists('f
Thats only if i call the index.php file first.
For that i have another solution
if (function_exists('func')) {
call_user_func ('func');
} else {
include 'main.php';
But thats not the problem.
I am using id in an sql query, but not shown in my example (sorry :) )
But i wanted to show what i am a
On Tue, 25 Sep 2001 17:32, Bård Tommy Nilsen wrote:
> Thats only if i call the index.php file first.
> For that i have another solution
> if (function_exists('func')) {
> call_user_func ('func');
> } else {
> include 'main.php';
>
> But thats not the problem.
>
> I am using id in an sql query, but
Hi,
I have a website which i would like to submit to the search engines
frequently, so i thought i could write a program for this, not depending on
other free web sites for submission
Rgds
Krushna Kumar
- Original Message -
From: "Jon Haworth" <[EMAIL PROTECTED]>
To: "'Krushna Kumar R'
I can't see where any element of $link is set in the second piece of code. I
assume they are separate examples. In the second example I would expect
$link[$c] to always be empty.
Tim Ward
--
From: Jeremy Morano [SMTP:[EMAIL PROTECTED]]
Sent: 24 September 2001 16
Can you write me an short example ??
Bård Tommy Nilsen
-Opprinnelig melding-
Fra: David Robley [mailto:[EMAIL PROTECTED]]
Sendt: 25. september 2001 10:11
Til: Bård Tommy Nilsen; [EMAIL PROTECTED]
Emne: Re: SV: [PHP] Including files without loosing my string
On Tue, 25 Sep 2001 17:
PHP 4.0.6 has been out for 3 months now. Any word on the next update?
--
Eugene Lee
[EMAIL PROTECTED]
--
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: [EM
After some days spent in a hospital reading "Programming Perl" and "Oracle Web
Applications" I found that a language construct
which appears in Perl and PL/SQL is not available in PHP.
As in most 3G languages function call is like that
$bar=foo($bar1,$bar2,$bar3,'bar4');
function foo($par1=1,$p
Is this the correct mail function config in php.ini ?
[mail function]
SMTP = smtp01.druk.net.bt ;for win32 only
sendmail_from = [EMAIL PROTECTED] ;for win32 only
;sendmail_path = ;for unix only, may supply arguments as well (default
is sendmail -t)
Here, I have smtp01.druk.net.bt as m
System: PHP4.06 + Mysql3.23.41 Win32 + Apache 1.3.20 Win32 + Win98
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]
Is there a function available that will convert any none standard chars
($,@,",%,etc) into their " equivalents?
Thanks all
Mark
--
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 a
1. How to redirect curl_exec() output to a variable without
passing it thru a file?
2. Is there a way to use CRT certificates with cURL
[curl_setopt( CURL_CERTIFICATE, $path ) ]?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
From: Mark B <[EMAIL PROTECTED]>
Date: Tue, Sep 25, 2001 at 10:07:36AM +0100
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] html encode
> Is there a function available that will convert any none standard chars
> ($,@,",%,etc) into their " equivalents?
>
> Thanks all
>
> Mark
Check the man
On Monday 24 September 2001 21:23, Thomas Deliduka wrote:
> I just tried this here below. Before trying this I changed any
> called to $PHPSESSID to session_id().
>
> I turned off cookies
> Loaded the page... Created session id and file:
> sess_44074d3a54862b480c3407c9eb373f77
> Contents: var1|s:8
Hi,
I have a page containing about 50 different checkboxes, the user can
select as few or many as they like. When they submit the form I want the
values/names of the checkboxes that they selected to be displayed on the
next page, i.e. a thankyou page. Any help is much appreciated.
JD
--
PHP Gen
Now you get an array called mycheck.
Manipulate this array in php. Remeber that only checked items are set in
array.
That means if 2 checkboxes are checked you 'll get an array with 2
positions.
Suppose that 1st and 3rd checkboxes are checked.
- Original Message -
From: "John Day" <
Now you get an array called mycheck.
Manipulate this array in php. Remeber that only checked items are set in
array.
That means if 2 checkboxes are checked you 'll get an array with 2
positions.
Suppose that 1st and 3rd checkboxes are checked.
- Original Message -
From: "John Day" <
On Tue, Sep 25, 2001 at 11:36:25AM +0300, Andrey Hristov wrote:
:
: After some days spent in a hospital reading "Programming Perl" and
: "Oracle Web Applications" I found that a language construct which
: appears in Perl and PL/SQL is not available in PHP.
: As in most 3G languages function call
Martin wrote:
> The sessions-functions works really fine. But I got one Problem: How can
> I make the php-session last more then a browser-session? When the users
Now it isn't a 'session' for nothing, for your use I guess cookies and storage
of state in database is a much better thing.
to mak
Hi,
The following works. But I wouldn't allow users to use
something like -. --- _- in $TestPwd. How can I
implement this ?
--- Steve Edberg <[EMAIL PROTECTED]> wrote:
> if (ereg('^[a-z][-a-z0-9\._]*[a-z]$', $TestPwd)) {
> echo "Good";
> } else {
> echo "Bad password $TestPwd";
> }
HI!!!
Is it possible to get the name of the class from a static member
function for which no object has been instantiated?
THANKS!
James.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
On Tue, 25 Sep 2001 13:09, mydata wrote:
> Hi,I meet a problem when I am developing.
>
> I am developing php base on other programer's php code .
> I must make the php page always newest when clicking 'back' botton in
> browser(because that programer using javascript: history.go(-1)), I try
> sent
Set internal member variable $class_name='CSomeClass';
The call is for example
print CSomeClass::class_name;
I'm not sure whether this works 100% but I think it works.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "James Gregory"
Notice: Jay´s reply to my post yesterday was only a little mistake
while asking his own different question (he corrected this immediatly
reposting his message as thread '[PHP] what does this mean?' and got
some answers).
So keep in mind plaese, the original question '... number of
supported serve
Hi all,
I am Karthick, from Ireland. I recently got laid off
and looking for a job, anywhere in Europe. The Job
market is so bad that I haven't got any solid
responses, so far. It has been more than 2 weeks that
I started looking for a job. But no luck, so far.
I am hereby attaching my Resume'
Yeap, I know that. I thought about this bit of hack but this breaks the conception on
giving parameters. Also this trick cannot
solve the problem with default parameters. If I have function with 5 params and all of
them have default values and I want to pass
value only to the second parameter wh
Hi,
I don't know if I understand right the manual at the
session.gc_maxlifetime setting.
As I read, php won't use sessions that are older than that time.
It means that when a user logs in, and does his/her work for more
than (for example) 15 minutes, than he/she will be kicked off
immediately,
On Tuesday 25 September 2001 10:36, Andrey Hristov wrote:
> After some days spent in a hospital reading "Programming Perl" and
> "Oracle Web Applications" I found that a language construct which
> appears in Perl and PL/SQL is not available in PHP.
> As in most 3G languages function call is like
I have a question.
I have created an image with
imagecreatefromjpeg
I have a empty page and i want to display the picture at a specefic location at the
page.
Does anyone know how to do that?
With regards
//Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
You have to have one script for the page and one which serves the image. Also it's
possible to use just one script by using GET but
this is a mess
some_script.php:
...
get_image.php:
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
-
New SESSID will be generated because the old expired and because all rely on the
SESSID which is the "hash key" to the data no
previous data will be available.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Arpad Tamas" <[EMAIL PRO
Hi,
I'm feeling a bit stupid. I have a,load of variables coming from a MySQL
connection using list(). The variables are link1 to link 35 inclusive.
How can I access each of these variables, check if they are empty, then add
them to an array. I don't know how to access then inside a for loop. Ca
Environment:
Solaris 2.6
Apache 1.3.12
PHP 4.0b4
Oracle 8.1.7
I'm trying to get a cursor as an output value for a stored procedure. My
stored procedure is correct (I tested it). When I run the php script with
apache on my NT server (using the same database on Solaris), everything is
OK. When I ru
hi all,
is there any way out to get the total no of files in a directory including its
subfolders ?
thanQ,,
/sagar
On Tuesday 25 September 2001 14:27, Andrey Hristov wrote:
> New SESSID will be generated because the old expired and because
> all rely on the SESSID which is the "hash key" to the data no
> previous data will be available.
So, no matter if the user is still working, the session will be
destroyed
for ($i=1;$i<36;$i++){
if (${"link".$i}){
//it's real
}else{
// none
}
}
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Jordan Elver" <[EMAIL PROTECTED]>
To: "PHP General Mailing List" <[EMAIL PROTECTED]>
Sent:
you have an l just after the @ sign, it might be an idea to change that,
because when it connects, it first does HELO and checks if that user
is allowed...
- Original Message -
From: "Tshering Norbu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 6:38 PM
Sub
>I wish the rest of the world saw it that way! But not so...
That's what capitalism does for you -;)
>You may want to look at MySQL's IS_NULL function for retrieving data.
Other
>than that, I don't have any good advice. It seems that if you retrieve a
>NULL from the database and try to assign it
SELECT * from some_table WHERE some_field IS NULL;
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 4:09 PM
Subject: RE: [PHP] Gett
- Original Message -
From: sagar N Chand
To: John Day
Sent: Tuesday, September 25, 2001 6:46 PM
Subject: Re: [PHP] Capturing several checkbox values
give each checkbox an individual name before you submit it.
In the next page put this code :
while(list($key,$value)=each($HTTP_POST_V
Hello
I'm sorry, if this is a faq. But I would like to know, if there exist
public and private parts in classes like in c++ ?
AFAIK there are no public and private parts supportet.
I would be pleased to get either a confirmation on that or, if it works,
some information on how to do it.
Than
PHP Classes are not so powerful as C++. No there is no division ot private and public
or protected. All is public but good technique
is to name methods you prefer to be private with a underbar at the start.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Origina
Thank you for your confirmation.
Now I'm sure that I was correct.
-Oliver
[EMAIL PROTECTED] (Andrey Hristov) wrote in
01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY:">news:01ba01c145c7$22bcc6d0$0b01a8c0@ANDreY:
> PHP Classes are not so powerful as C++. No there is no division ot
> private and public
On Tue, 25 Sep 2001, Andrey Hristov wrote:
> > I'm sorry, if this is a faq. But I would like to know, if there exist
> > public and private parts in classes like in c++ ?
> >
> > AFAIK there are no public and private parts supportet.
> >
> > I would be pleased to get either a confirmation on that
Hmmm,
Original: $_this->foo = "bar";
I think that it must be:
$this->_foo = "bar";
Have fun.
Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS
- Original Message -
From: "Nick Winfield" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September
On Tue, 25 Sep 2001, Andrey Hristov wrote:
> Hmmm,
> Original: $_this->foo = "bar";
> I think that it must be:
> $this->_foo = "bar";
Nope, I tested my code before I posted. :)
Definitely $_this->foo
Cheers,
Nick W..
-[ [EMAIL PROTECTED] ]-
:: today's word is..
haggis (n): a small, hai
> SELECT * from some_table WHERE some_field IS NULL;
>
>
> Andrey Hristov
> --
> 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]
Th
class Test {
function Test() {
$_this->foo = "bar";
}
}
$n = new Test;
echo "foo: " . $n->foo."\n";
var_dump($n);
returns :
foo:
object(test)(0) {
}
So there is no member variable which you meant to be private in the instance $n of
class Test.
Have fun.
Andrey Hristov
IcyGEN Corpor
HI.
Anyone have a chat with php?
tks
> So, no matter if the user is still working, the session will be
> destroyed. I mean session.gc_maxlifetime isn't
> session.gc_maxIDLEtime?
Every time the user requests a page in an application using sessions, the
session file's access time gets updated. The garbage collection routine
looks a
http://www.php.net/";);
$fp = fopen ("php_homepage.txt", "w");
curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
?>
I think that by using CURL you can get the output of your script and add the content
to the another pag
Hello list,
I need to receive/send sms through an IPSec connection
using the socket (pfsocket) function of php.
I hope there's someone out there that can help me solving
some questions.
Here is what I thought to do:
REC_SCRIPT that open the socket connection and listen on
arriving message
Just realised, you meant 'is null' not is_null. Sorry, couldn't see the
wood for the trees. This in ANSI SQL and I use it every day.
Had a look at zootweb.com. And I thought ASP meant 'Active Server Pages'
not 'Application Service Provider'. And not a zoot suit in sight -;)
Regards,
Neb
Maybe this? A bit verbose, but functional.
-Steve
'hello', 'banana' => 'world'));
?>
On Tuesday, September 25, 2001, at 06:25 AM, Andrey Hristov wrote:
> Yeap, I know that. I thought about this bit of hack but this breaks the
> conception on giving parameters. Also this trick cannot
> solv
okay, I'll try again. The apache server our site runs on is set up to parse
.html files as php. If you pass a url of a non-existant file to the server
the client gets a php parse error back rather than a 404 error ...
specifically:
pass in
http://www.sitename/fred.html
and you get
Fatal error: Un
I'm having some trouble putting on a formatting to printer script.
I've done it in ASP to print CDs tracklists... 4 per page.
Since I know nothing about Word macros, I've done it in HTML and it's
working fine... it's customizable and all..
but the problem I have is printers... since it's in HTM
>Thanks for correcting my misspelling, Andrey, "IS NULL" not "IS_NULL".
>Another thing to look at, Ben, is IFNULL(). I would give you an example,
but
>I never got it to work like I thought it should ;) I think it is supposed
to
>return an alternate value for NULLs.
Just had a look at manual, ifnu
Hi,
I would like to know how to write a web page counter in PHP or
Javascript.
Thank You
Mark Lo
--
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:
On Tuesday 25 September 2001 16:19, Johnson, Kirk wrote:
> > So, no matter if the user is still working, the session will be
> > destroyed. I mean session.gc_maxlifetime isn't
> > session.gc_maxIDLEtime?
>
> Every time the user requests a page in an application using
> sessions, the session file's
Hi all,
I have installed sybase on my Linux 7.1 machine and after
creating my first php-4.0.4pl1-9 page, sybase is not listed under
./configure section,,,
do i need to recompile again???
pls help
Caleb Carvalho
LoadRunner/APM
-
Hi!
I was wondering how you could run php from the command line, and how it works!
Just out of curiosity =)
Thanks
/Broder
When I set a cookie like below, what does the "300" represend in time?
Seconds?
setcookie ("referred", "yes", 300, "", ".advparadigm.com",0);
Thanks,
Joseph
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
Good afternoon,
I'm looking for a function which enables me to allow user only to enter
those dates which are still to come. In my head I have three
things... one for day, one for month and one for year. In order to prevent
the user from submitting the form with the date which is in past, I need
Hey!
I know the question is somewhat missplaced thought I think someone on this list should
be able to answer me.
I'm doing a statistics application wich uses the apache http-acces.log file. One line
looks like this:
195.58.118.234 - - [03/Oct/2000:09:39:04 +0200] "GET /temp/odenresor HTTP/1.1"
Hi m8
I just say... rtfm ... start here:
>From the manual:.. (http://www.php.net/manual/en/function.setcookie.php)
int setcookie (string name [, string value [, int expire [, string path [,
string domain [, int secure])
It is the response code and the number of bytes transferred.
These are the codes:
#define HTTP_CONTINUE 100
#define HTTP_SWITCHING_PROTOCOLS 101
#define HTTP_PROCESSING102
#define HTTP_OK200
#define HTTP_CREATED
> I'm looking for a function which enables me to allow user
> only to enter those dates which are still to come. In my head
> I have three things... one for day, one for month and
> one for year. In order to prevent the user from submitting the
> form with the date which is in past, I need pr
It might be a good idea to check the list archives.
http://marc.theaimsgroup.com/?l=php-general
But since I am feeling nice today (assuming you want to do it on *nix). Then
download and un-pack the source and run:
# ./configure [... additional options here like MySQL etc...(make sure you don't
p
On Tuesday, September 25, 2001, at 10:30 AM, [EMAIL PROTECTED]
wrote:
>> Thanks for correcting my misspelling, Andrey, "IS NULL" not "IS_NULL".
>> Another thing to look at, Ben, is IFNULL(). I would give you an
>> example,
> but
>> I never got it to work like I thought it should ;) I think it
And this is where I say kma thanks.
J
--
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]
At 22:22 19/09/01 -0400, Kurth Bemis wrote:
>i'm looking for a php function to add 2 decimal place sto a number. if
>the number already have one decimal place then one more zero should be
>added to make it two decimal placesanyone know of a quick way to do this?
$number=32.5;
echo number_
On Tue, 25 Sep 2001, Kamil Nowicki wrote:
> 1. How to redirect curl_exec() output to a variable without
>passing it thru a file?
>
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$data = curl_exec($ch);
echo $data;
curl_close($ch);
-Sterling
--
PHP General Mailing List (h
What if I want to pad a number with zeros in the other direction? I.E:
524 becomes 00524
- Original Message -
From: "Christian Dechery" <[EMAIL PROTECTED]>
To: "Kurth Bemis" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 9:41 AM
Subject: Re: [PHP] 2 dec
It's very simple - at the top of every page, have a routine that opens a
text file, reads the number inside it into a variable, adds one, and writes
it back out again. If the text file doesn't exist, create it.
Psuedocode:
if (file exists) {
open file for reading;
read contents into $counter
> What if I want to pad a number with zeros in the other
> direction? I.E:
> 524 becomes 00524
printf() / sprintf() is your friend.
Chris
I had that problem. Appeared to be some incompatibility with Zend Optimizer
and Zend Cache. Upgrade to Zend Optimizer 1.1.0 and everything worked.
Regards, John
"Joseph Blythe" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello all,
>
> I just installed Ze
Hi!
I downloaded the Php-Gtk files for Windows 32 Binary
and I am trying to make it work on Windows 98. I
already have phpdev2 with Apahce, Mysql and Php
installed
phpdev2 is in C:\phpdev2
1. Now I downloaded php-gtk and I copied the files
from php4 folder to php directory.
2. Then I copied
Hi friends,
I have a created a PHP script for a news ticker. The data is extracted from
a MySQL server. I have to use this script on all our sites which is on
different servers. Is there a way to execute the PHP script from one server
and get the results on these sites.
For eg:
I am looking f
Make the output in javascript format. If you just want to write to the
document, use something like this
document.write('');
My JavaScript is a little rusty, but I think that's the correct format.
Have the PHP parsed on your server then the remote site could call it like
this:
> I thought that php works as you wrote. But sometimes I find that much
> older session are still "alive". I have 1440secs for maxlifetime, and
> if I bookmark a page with the session id I can use it till days or
> even weeks (I haven't tested longer time period :))
Are old files being re-use
If you want to cheat, I would create the html doc, then use one of the many
HTML -> PDF converters out there. Of course you could also create the PDF by
hand, there is a module for that
On Tuesday 25 September 2001 08:19, you wrote:
> I'm having some trouble putting on a formatting to printer
hi,
am still having problem to compile my sybase, i have linux 7.1 and php was
installed during installation process, i can't find the ./configure file..
php-4.0.4pl1-9
pls help
Caleb Carvalho
LoadRunner/APM
Hi
Simply put
/usr/local/bin/php -q to the top of your script ...
i've written one a while ago an email roboter ... it works on command line
maybe u wanna check it out :
http://linuks.net/robot.phps
best regards
attila strauss
>
>
> Hi!
> I was wondering how you could run php from the command
Chances are that since it was installed as part of your RH install, there
isn't a configure script. I would scrap the RPM and go to www.php.net and
download the source tarball. That includes the configure script that you
are looking for, which will allow you to include whatever you would like a
> Simply put
>
> /usr/local/bin/php -q to the top of your script ...
> i've written one a while ago an email roboter ... it works on command line
But you realize you have to have command line php compiled first, right?
Nathan Cook
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.ph
Yeah, but what if they don't JUST want to print it...
/*untested*/
$i=524;
$n=5-strlen($i);
$outnum="";
for($x=1;$x<=$n;$x++){
$outnum.="0";
};
$outnum.=$i;
On Tuesday 25 September 2001 09:56, you wrote:
> > What if I want to pad a number with zeros in the other
> > direction? I.E:
> >
> Yeah, but what if they don't JUST want to print it...
Umm, have you read the documentation on either of
the functions? They both return a string; they don't
send anything to standard out (like echo or print does).
$myString = printf();
$myString = sprintf();
echo $myString;
Chris
Is there anyway I could make a PHP script run as the user that owns the
script?
Hi.
I've been looking for XML, and I'd like to know if you
know if with the XML funtions of PHP I can create a
XML file, add and remove data just, or almost equal of
I do with MySQL.
regards,
Augusto
__
Augusto,
Regardless if you CAN do this, I recommend against it :)
Relational Databases are much better for storing, updating, and accessing
disparate information than XML.
XML should be used for communication between applications or for an
intermediary output format from relational data.
If you
I want to use the value of a variable in a variable name. For instance:
$id = 1;
$sql_$id = "hey"; //set variable $sql_1 to hey
print $sql_1; //should print hey
I have looked high and low on how to do this. My first idea was eval but
I can't seem to get that to work in this instance. Any ideas?
> I want to use the value of a variable in a variable name. For
> instance:
>
> $id = 1;
> $sql_$id = "hey"; //set variable $sql_1 to hey
> print $sql_1; //should print hey
I *believe* (could be wrong) what you want is this:
print ${$sql_1};
Check out variable variables in the dox.
Chris
$id = 1;
${"sql_" . $id} = "hey";
print $sql_1;
Try that
-Original Message-
From: Kyle Moore [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 25, 2001 9:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Variable naming
I want to use the value of a variable in a variable name. For instance
$id = 1;
$sql_1 = "hey";
$vname = "sql_".$id;
echo $$vname;
--
Fábio Migliorini
http://www.atua.com.br
[EMAIL PROTECTED]
UIN: 42729458
Linux User: 175409
- Original Message -
From: "Kyle Moore" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 1:15 PM
Subject: [
1 - 100 of 167 matches
Mail list logo