On Friday 01 February 2002 15:38, Berthold wrote:
> Hi!
>
> Thank you.
> But I cannot use that $link1 and/or $link2 to select two databases on
> different servers...
> If I use $link1 the first time to select the first database on the first
> server I got that error. But without that $link1-variab
"Jtjohnston" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Luke is that 6:47 pm tomorrow? :) You lost an entire day!
> Enough Oz Jokes. Here is my predicament in Canada :-)
>
> $varname = "Check".$i;
>
> $varname = "Check1" but I want $varname = "Your Name1"
i'm having a bit of a problem, i have in my php script a call to system(), it calls an
external .exe, php hangs waiting for a return value from the .exe [i
believe], i've recompiled the program i'm calling with system() to return 0 and even
1, but it still does not work, would any body have any
* Brian Clark ([EMAIL PROTECTED]) [Feb 01. 2002 02:37]:
[...]
> echo ${"Check$i"}
Whoops. Make that:
echo ${"Check$i"};
--
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
It may be your sole purpose in life to serve as a wa
Hi!
Thank you.
But I cannot use that $link1 and/or $link2 to select two databases on
different servers...
If I use $link1 the first time to select the first database on the first
server I got that error. But without that $link1-variable AND only one
connection in the script it works.
And it m
* jtjohnston ([EMAIL PROTECTED]) [Feb 01. 2002 02:14]:
> Anyone Awake? Up?
Yawwwnn. :-)
[...]
> When I submit, I want to echo to see if anyone clicked on them. But I
> can't get my variable right to find $check1 through $check12. How do I
> express in a for loop. $Check.$i does not work of cou
Niklas,
Bingo. I wondered if it was somehting like that? Same thing in JS more or
less.
Thanks,
John
> eval() is your solution.
>
> for ($i = 1; $i <= $NMax; $i++)
> {
> $variable = "\$Check$i";
> eval("\$string = \"$variable\";");
> echo $string."";
> }
>
> Niklas
>
> ---
Luke is that 6:47 pm tomorrow? :) You lost an entire day!
Enough Oz Jokes. Here is my predicament in Canada :-)
$varname = "Check".$i;
$varname = "Check1" but I want $varname = "Your Name1" to "Your Name12".
One more try? :)
etc.
for ($i = 1; $i <= $NMax; $i++)
{
#$varname = "$Check".$i;
$
eval() is your solution.
for ($i = 1; $i <= $NMax; $i++)
{
$variable = "\$Check$i";
eval("\$string = \"$variable\";");
echo $string."";
}
Niklas
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: 1. helmikuuta 2002 9:16
To: [EMAIL PROTECTED]
"Jtjohnston" wrote:
> Anyone Awake? Up?
It is 6:17 pm. I would have trouble sleeping at this time of day :)
> I'm using 12 checkboxes
>
>
>
> dynamically generated by mysql. Each has an id as primary index so I do
> this:
>
> id."\"
> VALUE=\"".$mydata->yourname."\">
>
> When I submit, I want
Exist some php scripts (commands) to update files in linux server throgh
sftp protocol ?
Thanks
roman
--
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: [EMA
Anyone Awake? Up?
I'm using 12 checkboxes
dynamically generated by mysql. Each has an id as primary index so I do
this:
id."\"
VALUE=\"".$mydata->yourname."\">
When I submit, I want to echo to see if anyone clicked on them. But I
can't get my variable right to find $check1 through $check12.
You can add modules on the fly today using dl() or semi-on-the-fly by
adding them to php.ini and just restarting the web server. You don't need
to recompile php to add any of these modules.
-Rasmus
On Thu, 31 Jan 2002, Kunal Jhunjhunwala wrote:
> Hey,
> I was wondering, if it would be possible
>Therefore it would be recommended to avoid problems in the future and
>use PNG instead, however, if you want to use transparency in your images
>bear in mind that a number of implementations do not support this.
>For example the quicktime plugin that handles PNGs in Netscape 4.x .
Yea... the ma
> can anone show me a good example how to use this function?
> I'm not really sure how it works
it only makes sense to use if your turn off user aborts.
-Rasmus
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAI
can anone show me a good example how to use this function?
I'm not really sure how it works
--
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 PROTECTE
At 10:27 PM 1/31/2002 -0400, Miles Thompson wrote:
>>when a user logs in to my site, i load a bunch of stuff about them from a
>>database and put it in session variables. right now i have the session
>>expiration time set to a pretty large value.
>>
>>they can come back later in the day and sti
I don't know if this is related but header() must be called before any
actual output is sent.
One way to resolve this is to use the ob_start() tag at the start of the
code, this turns output buffering on.
Mind you I am no expert and stand ready to be corected and berated.
Peter
I wanted to hi
I wanted to hide the existance of my include files by making them
'invisible': give a 404 error when requested. This worked, but the files
that were including were obviously 404ing too. So I decided to use $PHP_SELF
and check whether the script's PHP_SELF was it's filename, which would mean
that i
On Friday 01 February 2002 08:49, Erik Price wrote:
> SCENARIO:
>
> You're filling out your online web form. Unfortunately, you forgot to
> fill out/check/select some data or other that is considered "required"
> by the site that's hosting the form. You hit "submit", but you are
> simply returne
XML isn't always going to a browser remember, it could be another
application on another server that wants an XML doc to sync something or
such like. And that sort of application is what PHP needs (more
middleware-ish to compete with Java etc), as I feel that PHP is capable of
much more than just
Jtjohnston wrote:
> I want to do something like this on a page:
>
> Pages: 1 2 3 [Next>>]
>
> How can I code SELECT * FROM `bookmarks` LIMIT 0, 30 ?
>
> Thanks?
>
> John
>
>
This should be of some help.
http://phpbuilder.com/columns/rod20001214.php3
gary
--
PHP General Mailing Li
Hi,
I am running PHP on W2k. How do I redirect an url if a php file is not found
and
the web browser returns "CGI not found. The specified CGI misbehaved.."
Tried looking in IIS Error pages but can't find the html file.
Regards
Nyon
--
PHP General Mailing List (http://www.php.net/)
To unsubsc
At 05:15 PM 1/31/2002 -0800, Jon Drukman wrote:
>At 09:03 PM 1/31/2002 -0400, Miles Thompson wrote:
>>If you want persistence then use a cookie to
>>- store the information
>>- to provide a key for fetching data from a database
>>or accept that if preservation of inter-invocation data is impt enou
I want to do something like this on a page:
Pages: 1 2 3 [Next>>]
How can I code SELECT * FROM `bookmarks` LIMIT 0, 30 ?
Thanks?
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact th
check out one of many HTML email scripts on
hotscripts.com.
--- Peter Atkins <[EMAIL PROTECTED]> wrote:
> All,
>
> I'm building a tool that takes form input and sends
> out an html email with a
> word doc attached.
> It sends the text and html version of the email but
> I can't open the
> attac
Agreed.
- Original Message -
From: "Jason Murray" <[EMAIL PROTECTED]>
To: "'Gregor Welters'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 7:14 PM
Subject: RE: [PHP] this list has been mutated to a lamers paradise
> > just wanted to point this out.
>
> And
Thanks, LAMER
- Original Message -
From: "Gregor Welters" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 5:06 PM
Subject: [PHP] this list has been mutated to a lamers paradise
> just wanted to point this out.
>
>
>
>
>
> --
> PHP General Mailing List
At 09:03 PM 1/31/2002 -0400, Miles Thompson wrote:
>If you want persistence then use a cookie to
>- store the information
>- to provide a key for fetching data from a database
>or accept that if preservation of inter-invocation data is impt enough to
>require registration of users and a login if
> just wanted to point this out.
And these kinds of emails make it *so* much better, of course.
If the topic doesn't interest you, don't read it. (I don't
read 90% of the emails I get on the list, I just dump them
into a folder because I don't know anything about the topic,
don't care, or I mig
just wanted to point this out.
--
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]
On Thursday, January 31, 2002, at 06:12 PM, Lars Torben Wilson wrote:
> On Thu, 2002-01-31 at 14:57, Erik Price wrote:
>> I'm running PHP 4.1.0 on LAMP w/register_globals=off
>
>
> Since register_globals is off, the $_SERVER array will no
If you want persistence then use a cookie to
- store the information
- to provide a key for fetching data from a database
or accept that if preservation of inter-invocation data is impt enough to
require registration of users and a login if the client has cookies turned off.
Sessions are suppose
is it possible to have session.cookie_lifetime different for each user?
some users may want their cookies to live past a browser shutdown and others
may not. i'd like to give them a choice, if possible.
-jsd-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
At 02:14 PM 1/31/2002 -0500, Michael Kimsal wrote:
>>>4th
>>>sessions, can they be accessed from an asp script and the other way round?
>>
>>No, they cannot. They are specific to PHP.
>
>
>not directly, but an ASP script on the same domain should be able to read
>the cookie storing the session I
SCENARIO:
You're filling out your online web form. Unfortunately, you forgot to
fill out/check/select some data or other that is considered "required"
by the site that's hosting the form. You hit "submit", but you are
simply returned to the same page. All of the data that you entered is
st
Have you tried running the program from your php script?
Something like:
$stuff = System("cat foo.txt");
I have done something similar, but I don't recall exactly how I did it.
Jeff
At 04:30 PM 1/31/2002 -0800, David Yee wrote:
>How can I access data/parameters piped into a PHP shell script?
Oops, nevermind- I found the answer:
$fp = fopen("php://stdin", "r");
while(($buf=fgets($fp, 512)) != false) {
$input .= $buf;
}
echo "$input";
- Original Message -
From: "David Yee" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, Jan
I have an existing production machine running Red Hat Linux 7.1, Apache
1.3.19, and PHP 4.0.6.
I have a new machine I'm *TRYING* to replace it with. It's a clean
machine that I just did a fresh install of RedHat Linux 7.1 on. I
downloaded MySQL 3.23.47, PHP 4.0.6, and Apache 1.3.22.
Everythin
How can I access data/parameters piped into a PHP shell script? E.g:
cat foo.txt | php -q myscript.php
In this example I want to take the contents of foo.txt and store it into a
variable/array in myscript.php. I tried $argv[] but no go. Thanks.
David
--
PHP General Mailing List (http://ww
Scott,
Apparently I'm too stupid to be able to use my mail client correctly
and sent this email from my wife's account. (It was an early morning
for me so please forgive me.
Anyway, to answer your question you would do the following:
1) Create the page that you want to send the email. Creat
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> This is a PHP newbie trying to figure something out.
>
> I am creating a web-app which begins with a login page and goes through the
> typical user/pass validation and upon success moves to a frameset where the
> application will run.
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> is there any way to destroy a session automaticly when a user closes down
> you page?
> And preferably perform an action like a database removal at the same time.
Have a look at the Connection Handling section of the manual, and the
fu
can you change session.cookie_lifetime on the fly? some users might want
their sessions to persist between browser invocations, and others might want
their sessions to expire.
-jsd-
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional co
use the:
http://www.whatever.com/whatever.php);
?>
MAKE SURE header is used before any code that outputs anything, other wise
it won't work (as header sends additional HTTP header commands).
Alternatively the frameset could just be sent back to browser (i.e. make
your frameset dynamic (if user
All,
I'm building a tool that takes form input and sends out an html email with a
word doc attached.
It sends the text and html version of the email but I can't open the
attachment. It opens blank.
Anyone have a thought or two about this?
if ($attachment) {
$fp = fopen($attachm
that's alright - i'm using 4.0.6 and the suppression works
thnx again
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 10:33 AM
To: Christopher William Wesley
Cc: [EMAIL PROTECTED]; Martin Towell
Subject: Re: [PHP] suppressing divisio
On Thu, 2002-01-31 at 15:16, Christopher William Wesley wrote:
> You really need to do some error checking on the denominator.
> $num = 5;
> $den = 0;
>
> echo $den != 0 ? $num/$den : "0";
>
> A number divided by zero isn't defined, so you have to circumvent the
> situation by making sure it nev
On Thu, 2002-01-31 at 15:26, Martin Towell wrote:
> I was thinking of writing a _very simple_ graphing program - enter an
> expression and php will generate an image with the graph on it, I didn't
> want to spend too much time parsing the expression up and seeing if there's
> a division or anythin
I was thinking of writing a _very simple_ graphing program - enter an
expression and php will generate an image with the graph on it, I didn't
want to spend too much time parsing the expression up and seeing if there's
a division or anything else that may cause an error/warning [eg tan(PI/2),
etc]
I too just had this problem, it seems that this happens when php is installed as a cgi
binary with
apache, perhaps if you use $_SERVER["PATH_INFO") or perhaps
$_SERVER["SCRIPT_NAME"] or even $path_info, just some ideas, i've not tested this at
all yet...
good luck
1/31/02 2:57:55 PM, Erik P
You really need to do some error checking on the denominator.
$num = 5;
$den = 0;
echo $den != 0 ? $num/$den : "0";
A number divided by zero isn't defined, so you have to circumvent the
situation by making sure it never happens.
~Chris /"\
On Thu, 2002-01-31 at 15:00, Martin Towell wrote:
> Is there a way to suppress division by zero errors?
>
> echo 5/0; // this give a warning - obviously!!
>
> @echo 5/0; // this gives a parse error
>
> echo @5/0; // this still comes up with a warning
>
> unless I turn error_reporting off be
On Thu, 2002-01-31 at 14:57, Erik Price wrote:
> I have a file called "index.php". This file includes another file,
> "foot.inc". In the file "foot.inc", amidst much HTML code, I have a
> simple line:
>
> echo "$PHP_SELF" ;
> ?>
>
> The expected result is that "index.php" will appear in my
Is there a way to suppress division by zero errors?
echo 5/0; // this give a warning - obviously!!
@echo 5/0; // this gives a parse error
echo @5/0; // this still comes up with a warning
unless I turn error_reporting off before and turn it back on afterwards, but
I don't want to do that unl
I have a file called "index.php". This file includes another file,
"foot.inc". In the file "foot.inc", amidst much HTML code, I have a
simple line:
$PHP_SELF" ;
?>
The expected result is that "index.php" will appear in my web
page, or at least something will appear. Yet, when the page is s
duh !
yep exactly like !
thanks ! :-))
> something like ?
>
> $cntr = 0;
> echo "";
> while ($r = mysql_fetch_array($result0))
> {
> $cntr++;
> $cityid = $r["t_city_id_city"];
> $cityname = $r["t_city_name"];
> echo "
> href=\"city_person.php?city_id
Manuel Ritsch <[EMAIL PROTECTED]> wrote:
> $file_s = filesize($file);
you want $file_s = filesize("images/$file").
jim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To c
something like ?
$cntr = 0;
echo "";
while ($r = mysql_fetch_array($result0))
{
$cntr++;
$cityid = $r["t_city_id_city"];
$cityname = $r["t_city_name"];
echo "
$cityname
";
if ($cntr % 2 == 0) echo "";
} // from while result 0
echo"";
-Original
apologies for a stupid question ! but it's late !
everthings fine, mysql query, results etc
but I want to produce a table with two columns instead of just one long
column
ie answer1answer2
can someone please give me a hint how to do it ?
while ($r = mysql_fetch_array($result0))
use: { header("location: new_full_url_here"); exit; }
-Original Message-
From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:42 AM
To: PHP
Subject: [PHP] redirection rather than include()
This is a PHP newbie trying to figure something out.
I am creatin
This is a PHP newbie trying to figure something out.
I am creating a web-app which begins with a login page and goes through the
typical user/pass validation and upon success moves to a frameset where the
application will run. The action of the login form is act_login.php. In
that script I vali
Hi,
Lets say that i have a database, and some names in it (Name and adress).
When it's new year:) id like to send letters to those guys, from db. How
would i print those names on envelopes, or how should i print one name at
one A4 page, other name on next etc... If I open those names in browser an
is there any way to destroy a session automaticly when a user closes down
you page?
And preferably perform an action like a database removal at the same time.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Anyone able to comment on Ruby's features, pros and
cons as a web scripting alternative to PHP.
Thanks.
=
Anas Mughal
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Tel: 973-249-6665
__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
ht
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says...
> Hi!
>
> mysql_error returns nothing...
>
> The error arrives while selecting the database via:
>
> $link = mysql_connect("host","user","passwd");
> mysql_select_db("bla", $link);
>
> echo $link returns always '1'!
>
>
>
>
> David
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I need to generate a random number (range is not crucial) and I have been
> trying to use mt_rand(). However, I am finding that is generates the same
> value EVERY time. This is true whether I supple a range or not. For
> example, the
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> The following query displays 0 e-mails. Why?
>
> Tbl con_inf holds 51 records w/ 51 usernames. Tbl scr_149 holds 37
> records with 37 equivalent usernames of which 14 show date_done=0.
>
>
> $connection=mysql_connect("localhost",
\\1, actually. \\0 refers to the entire source string, not just to the
part inside the parentheses... so I think it would put the bold tags
around the entire contents of $str, not just the "this" words.
At least, that's according to the source I'm using (_Professional PHP
Programming_ by Castagn
Wow, thanks a lot...
although it should be \\0 here...
didn't see anything in the manual about the \\ maybe gotta look for it again
:-)
Thanks,
Edward
- Original Message -
From: "Richard Crawford" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>
Cc: <[EMAI
Sorry, that should be:
eregi_replace("(this)","\\1",$str);
On Thu, 2002-01-31 at 14:20, Richard Crawford wrote:
> Seems like that makes it a LOT easier.
>
> Use eregi_relace() instead of ereg_replace(). eregi allows for
> case-insensitivity.
>
> Try
>
> eregi_replace("this","
Seems like that makes it a LOT easier.
Use eregi_relace() instead of ereg_replace(). eregi allows for
case-insensitivity.
Try
eregi_replace("this","\\1",$str);
That should do it, though I haven't tried it myself.
On Thu, 2002-01-31 at 14:14, Edward van Bilderbeek - Bean IT wrote:
>
Maybe I better ask my question different...
what i want to do is, to highlight certain text in a string...
for example: "This equals this equals tHis..." has to become:
"This equals this equals tHis"... so dispite the case,
the 's should be put around it...
does that make it easier? not for me
hmm, that's not what i wanted to hear :-)))
e.g. try doing that for the word: transparancy looots of different
possibilities then...
Edward
- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED
On Thu, 31 Jan 2002, Rick Emery wrote:
> To timeout users after 20 minutes, use a cookie which is set for 20 minutes.
But once again you can have problems with cookies, they're not reliable
(user can have cookies support turned off) and they tend to be good for
CSS attacks :(
You could have a ti
Hi,
Where can I find a list of PHP Jobs (help wanted)?
Thanks,
Brian
--
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]
Ahhh, ok makes more sense now. Although, I don't think that there is an
"easy" way to do what you are asking. I think that in order to accomplish
that, you will have to specify all possible cases of a string, and have a
ereg_replace() statement for each of them.
Jeff
At 11:01 PM 1/31/2002 +
To timeout users after 20 minutes, use a cookie which is set for 20 minutes.
I'm not exactly sure what you are attempting to limit on database: 100
entries per hour, per day, per year, concurrently?
-Original Message-
From: Hawk [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002
Oh, that was a typo... sorry...
it should be:
"This equals this equals tHis" -> "That equals that equals tHat"
Edward
- Original Message -
From: "Jeff Sheltren" <[EMAIL PROTECTED]>
To: "Edward van Bilderbeek - Bean IT" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31
Let's say I have a database that recieves new information about 6
times/minute and I want the database to be checked to frequently to limit
the maximum entrys to the database to.. let's say 100.
And also timeout users if their session has been inactive for, let's say 20
minutes.
--
PHP General
I'm not sure why you wanted the last word "tHis" to be changed to "That"
(with a capital)... can you explain further?
Jeff
At 10:52 PM 1/31/2002 +0100, Edward van Bilderbeek - Bean IT wrote:
>that is not what I meant... I want the cases to remain...
>
>- Original Message -
>From: "Rick
that is not what I meant... I want the cases to remain...
- Original Message -
From: "Rick Emery" <[EMAIL PROTECTED]>
To: "'Edward van Bilderbeek - Bean IT'" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, January 31, 2002 10:47 PM
Subject: RE: [PHP] ereg et all
> try: eregi_r
This is what I am trying to do. I am trying to add a border to the bottom
edge of a cell. The Range and some other methods seem to not work with the
syntax that the VB editor in excel says. Like Range in the vb editor is
Range("A1:B9").Select. When I try this in php it gives me and error. I
try: eregi_replace("this","that","This equals this equals tHis");
-Original Message-
From: Edward van Bilderbeek - Bean IT [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ereg et all
hi,
is there a simple way to replace an occu
hi,
is there a simple way to replace an occurence of a string, into another,
maintaing capital positions...
Like:
$str = "This equals this equals tHis";
and I wanna replace all occurences of "this" in "that", that the result will
be:
$str = "That equals that equals That";
Edward
--
PHP Ge
Hello There
I'm new to PHP and trying to code a function that reads all teh files out of
a directory and printing out a link and the filesize,
but it seems that the filesize() function doesn't work, here's the code so
far:
$handle = opendir ('images');
echo "Fil
On Friday 01 February 2002 03:52, karthikeyan wrote:
> Hi Guys,
>
> I got some sweet responses like using cat and using Output Buffering
> functions. But then what i really want is to provide user with the
> interface like this :
>
> Pregeneration Program
> -
Anyone know of an Apache and PHP build for Win CE? I would rather build a
Web app for my device than completely have to learn eMbedded VB, or use the
IIS port with something like PocketASP from modezero.
Thanks in advance,
__
Mike Krisher
Director of Technology
hyperQU
Notice the "[ ]" at the end of the select box name, this prompts php to
treat the values as an array.
$myrow[1]";
}
}
?>
When the form is submitted I fire this code
$mycount = count($options); // get the number of elements in the
array (selected in the drop down)
while($myc
I thought about the case insensitivity, but I wanted to be certain that A-Z
was captured. Personnally, I'd use ereg(), as you suggest.
-Original Message-
From: Administrator [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:38 PM
To: Rick Emery
Subject: Re: [PHP] newbie: regu
Hi Guys,
I got some sweet responses like using cat and using Output Buffering functions. But
then what i really want is to provide user with the interface like this :
Pregeneration Program
---
Step 1 - Choose you Header file [ ] [Browse]
try: if (eregi("^[a-zA-Z0-9]*$", $name))
This searches for [a-zA-Z0-9] between start and end of line with no other
intervening characters
-Original Message-
From: Lee P Reilly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 1:45 PM
To: PHP List
Subject: [PHP] newbie: regula
On Monday, January 28, 2002, at 10:41 AM, Simos Varelakis wrote:
> A php form contains a listbox (named foolist) with n Items which can
> be
> multiple selected and form posted to
> results.php how can results.php determine which items were selected in
> order
> to add all the items in a My
is anyone out there familiar with COM built into Php?
This is my code:
$sheet = Range("B6:B9")->Select;
$sheet->Selection->Borders(xlEdgeBottom);
$sheet->Selection->LineStyle = 9; //xlContinuous
$sheet->Selection->Weight = 2; //xlThin
I get an error everytime I use the Range method and some othe
mail("[EMAIL PROTECTED]","Subject line",$message,"From: $txtname
<$email>");
-Original Message-
From: Scott's Mail [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:00 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Need Urgent Help!!
Shannon,
I appreciate
You need to send the headers to tell the browser what kind of data
you're sending. Try something like this:
header("Content-type: image/png");
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Sridhar Moparthy [mailto:[EMAIL PROTECTED]]
Sent: Thursda
Just a quick question: the v2.4.x function declaration for several mcrypt
functions requires a path to the library (at least thats what I have
gathered), whereas previous versions didn't require this. Are they looking
for a specific file path, or a general path to the library files?
Mike Frazer
Did you remember to seed it?
See http://www.php.net/manual/en/function.mt-srand.php for info on how
to seed it.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Benjamin deRuyter [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 1:02 PM
T
On Thu, 31 Jan 2002, Benjamin deRuyter wrote:
> I need to generate a random number (range is not crucial) and I have been
> trying to use mt_rand(). However, I am finding that is generates the same
> value EVERY time. This is true whether I supple a range or not. For
> example, the follow line
I'd imagine it's because windows zend has to compile them in a slightly
different manner.
Matthew Walker
Ecommerce Project Manager
Mountain Top Herbs
-Original Message-
From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 12:41 PM
To: php-list
Subject: [
1 - 100 of 191 matches
Mail list logo