;]."");
JP> $omonth = date("m", $odate);
JP> print($odate['year']."");
JP> $oyear = date("Y", $odate);
JP> print($oyear."");
JP> }
JP> Any help would be appreciated.
JP> James
What's the 'normal' way of storing array values in mysql table?
--
tim
__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
dear all,
i ran my code below on ie and it works. but when i use netscape 4.76 under linux, i
only get the
message "submitted" even though i've checked some fields.
what do i need to add to make it work with netscape under linux?
code follows:
";
for($i=0;$i";
}
}
else {
?>
method=post
s like:
while (list($key) = each($_FILES['picname'])) {
echo "$key ";
while(list($key2,$val2) = each($_FILES['picname'][$key])){
echo "[$key2] $val2 ";
}
echo '';
}
print_r($_FILES) will show you all.
--
regards
Hi,
Thursday, October 17, 2002, 12:58:02 AM, you wrote:
AG> I checked and register_globals is set to "on" - so that can't be the
AG> problem.
Stop teasing us and show us the code you have on those pages :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php
uot;Str1: '$str1' ";
echo "Str2: '$str2' ";
echo "Extracted: '".find_string($string,$str1,$str2)."'";
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ust one
JT> value. Any suggestions? Thanks a bunch!
(untested :)
$result = mysql_query("select count(*) as cnt from database", $db);
$staticvar += mysql_result($result,0,0);
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
so you can serialize it as is and store it.
Playback is simple too
';
}
Un-checked boxes are not returned in the post and checked ones
return Yes I think.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> table. Some of you people are pretty freakin' smart. :)
JN> One note though, when you pull the serialized data out, you may have to
JN> stripslashes before unserialize...
JN> $school = unserialize ( stripslashes ( $row['school'] ) );
JN> Tom Rogers wrote:
>&
ing: Invalid argument supplied for foreach() in
/www/u1255/shop_testing/show_cart.php on line 30
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ollection of functions that PHP will call for encryption
and such. In windows they will be something like mcrypt.dll or for unix libmcrypt.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hallo,
does anybody know a class or function (or module) in php to do some
simple digital watermarking or steganoraphie. Perhaps in combination
with the image functions?
Thanks in advance,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
--
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Tom Woody
Systems Administrator
NationWide Flood Research, Inc.
phone: 214-631-0400 x209
fax: 214-631-0800
Don't throw your computer out the window,
throw the Windo
ndows it works as expected.
>
> Know someone how could i make the '+' left intact? Please help.
>
>
> echo $_POST['test'];
> ?>
>
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: h
processing script to determine whether the
> checkbox was checked?
>
> Thanks,
> Don
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Tom Woody
Systems Administrator
NationWide Flood Resear
quot;SELECT MAX(receipt_id) from receipts");){
echo 'Error: '.mysql_error().'';
}else{
$shippingvar = mysql_result($query,0,0);
}
return $shippingvar;
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
is to if,love is to yes"
ahsb> http://www.nothingness.org/
ahsb> ---
I ran into that problem inserting word tables into xml, i ran the
stuff through iconv() to clean it up.
$title = iconv("ISO-8859-1","UTF-8",$title);
Not sure if that was the right way to do it but it worked :)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ace === false)&& $lspace > 0){
$t = substr($t,0,$lspace);
for($x=$lspace;$x < ($maxchar+2);$x++){
$t .= '.';
}
}
$text = $t;
}
echo $text.'';
--
rega
1;
$purchitem[1] = 3;
$purchitem[2] = 4;
$s = '0';
while(list($key,$val) = each($purchitem)){
$s[$val-1] = '1';
}
echo "s = $s ";
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
an entry with a value from javascript.
vaue> Thanks
This is a post method:
function doit(){
testval = "Hello";
document.form1.result.value = testval;
document.form1.submit();
}
should end up with $_POST['result'] = Hello
--
regards,
Tom
--
PHP General Mail
Fku1MdIRAkhnAKClykcWMUwiWbslAYklx3xm1qsjSQCdFAXh
EN> roJ+kMyayqdY1UXxL6S5xuQ=
EN> =1Zaw
EN> -END PGP SIGNATURE-
You probably need this patch
http://download-2.gingerall.cz/download/sablot/Sablot-0.96.1.patch
You can also use LDFLAGS=-lstdc++ before configuring PHP
more info at http://php.benscom.com/manual/en/ref.xslt.php
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t; >>
>> >> More important though is the first problem of generically
>> >> accesing a member variable based on the passed in name of the
>> >> variable. In other words I want to be able to choose which array I
>> >> operate on by passing in the name of that array.
>> >>
>> >>
>> >> Any help on this problem is appreciated. I know there must be a way to
>> >> do this. Please let me know if I haven't formulated the problem
>> >> clearly enough.
>> >>
>> >> jck
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
Amazing what you learn on this list :)
This works:
class Example
{
var $array1 = array();
var $array2 = array();
var $array3 = array();
function add2array($array_name,$val){
$this->{"$array_name"}[] = $val;
}
}
$t = new Example();
$t->add2array('array1',25);
$t->add2array('array2',26);
$t->add2array('array3',"Hello");
echo '';
print_r($t);
echo '';
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
MM> echo '';
MM> print_r($t);
MM> echo '';
MM> Cleaner and more scalable, no?
Yes and to fit the original 3 seperate arrays it would be
function add2array($element_name, $val){
$this->$array[$element_name][] = $val;
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
patch
>> http://download-2.gingerall.cz/download/sablot/Sablot-0.96.1.patch
>>
>> You can also use LDFLAGS=-lstdc++ before configuring PHP
>> more info at http://php.benscom.com/manual/en/ref.xslt.php
EN> - --
EN> Jesus Christ: Imaginary Playmate to Millions of Adults!
Hi,
Thursday, November 7, 2002, 1:11:43 PM, you wrote:
EN> Same error.
>>
As a test try compiling statically into apache...That is the way I
have php at the moment.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
/local/lib/libsablot.so: undefined reference to `vtable for
EN> __cxxabiv1::__vmi_class_type_info'
EN> /usr/local/lib/libsablot.so: undefined reference to `operator new(unsigned)'
EN> collect2: ld returned 1 exit status
EN> make: *** [dummy] Error 1
EN> = End of
; $this->id = $id;
TM> }
TM> }
?>>
TM> end third code snippet
TM> Well that's it. I hope someone can help me on this. I'm not a person who
TM> asks for help very quick. I prefer finding it out myself, also because I'm
TM> pretty experienced at PHP. But this is the first time I really can't figure
TM> out what it is... I really NED you now :)
TM> Good luck and a lot of thanks in advance,
TM> Tim.
TM> P.S. I'm using PHP4, I do not know this code's reliability and behaviour
TM> when running it with previous versions.
Try this for your load() function:
function load()
{
$newChild =& new Child(1);
$this->add(&$newChild);
$this->property = 'state 1';
}
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Friday, November 8, 2002, 10:43:10 PM, you wrote:
MK> Hi all,
MK> has anyone an elegant (and faster) way of converting 'string' to
MK> array('s','t','r','i','n','g'), other then
MK> for($i=0; $ihttp://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
a
> > CGI-Interpreter??
> >
> > How to start and fire up?
> > Please help.
> >
> > Oliver Etzel
> > lowcost domains
> > lowcost serverhousing www.t-host.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
)) {
JH> echo(">");
JH> echo(">");
JH> echo(" name=\"quantities[]\">");
JH> printf(" %s%s", $myrow["name"],
JH> $myrow["details"]);
JH>
on.
>
> This will save you much time...
>
> On Thu, 2002-11-14 at 12:34, michael wrote:
> > hello
> >
> > I'm trying to generate ms-word files with php. Until now, I can
> > create a document and even insert page-breaks. Is there any
> > tutorials goi
is
even possible.
Something tells me I have seen this done before but I am not sure.
Thanks for any help on this. I have done some Googling and Archive
search for something related and have come up blank.
--
Tom
Don't throw your computer out the window,
throw the Windows out of your com
URL's for the robot.
>
> regards Wilbert
>
>
> -
> Pas de Deux
> Van Mierisstraat 25
> 2526 NM Den Haag
> tel 070 4450855
> fax 070 4450852
> http://www.pdd.nl
> [EMAIL PROTECTED]
> -
--
Tom Woody
Systems
bmitting a
form):
\n";
}
else {
echo "Upload Problem\n";
}
?>
Filename:
--
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey there-
I'm trying to use an .htaccess file to parse .php files as .html does anyone
know how to do this? It doesn't work with the same structure as parsing the
.shtml files.
any suggestions would be great.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
L
> AddType application/x-httpd-php .html
> AddType application/x-httpd-php .htm
>
> ----- Original Message -
> From: "Tom Ray" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 04, 2002 2:41 PM
> Subject: [PHP] PHP as HTML
>
>
hi
you will need to find the hex values for each individual number which i
think should be (without the hash)
76763636
Tom
At 05:06 PM 5/06/2002, johannes reichardt wrote:
>hi everybody, i am new to this list & php
>and i have a big question that i would love to be answered ;)
&
you know, that's a good question. How would I determine that on the server?
Peter wrote:
>Tom, this does work fine... doing what Kevin says...
>ie the
>
>AddType application/x-httpd-php .html
>AddType application/x-httpd-php .htm
>
>is PHP installed as a mo
stalled php as.
>
>
>>you know, that's a good question. How would I determine that on the server?
>>
>>Peter wrote:
>>
>>
>>
>>>Tom, this does work fine... doing what Kevin says...
>>>ie the
>>>
>>>AddType appl
I've been playing with cookies, and I've been able to write information
to a cookie, but now what I want to do is pull that information from the
cookie. Is there something special I need to do to pull that info or
should I just be to get that data by delcaring a variable in the php
script?
-
when I do that it comes up with
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING'
Justin French wrote:
>you should be able to access it via $_COOKIE['name'], or what I do, $cookie
>= $_COOKIE['name'].
>
>Justin F
Hi
I think you have to use fread to load the binary file, here is a quick
function that will do what you want. It a little bit safer than just
blindly changing hex values in the file, it only checks the colour table.
Tom
";
$gif[$x]
HI
Just a thought, if your on a windows box you will need to ad a 'b' to the
fiopen function like
fopen($file, "br")
Tom
At 09:43 PM 5/06/2002, freestylez wrote:
>it almost works :) unfortunatly the gif file seems to be corrupted at some
>point,
>but anyhow - i am
hi
what gif is getting corrupted?, it works ok with the one you gave.
To see what all those flag things are have a look at the gif spec at
http://www.goice.co.jp/member/mo/formats/gif.html
unpack puts the binary string into an array, flag gives some info as to the
colour index table
Tom
At 09
not qualified to say :) but it seems that it is not
only the xslt that is affexted as I could not load the xsl file using fread
either unless I gave the full path.
Tom
At 05:02 AM 6/06/2002, Bret Mogilefsky wrote:
>Hello php-gen'ers,
>
>
>I've been whacking my head ag
Hi
In your php config give it the path to the apache source files not the
install directory.
Tom
At 11:55 AM 6/06/2002, Ray Hunter wrote:
>When I try to compile php as a static module in php I get errors that the
>mod_php4.c cannot find the header file.
>
>Here is my php c
Hi
Have a look at http://www.mohawksoft.com/phoenix/msession.html
I just started playing with it and seems to be ok, except when I try my own
session handler it chucks a core dump now, but if it is as good as they
reckon I wont need my own handler :)
Tom
At 03:17 PM 6/06/2002, Cameron Just
I want to be able to search a flat file line by line looking for data
such as a username then display all the information in that line. Is
there some way to search the following format:
record1:username:info:info:info
record2:username:info:info:info
record3:username:info:info:info
So if someo
that arrays start with element 0 */
>if ($your_array[1]) == "some name" {
>/* routine to display entire row */
>}
>/* continue processing loop */
>
>--
>Gaylen
>PHP KISGB v4.0.5 Guest Book http://www.gaylenandmargie.com/phpwebsite/
>
>"Tom Ray" <[EMAIL
Is there a way to do this with PHP? I couldn't find it in the online
docs and the archive search is offline :(
thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know I've asked this before but I don't believe I asked the question
correctly.
I have a flat file database that is delimited with colons. This file
will have new records added to it on a regular basis. What I want to do
is be able to search that file based on a keyword that is inputted by a
Hi
Why not just do it in one call?
$fp = fopen("data/news.txt","w");
$np = fputs($fp,$pr.$ag);
fclose($fp);
Tom
At 04:17 AM 10/06/2002, Kris wrote:
>Hi all,
>
>I'm having some trouble getting my basic news script to work. Here is the
>code:
>
>
ture :)
I'll drop you a note when it's complete
--
Tom Sommer
E-Mail: webmaster(a)tsn.dk
Web: http://www.tsn.dk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to use the include function in some PHP scripts, but when I do
include 'config.inc'; or include 'config.php;
It returns all the information in the file when I look at my test php
file (which calls the include) Anyone know why this is?
--
PHP General Mailing List (http://www.php.ne
= 'yellow':
Why is that?
John Holmes wrote:
>Umm...that's what it's supposed to do...it's "including" it...
>
>---John Holmes...
>
>
>
>>-Original Message-
>>From: Tom Ray [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday
7;s what it's supposed to do...it's "including" it...
>
>---John Holmes...
>
>
>
>>-Original Message-
>>From: Tom Ray [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, June 11, 2002 9:29 PM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP] Include
I want to use unlink() to delete a wildcard, but at the moment I keep
getting parse errors. Here's what happening:
I'm mucking around with some login stuff, when a user logs in it writes
a flat file that collects some information about them, the flat file is
created with the name username.date
();
}
}
function close(){
//close open sockets, etc.
mail("yourEmailHere","callback","Function Close called\n");
}
}
$clean = new cRoute;
echo "exiting now ";
exit;
?>
Tom
At 04:21 PM 12/06/2002, William_dw -- Sqlcoders wrote:
atetime part at all? The usernames are unique, right?
>
>---John Holmes...
>
>
>
>>-Original Message-
>>From: Tom Ray [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, June 11, 2002 11:06 PM
>>To: [EMAIL PROTECTED]
>>Subject: [PHP] Unlink question mo
At 01:18 PM 12/06/2002, Lars Torben Wilson wrote:
>On Tue, 2002-06-11 at 20:12, Tom Rogers wrote:
> > Hi
> > One way is to create an external reference to your class and use that in
> > the cleanup function. To make the cleanup function visible it has to be
> > decl
function close(){
//close open sockets, etc.
mail("yourEmailHere",$this->txt."Callback","Function Close called\n");
}
}
$c1 = new cRoute("First:");
$c2 = new cRoute("Second:");
echo "exiting now ";
?>
Tom
Hi
It was the register_shutdown_function(array($this, 'cleanup')); syntax
that had me stummped and looking for magic :)
Tom
snip
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Any word on when glob() will be in the production version?
thanks for the help Miquel.
- Original Message -
From: "Miguel Cruz" <[EMAIL PROTECTED]>
To: "Tom Ray" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 2:01 AM
S
I have an array question. I want to use a dynamic array but I don't know
how to do this. What I want to do is this, I want to write a form script
that takes the elements of the form and submits them in the array then I
want to do a loop and check to see if each element in the array has a
value
Try this:
echo "$catalog[unitprice]";
in my experience I've only been able to use the echo() without the
quotation marks if I'm calling a function, for variables you need the
quotation marks.
Hope this helps.
Phillip Perry wrote:
>Can someone tell me why this doesn't work?
>The $mycart ar
Hi
itemcd and unitprice should be in quotes I think if they are keys in an array.
$catalog["itemcd"]
$catalog["unitprice"]
Tom
At 10:56 PM 12/06/2002 -0400, Phillip Perry wrote:
>Can someone tell me why this doesn't work?
>The $mycart array is fine and the
Hi
Then I guess you will have to add some debug code
try this before the while loop and make sure your if ($value ==
$catalog["itemcd"]) will produce a match (and you do need the quotes really :)
echo "".print_r($catalogue)."".print_r($mycart)."";
To
fancy layouts.
Tom
At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote:
>Hi
> Anybody knows a good printer friendly version php script
> thank´s in advance
>
>Ângelo Marcos Rigo
>Webmaster Colégio Anchieta
>http://www.colegioanchieta.g12.br
>
>
>
t=yes) just regenerate the page without any fancy layouts.
Tom
At 01:41 PM 13/06/2002 -0300, Angelo Marcos Rigo wrote:
>Hi
> Anybody knows a good printer friendly version php script
> thank´s in advance
>
>Ângelo Marcos Rigo
>Webmaster Colégio Anchieta
>http
Hi
Here is a messy solution, but I think it does what you want using strtotime()
(well worth looking up in the manual :)
";
?>
Tom
At 02:55 AM 16/06/2002 +0300, Rosen wrote:
>Hi,
>how can I determine dates (start & end ) in one week.
>I.e. 30th week is between 22.0
And what are the directory/file permissions where you are writing the
archive files?
- Original Message -
From: "1LT John W. Holmes" <[EMAIL PROTECTED]>
To: "Kris Vose" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 11:54 AM
Subject: Re: [PHP] server problems
> A
I'm trying to use header("Location to redirect to a URL that has variables
in it, ie.
http://www.blah.com/phones.php?phn_indvId=1&phn_indvType=client
When it redirects I get the url minus everything after the first ampersand.
I tried using htmlentities with no joy like so...
$retUrl = htmlspeci
Nope, doesn't work.
Maybe it's something with the server/PHP setup?
> From: Richard Baskett <[EMAIL PROTECTED]>
> Date: Fri, 21 Jun 2002 16:35:11 -0700
> To: Tom Beidler <[EMAIL PROTECTED]>, PHP General
> <[EMAIL PROTECTED]>
> Subject: Re: [PHP] hea
;
>
>Warning: Failed to write session data (files). Please verify that the
>current setting of session.save_path is correct (/tmp) in
>/usr/local/apache/htdocs/cp/login.php on line 43
This below is your problem, you must be outputting white space so it can
Ignore me ..I just got up :)
Tom
At 01:09 PM 22/06/2002 +1000, Tom Rogers wrote:
>At 01:09 PM 21/06/2002 -0500, Rick Kukiela wrote:
>>Ok, I have never, in my entire life, have such a persistant little freakin
>>problem with a programming language... It started out while i was
(
[35073] => Array
([
[views]=> Array
(
[1] => 10
[0] => 6
)
)
)
Tom
At 01:09 PM 28/06/2002 +1200, Morgan Grubb wrote:
>I have a large dataset which can contain m
missed a couple of quotes and braces there :)
while ($row = mysql_fetch_assoc($result)) {
$vehicles[$row['dealer_id']][$row['vehicle_id']]['views'][] =
$row['page_views'];
}
At 02:03 PM 28/06/2002 +1000, Tom Rogers wrote:
>Hi
>I
ctory - and I get
this message whe debugging:
Warning: open(/tmp/sess_4a16ecf3a438538a71530971c6ccf2bb, O_RDWR)
failed: Invalid argument (22) in Unknown on line 0
Just in case you wonder, access rights are OK
Can anybody help pls ? I'm desperate
}
case "3"
do something3;
break;
}
Tom
At 05:18 AM 30/06/2002 -0400, Leif K-Brooks wrote:
>I have a switch in a script I'm working on. I need to have case 1 and 2
>both to to case 3, but without case 1 going through case 2. Is this possible
Hi
enable_trans_sid does exactly what you are trying to re create, if no
cookies are available it modifies all the urls automatically.
and transparently
Tom
At 12:48 PM 1/07/2002 +1000, Justin French wrote:
>Hi,
>
>As discussed a few months back, I'm interested attempting to
Hi
Ok probably the easiest is just to add
to the end of each url, if cookies are supported SID will be an empty string.
Tom
At 01:59 PM 1/07/2002 +1000, you wrote:
>I'm aware of this. What I'm trying to do is emulate this process on servers
>which have not compiled with --
n the html.
Your quite welcome to the files if it'll help.
Tom
At 04:03 PM 1/07/2002 +1000, Justin French wrote:
>on 01/07/02 3:36 PM, Tom Rogers ([EMAIL PROTECTED]) wrote:
>
> > Ok probably the easiest is just to add
> > to the end of each url, if cookies are supported SI
"level" . $i . "Name";
but that seems cloogey.
Thanks,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ted safety features...
Tom
At 10:50 PM 7/07/2002 -0500, Greg Donald wrote:
>On Sun, 7 Jul 2002, Chris Shiflett wrote:
>
> >I refer you to this URL:
> >
> >http://www.tuxedo.org/~esr/faqs/smart-questions.html
>
>I refer you to this URL: http://php.net/ini_set and ask why
Hi
Even with the correct spelling it returns null (php-4.2.1)
$x = ini_get('register_globals');
echo "current settings = ".$x."";
Tom
At 12:43 PM 8/07/2002 +0800, Jason Wong wrote:
>Tom Rogers said:
> > Hi
> > If you check with phpinfo() you will
re could I get more
information about doing something like this.
Once again, I'm not sure if this is possible using PHP and any other
additional information would be greatly appreciate. Also let me know if the
entire calculation would help.
Thanks,
Tom
--
PHP General Mailing List (http://w
session if you need it.
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Actaully, neither Apache or PHP is at fault. The ErrorDocument (either in
httpd.conf or an .htaccess file) follows absolute paths, so you are calling
your engine.php out of the root directory of the machine. So the question
is, do you have engine.php in the / folder? If not you can put it there or
advance
Post a bit of the code so we can see what you are doing
--
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
KL> Output in IE6:
KL> this should be printed out: this is a second line
KL> regards,
KL> KK
The browser will ignore newlines use instead.
to use newlines the text could be enclosed in text\n more
text\n tags, but is probably what you need.
--
Best regards,
Tom
e the same way. This is
consistent across both Netscape and IE.
I currently have my session hanlding on the page set to the following:
session_cache_limiter('none');
session_start();
Has anyone seen this behaviour before? Anyone know how to fix it?
- Tom
--
PHP General Mailing List (htt
e apple_label to current
move orange_label to old apple
move apples/oranges_label to old orange
else
move orange_label to current
move apple_label to old_orange
move apples/oranges_label to old apple
endif
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ee Verizonmail at www.verizonmail.com
do a str_replace('/www.','/',$parseddomain); then do your preg_replace
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
erizonmail at www.verizonmail.com
No it should just get rid of the www so your left with domain.com
and now that I see what you are after it should have been:
$domain = str_replace('www.','',$domain);
and if you need the dot now add it in
$parseddomain = '.'.$dom
AB> --with-iconv=/home/a.bonnefoy/portage/libiconv-1.9.
AB> But now configure complains asking me to reinstall libiconv.
AB> What to do???
AB> Thanks,
AB> Alain.
What happens if you just use --with-iconv ?
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
new db($count);
}
return $_miInstancia;
}
}
$conexiondb =& db::getInstancia(1);
print_r($conexiondb);
$conexiondb2 =& db::getInstancia();
print_r($conexiondb2);
?>
(The $count was just to prove we only have the one instance)
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have any ideas as to what is going on? Or a suggestion as to what to
MAS> look for?
MAS> Thanks,
MAS> -Mike
You may also need to recompile gd
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Friday, August 29, 2003, 4:09:14 PM, you wrote:
AB> Hi Tom,
AB> configure ... --with-iconv
AB> doesn't change anything, configure is ok but make ends with:
AB> gcc: /usr//lib/.libs/libiconv.so: No such file or directory
AB> gcc: /opt//lib/.libs/libiconv.so: No such file
apache is on Win machines,
CC> where I haven't had this problem before. I know this is off topic but u guys
CC> know everything, so any help would be greatly appreciated. Thanks
make sure apache is compiled with and using mod_dir (it should by
default..)
--
regards,
Tom
--
PHP Gen
storeing the last accessed time in the $_SESSION
array and check it on each start.
I think by default garbage is collected 1 in every 100 hits. (1%)
If it done on every hit it would start to impact performance on busy
sites.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
501 - 600 of 1845 matches
Mail list logo