you probably won't be able to edit PHP.ini with shared-hosting. The other
solutions, one I can think of it now - you can use PHP to upload files from
remote computer to the server at certain time, and set schedule with cron to
run your PHP scripts on your server.
Good luck
-Original Messag
Stut
What's good for multiple webservers? thanks
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Friday, October 05, 2007 4:31 PM
To: Stefano Esposito
Cc: php-general@lists.php.net
Subject: Re: [PHP] MySQL and SESSIONs
Stefano Esposito wrote:
> is it somehow possible to st
and books too :)
-Original Message-
From: Vo, Lance [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 13, 2007 11:07 AM
To: php-general@lists.php.net
Subject: [PHP] PHP WAP Resources?
hi
can you guys please suggest some good resources for PHP and WAP?
either urls or websites would
hi
can you guys please suggest some good resources for PHP and WAP?
either urls or websites would be great
tia,
Lance
Try to do a search in PEAR.PHP.NET
I remember I've seen something like this for php4, but not sure where.
Lance
-Original Message-
From: Ross [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 18, 2007 8:41 AM
To: php-general@lists.php.net
Subject: [PHP] simplexml_load_string();
Wow, this topic has been going on forever. Probably the longest I've seen.
-Original Message-
From: Instruct ICC [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 18, 2007 1:51 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Pirate PHP books online?
>From: Tijnema <[EMAIL PROTECTE
str-replace?
http://us.php.net/manual/en/function.str-replace.php
-Original Message-
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 21, 2007 1:17 PM
To: php-general@lists.php.net
Subject: [PHP] Is There a Function to to [yada]
. [/yada]?
I can't find one.
does php has any function that calculate a xml element in bytes or anything:
example:
ABC
DEF
If I want to calculate element , it should return 18 bytes.
thanks
Lance
t I had before. My thinking is that since my
code worked under the older version of php, it should also work under the
newer version if I can configure it correctly.
Thanks,
Lance
> Hello Lance--
>
> On 8/5/05 2:18 PM, "Lance Earl" <[EMAIL PROTECTED]> wrote:
>
>> I
t.com/ranch/page5688.php
Thanks
--
Lance Earl, President
DallyPost, Inc. - Equine Marketing/Training/Shows
Rockland, Idaho 208-548-2721 or 208-604-2721
[EMAIL PROTECTED]
http://www.dallypost.com http://www.dallypost.com/ranch
Horse Marketing - Clinics - Shows
--
PHP General Mailing List
b site
with the latest version that compiles under 4.3.x, but if you're interested
I can send you the files that changed in the meantime. It has been immensely
useful for my projects.
http://pwee.sourceforge.net
Lance
-Original Message-
From: Josh Whiting [mailto:[EMAIL PROTECTED]
S
If you have the ability to compile extensions into PHP and you're not
running under Windows you may find useful an extension I wrote that is one
solution to this problem (and more).
http://pwee.sourceforge.net/
Note that I haven't yet compiled it under anything later than PHP 4.2
If you only need to persist a handful of request-agnostic variables you may
be able to make use of an extension I wrote. Note that it doesn't work under
Windows and I haven't tested it under PHP 4.3.x.
http://pwee.sourceforge.net/
Lance
> -Original Message-
> From:
Did you try this class?
http://www.phpconcept.net/pclzip/index.en.php
> Is there function library capable of creating zip files and
> adding files to a zip archive under the windows/apache
> platform? After some extensive browsing I can only turn
> up read-only access functions.
--
PHP Genera
p.net manual for fgets and such, but no luck.
Thanks in advance,
Lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
://pwee.sourceforge.net/
Lance
> -Original Message-
> From: ssamuel [mailto:[EMAIL PROTECTED]
> Sent: Sunday, May 25, 2003 7:05 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] caching variables and preloading functions
>
>
> Hi,
>
> I am looking for a way to do th
The most efficient way to solve your problem is with a PHP extension I
developed. It handles constants and provides a type of persistent variable
too. It has been immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
> -Original Message-
> From: Mike Mannakee [
Hi all,
to quote from http://www.php.net/manual/en/function.ob-start.php
> void ob_start ( [string output_callback])
>
> An optional output_callback function may be specified. This function
> takes a string as a parameter and should return a string. The function
> will be called when ob_end_flu
managed to found out the cause. it was the cookies. it got overloaded
with data and exceed the 4k limit. the cookies was storing preferences
for too many users thus it break the limit.
B.C. Lance wrote:
hi guys,
i am facing the above problem. i couldn't explain whats causing this
beh
idea what could be the cause?
platform:
win2k, sp3
iis5
php on cgi
i have been wondering if it is iis5 that is giving the problem.
thanks,
lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
one reason that i could think of for not including session id into URL
and using cookies would be copy & paste.
users could just copy and paste the url and send it to his/her friends.
and it could be a considerably number of people. imagine couple of
people clicking on the link. that session wi
If you are not running PHP under a Windows platform the most efficient way
to solve your problem is with a PHP extension I developed. It handles
constants and provides a type of persistent variable too. It has been
immensely useful for my projects.
http://pwee.sourceforge.net/
Lance
If you happen to be running *nix (which it sounds like you are) and want to
compile the Pwee extension into PHP you can have access to constants like
SERVER_HOSTNAME.
http://pwee.sourceforge.net
Lance
> -Original Message-
> From: Spongle [mailto:[EMAIL PROTECTED]]
> Sen
I wrote the PWEE PHP extension to solve this exact problem.
http://pwee.sourceforge.net
It's great for constants but it's true power comes from "executor
persistent" variables. I haven't updated the web site but it does work with
PHP 4.2.3.
Lance
> -Origin
http://www.phpedit.net
Bryan McLemore wrote:
> Hi guys, just wondering if anyone could recomend a good editor that is based on
>windows. Thanks, Bryan
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"record found";
else
echo "record not found";
--lance
Monty wrote:
> Even though I have no record in my MySQL DB with that has "005" in the ID
> field, the following statement always reverts to Record Found, or True, no
> matter what ID I use. What'
if you can't use [] for the checkbox, the only way out is to have unique
name for each checkbox.
otherwise, php will always be returning the value of the last checked
checkbox if all checkboxes share the same name without the [].
--lance
Alex Shi wrote:
> How to ontain data from a
hm...
this should work, notice the double quotes
echo preg_replace('/(.+?)(\..+?)/e', '"\1"."1"."\2"', $fn);
Lallous wrote:
> Oh well,
>
> I could have solved it w/ too many other methods, but how can I escape the
> \{occurence} as in my case?
>
--
PHP General Mailing List (http://www.php.
and if you are gonna append '1' for all extension,
try this:
echo preg_replace('/(\..+?)/', '1$1', $fn);
Lallous wrote:
> $fn = 'test.gif';
>
> echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
>
> ?>
>
> This script will output 'testa.gif'
>
> now how can i make it produce 'test1.gif' ?
>
probably this will be faster?
$fn = str_replace(".gif", "1.gif", $fn);
Lallous wrote:
> $fn = 'test.gif';
>
> echo preg_replace('/(.+?)(\..+?)/', '\1a\2', $fn);
>
> ?>
>
> This script will output 'testa.gif'
>
> now how can i make it produce 'test1.gif' ?
>
> if i replace the: '\1a\2' with
try this instead:
session_start();
.
.
.
if (mysql_num_rows($_query)) {
$_rec = mysql_fetch_array($_query);
if (!isset($_SESSION["bkmks"]) ||
!in_array($_rec, $_SESSION["bkmks"]) {
$_SESSION["bkmks"][] = $_rec;
}
else {
echo "Already exist.";
}
}
to test:
echo
how about using the counter to store an id of the mirrors instead of
randomly picking one? this will provide you a sequential traverse
through all mirror sites.
if there are 10 sites, the counter will always be from 0 -> 9. this way
each mirror site will have equal share on hits. so if the cou
to store:
setcookie ("TestCookie[0]", "zero", time() + 3600);
setcookie ("TestCookie[1]", "one", time() + 3600);
setcookie ("TestCookie[2]", "two", time() + 3600);
or
setcookie ("TestCookie[one]", "1", time() + 3600);
setcookie ("TestCookie[two]", "2", time() + 3600);
setcookie ("TestCookie[thr
you might wanna use this instead:
$result = mysql;
if (mysql_num_rows($result) {
while
}
else {
echo 'no articles';
}
$result will always hold an int value if the query does not contain any
error. so doing a num_rows on it will be more accurate in telling you if
records are been
ahhh. let the parser do the check. works great if you are not comparing
with 2 variables :)
in fact, another way to avoid this kinda pitfall, switch is another
alternative. but of course, switch has its pitfall too. ;)
Matt wrote:
> if(0 == $row['gid'])
>
>
>
--
PHP General Mailing Li
from my experience, you don't really have to worry much on the space
issue. & is the delimiter to determine that the string terminates and a
new argument begins next. and very often, the browser will do an auto
conversion from space to %20 when you click on the link.
David T-G wrote:
>
> so
you could try this:
transmitting end:
$value) {
$searchArg .= "keylist[]=".htmlentities($value)."&";
}
?>
array from search argument
receiving end:
foreach($_GET["keylist"] as $key => $value) {
echo "{$value}";
}
David T-G wrote:
> Hi, all --
>
> I collect field keys in an array that
to do a comparison between two values / variables, you have to use ==
instead of =
= is an assignment while == is a comparison operator
if($row['gid'] == 0)
{
$rat = 110;
}
elseif($row['gid'] == 1)
{
$rat = 9.5;
}
else
{
$rat = 6.6;
}
--
PHP General Mailing List (http://w
I am trying to create a piece of code that will create and display
thumbnail image. When trying to send the image to a browser, I see
binary data rather then an image. You can see the problem at
www.dallypost.com/a/test.php
The troubled cose for this page follows:
");
if(file_exists($master_ima
you could loop through $_POST (assuming you are using a post action) to
extract the value out.
e.g.
$arr = array_keys($_POST);
for ($i = 0; $i < count($arr); $i++) {
$msg.= "{$arr[$i]}: {$_POST[$arr[$i]]}\r\n";
}
echo $msg;
b.c. lance
Jeremy Bowen wrote:
> Hey,
>
>
le. use an image as the input type. that will probably brighten
up the page.
in short, what i mean is let the user do the submit if javascript fails.
an image of brintney spear and a text on it telling the user to click on
sounds appealing to you? ;)
b.c. lance
Alberto Serra wrote:
> ðÒÉ×
hm... how about sticking couple of iframes that will load the piece of
javascript and have each of the javascript in the iframe firing at
different time? i suppose at least 1 copy of javascript will be there to
do the intended work.
Alberto Serra wrote:
> It is there already. My problem is to
you might wanna fire that javascript using onload from the body tag.
that kinda assure the page is loaded successfully before the event takes
off.
Alberto Serra wrote:
> I already have that and it works fine. The problem is when jscript is
> not working (or missing). I was trying to build up s
not from meta refresh. but javascript could do that. set a timeout that
will fire the submit event after 2 seconds. that will work.
b.c. lance
Alberto Serra wrote:
> ðÒÉ×ÅÔ!
>
> Probably a stupid question. Is there anyway to force POSTing a form from
> the refresh META?
>
&g
safe?
and not: http vs https
just my 2 cents
b.c. lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you might wanna check if register global is turned on or off.
Naintara Jain wrote:
> One thing I forgot to mention is that the same code works perfectly on the
> web server (running on Apache and a Unix flavor).
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROT
ite's ssl cert to
complete the user registration process.
hope the above make sense to you.
lance
Michael Sweeney wrote:
>Your form action parameter has an absolute url specifying an https
>protocol. When the browser submits the form, it uses the url you specify
>which is https
it is sent via https
specified in the [form] action?
note: the registration form is served from http.
could someone enlighten me on this?
regards,
b.c. lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ok. thanks for the info. guess i have to wait till it hit stable version
before deploying it on live server. for now, it's byebye to
CC/BCC/Attachments.
thanks again.
lance
Christoph Grottolo wrote:
> Lance wrote:
>
>>cool! 4.3.0dev work like a charm! but is it safe for de
cool! 4.3.0dev work like a charm! but is it safe for deployment server?
--lance
Christoph Grottolo wrote:
> You should download php4.3.0 dev. The mail enhancements have not been merged
> into the 4.2 branch. Sorry for not having been exact in my last posting.
>
> Christoph
>
i downloaded php4.2.2dev and tried my codes on it. still giving me the
same problem.
Cc: is not been parsed correctly. so i changed to cc: and CC:
no errors thrown out this time. however, only the recipient specified in
To: managed to receive the email. the one specified under CC: never gets it
yes, the + is a whitespace. hm... a bug, you could be right on that.
i dont have a copy of php4.2.1 on linux to test and see if it is just
windows2k that is giving the problem, or php4.2.1 is the main culprit.
but i did get the same piece of code to run on php4.0.6 on linux. it
runs smoothing
hm... but isn't it weird to include the cc: recipient within to: and
then specifying them under cc: again?
cos wouldn't it be more straight forward just to simply include all the
recipient in cc: to to: and omit the cc: list.
and specifying the recipient that is suppose to be in Bcc: under To:
21, 2002, 4:01:44 PM, Lance wrote:
>
>>i tried that. using different email addresses. all of them are valid.
>>still getting the same error. however, when i change the "Cc" to "cc",
>>no error was thrown. but only the To: will receive the email. the Cc:
&
i tried that. using different email addresses. all of them are valid.
still getting the same error. however, when i change the "Cc" to "cc",
no error was thrown. but only the To: will receive the email. the Cc:
never get the mail.
any other thoughts on that?
Stuart Dallas wrote:
>
> That 501
appears that 501 = Not Implemented on IIS5. but i am not sure on that.
thanks & regards,
lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
page. something like what phpBB did on the [url] thingie.
lance
Analysis & Solutions wrote:
> Hi Lance:
>
> On Sun, Jun 16, 2002 at 01:31:45AM +0800, Lance wrote:
>
>>i was developing an application that will read in the content of a html
>>file. and within
at piece of code to convert the text to a
string that eval will be able to understand. and at the end of it, i
will be echoing $rs to display the final result.
you probably will wonder why dont i use include() and require()? that
way, php will be handling all the above without requiring add
s($matchedResult[1][$idx]);
$longTxt = str_replace("[::{$matchedResult[1][$idx]}::]",
"\".$extract.\"", $longTxt);
}
lance
Analysis & Solutions wrote:
> Lance:
>
> On Fri, Jun 14, 2002 at 11:41:34PM +0800, Lance wrote:
>
>>[::word1 \"
hi, i have been banging my head against the wall for hours trying to
figure the expression out to perform the following:
covert this:
[::word1 \" word2 \" word3::]
to:
".word1 " word2 " word3."
i would definitely appreciate any help given on this.
thanks befor
Here's the function I use:
// array array_permute(array [, string])
//
// Returns an array containing the permutations of the values in an array.
//
// Example:
// $a = array(1, 2, 3);
// $p = array_permute($a)
//
// Result:
// p[0] = '1,2,3'
// p[1] = '1,3,2'
// p[2] = '2,1,3'
// p[3] = '2,3,1'
The short answer - efficiency. The FAQ has a more elaborate explanation.
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 12:14 AM
To: 'Lance Lovette'; Warrick Wilson; [EMAIL PROTECTED]
Subject: RE: [PHP] Creating a global variab
Take a look at this PHP extension and see if it will help solve your
problem. It doesn't work on Windows yet though...
http://pwee.sourceforge.net
Lance
-Original Message-
From: Warrick Wilson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 21, 2002 2:49 PM
To: [EMAIL PROT
as would be helpful
I am using php 4.0.6, apache 1.3.20, mysql 3.23.42, and Linux kernel 2.4.3
Lance Rochelle
[EMAIL PROTECTED]
http://ulands.idlegames.com
(607) 775-2681
---
Being a Systems Administrator is like
hitting yourself in the bead with a brick.
Af
http://www.php.net/manual/en/function.ceil.php
- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 2:19 PM
Subject: [PHP] Rounding a number up
> Is there a way to round a number to the next whole numb
just use GMT it is much simpler just kidding
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "php" <[EMAIL PROTECTED]>
Sent: Monday, September 10, 2001 2:07 AM
Subject: [PHP] time in annother zone
> Greetings,
>
> I've been to the online manual relating to bot
be expected? Is there any way to
have the script just give up on fsockopen after 60 seconds? The server OS is
RedHat 6.2.
Thanks!
Lance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the li
Something was changed between 4.0.5 and 4.0.6 and now there is no way to determine the
host name of the local host from a PHP script when executed in Apache. The output of
phpinfo shows that the HOSTNAME environment variable that existed in 4.0.5 is not
available in 4.0.6. This affects the retu
Thanks, but most variables such as SERVER_ADDR and SERVER_NAME are not set
when you run a PHP script from the command line (or from cron). Write a
script that calls phpinfo() and then use 'php -f' to run it and you'll see
how little environment information you get.
Lance
-O
then
on. Any ideas?
Thanks!
Lance
// string gethostaddress([string])
//
// Returns the IP address of a network interface for the local host.
// Returns false on error or if the address cannot be determined.
//
// Note: This function shells the ifconfig command so call sparingly.
//
fun
did you copy this file "php4ts.dll" into your winnt/system32 folder?
i believe you need that in order for the isapi to work
--lance
- Original Message -
From: "Greig, Euan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 07, 2001 5:44
71 matches
Mail list logo