Hi Guys
I seem to have a problem with data types in php
when executing the following script , i do not get the desired output.
i a pass url parameter (message) to the script.
if i pass a numeric value (1) , the script accepts it as '01' and vice
versa.
the same with 0 and '00'
here is the
Since in PHP you don't declare variable types, PHP does its best to guess
what you mean with your values and integers have preference to strings, so
your '01' gets converted to a plain integer 1 for the comparison.
Use === (triple) equal in the comparison and it will check for both value
AND
On 3/12/07, Richard Kurth [EMAIL PROTECTED] wrote:
Richard Kurth wrote:
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 11, 2007 2:53 PM
To: Richard Kurth
Cc: php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
Richard
Hello,
Most important change is Object Oriented Features. PHP 5 support
Object Oriented programming features. PHP 5 also supports more library than
PHP 4.:)
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web:
Hello,
Did you control your user privileges? May be, your database user
don't have enough privileges for INSERT. If your database user have enough
database privileges for INSERT, you must control your SQL. Firstly you
should write your SQL to the screen with echo ($q) and then paste this
Hello,
Becuase PHP don't convert 01 string to integer 1. In the PHP
help file :
PHP Help for type casting
When a string is evaluated as a numeric value, the resulting value and type
are determined as follows.
The string will evaluate as a float if it contains any of the characters
The problem wasn't quite there. The 304 response was correct and didn't
really cause a problem in IE7.
In fact, the problem was somewhere else. As mentioned by someone in the
PHP doc comments (http://be.php.net/manual/en/ref.session.php#64125 ),
IE is the only one to reject urls of the likes of
Just a little note, getting content-length and a lot of other stuff from
remote files is also possbiel with curl_getinfo()
www.php.net/curl_getinfo
Tijnema
On 3/11/07, Tijnema ! [EMAIL PROTECTED] wrote:
Not everyone checks his email 1000 times a day, last time he replied was
yesterday... so
Hi,
Is there any way i can limit the transfer speed when using CURL?
I'm uploading a file to a server, and i don't want the script to f*** up all
bandwidth.
TIA
Tijnema
Nathan Hawks wrote:
Hey all. This is my first post, 'coz it's the first time I've ever had
such a confusing problem with PHP.
I recently got a VPS and compiled PHP 5.2.1 with the following options:
--prefix=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs
Tijnema ! wrote:
Hi,
Is there any way i can limit the transfer speed when using CURL?
I'm uploading a file to a server, and i don't want the script to f***
up all
bandwidth.
man renice
P.D.: This is not a PHP question.
--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37,
Hi there,
I am looking for a replacement of php trunkcache. As far as I can see,
there is no further development and I had to take it offline due a
system update and compatibility issues.
What would you guys recommend for a free caching system on a LAMP
environment running php 4.x apache
On 3/12/07, Martin Marques martin@bugs.unl.edu.ar wrote:
Tijnema ! wrote:
Hi,
Is there any way i can limit the transfer speed when using CURL?
I'm uploading a file to a server, and i don't want the script to f***
up all
bandwidth.
man renice
P.D.: This is not a PHP question.
I'm
Merlin wrote:
Hi there,
I am looking for a replacement of php trunkcache. As far as I can see,
there is no further development and I had to take it offline due a
system update and compatibility issues.
What would you guys recommend for a free caching system on a LAMP
environment running
Merlin wrote:
I am looking for a replacement of php trunkcache.
I think you meant turck mmcache?
have a look at these:
http://eaccelerator.net (derivative of mmcache last release: 2006/02/15)
http://www.php-accelerator.co.uk/
--
Regards,
Clive.
Real Time Travel Connections
{No
On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote:
Hello,
Most important change is Object Oriented Features. PHP 5 support
Object Oriented programming features.
I think you mean supports more OOP features. PHP4 had plenty of OOP
support also.
Cheers,
Rob.
--
I've got the following url rewriting problem.
on page 1 i've got this
p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p
and on page 2 i've got this
$messageID = $_REQUEST[messageId];
$userID = $_REQUEST[userId];
when i check to see the values of these
On 3/12/07, Don Don [EMAIL PROTECTED] wrote:
I've got the following url rewriting problem.
on page 1 i've got this
p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p
and on page 2 i've got this
$messageID = $_REQUEST[messageId];
$userID = $_REQUEST[userId];
when i check to
2007. 03. 12, hétfő keltezéssel 05.50-kor Don Don ezt írta:
I've got the following url rewriting problem.
on page 1 i've got this
p a href='page1.php?messageId=$tmpForumuserId=$user_id' See /a/p
is this all within something like an echo statement with marks?
otherwise the values
Hello,
Yes, you are right I mean supports more OOP features. PHP 5 support
more OOP features than PHP 4. :)
--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net
Robert Cummings [EMAIL PROTECTED]
clive schrieb:
Merlin wrote:
I am looking for a replacement of php trunkcache.
I think you meant turck mmcache?
have a look at these:
http://eaccelerator.net (derivative of mmcache last release: 2006/02/15)
http://www.php-accelerator.co.uk/
thanx I tried php-accelerator. Lets see if
At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote:
Dear All,
What different between 4 and 5 ?
Edward.
1
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi everyone,
I was hoping a problem like this wouldn't arise, but it happened :(
After the dst updates on my fedora box, this broke, and worked fine before..
now gives me 3/10 instead of 3/11 for strtotime(last sunday) anyone
know why? 3/10 was saturday!
$recent_period =
Is your system time correct?
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Jake McHenry [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 6:10 PM
To:
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:16 AM
To: Richard Kurth
Cc: Stut; php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
On 3/12/07, Richard Kurth [EMAIL PROTECTED] wrote:
Richard Kurth wrote:
yepper
date
Mon Mar 12 12:25:33 EDT 2007
- Original Message -
From: Peter Lauri [EMAIL PROTECTED]
To: 'Jake McHenry' [EMAIL PROTECTED]; 'PHP-General'
php-general@lists.php.net
Sent: Monday, March 12, 2007 5:23 PM
Subject: RE: [PHP] dst and strtotime
Is your system time correct?
2007. 03. 12, hétfő keltezéssel 09.21-kor Richard Kurth ezt írta:
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:16 AM
To: Richard Kurth
Cc: Stut; php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
On
On 3/12/07, Richard Kurth [EMAIL PROTECTED] wrote:
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:16 AM
To: Richard Kurth
Cc: Stut; php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
On 3/12/07, Richard Kurth
2007/3/12, Yannick Warnier [EMAIL PROTECTED]:
The problem wasn't quite there. The 304 response was correct and didn't
really cause a problem in IE7.
In fact, the problem was somewhere else. As mentioned by someone in the
PHP doc comments (http://be.php.net/manual/en/ref.session.php#64125 ),
IE
On 3/12/07, Doctorrock [EMAIL PROTECTED] wrote:
2007/3/12, Yannick Warnier [EMAIL PROTECTED]:
The problem wasn't quite there. The 304 response was correct and didn't
really cause a problem in IE7.
In fact, the problem was somewhere else. As mentioned by someone in the
PHP doc comments
On 3/12/07, Brad Fuller [EMAIL PROTECTED] wrote:
Hey guys,
I've been banging my head against the wall trying to figure out the right
pattern to use to extract a URL from a string using preg_match().
I've been STFW for a while now, and all the examples that I find are for
extracting URLs from
The way I see it, you have two ways to avoid that error:
1) If you want to preserve indexes:
foreach ($array as $index = $name)
{
if ($name-currentHP 0)
{
$newarray[$index] = $name;
}
}
2) If you don't care about indexes at all
foreach ($array as $name)
{
if
-Original Message-
From: Tijnema ! [mailto:[EMAIL PROTECTED]
Sent: Monday, March 12, 2007 1:10 PM
To: Brad Fuller
Cc: php-general@lists.php.net
Subject: Re: [PHP] Extract url from string
On 3/12/07, Brad Fuller [EMAIL PROTECTED] wrote:
Hey guys,
I've been banging my head
tedd escribió:
At 8:14 AM +0800 3/12/07, [EMAIL PROTECTED] wrote:
Dear All,
What different between 4 and 5 ?
Edward.
1
No! -1 :-D
Unless we are talkaing about absolute difference (distance between).
--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
Robert Cummings escribió:
On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote:
Hello,
Most important change is Object Oriented Features. PHP 5 support
Object Oriented programming features.
I think you mean supports more OOP features. PHP4 had plenty of OOP
support also.
But it was
On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote:
Robert Cummings escribió:
On Mon, 2007-03-12 at 10:21 +0200, Haydar Tuna wrote:
Hello,
Most important change is Object Oriented Features. PHP 5 support
Object Oriented programming features.
I think you mean supports
Hi
The following code:
?php
$b=;
$c=df;
$a=($b and $c);
echo A = .$a;
?
yields:
A = 0 in PHP 4
and
A = in PHP 5
How can I get the same behavior in PHP5 as in PHP4
without changing the source code? Is there an option
in php.ini I'm missing?
I submit a form back to itself with
action=?PHP echo $_SERVER['PHP_SELF']; ? methode=get
yet I've a large PHP variable which I'd like to access afterwards as
well. Is this possible somehow?
O. Wyss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Robert Cummings escribió:
On Mon, 2007-03-12 at 14:18 -0300, Martin Marques wrote:
But it was quite crappy.
Don't blame the tool. I've never had a problem with the amount of OOP
support in PHP4.
That's just taste. I started feeling very comfortable when I got to use
constructors,
On 3/12/07, Otto Wyss [EMAIL PROTECTED] wrote:
I submit a form back to itself with
action=?PHP echo $_SERVER['PHP_SELF']; ? methode=get
yet I've a large PHP variable which I'd like to access afterwards as
well. Is this possible somehow?
O. Wyss
Cookie, session variable, session cookie,
- Original Message -
From: David Giragosian [EMAIL PROTECTED]
To: Otto Wyss [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Monday, March 12, 2007 8:18 PM
Subject: Re: [PHP] Posting variable outside of the post form
On 3/12/07, Otto Wyss [EMAIL PROTECTED] wrote:
I submit a
Hi guys,
I'm using stream_get_contents() to parse content of an HTTP session I
opened with fsockopen. My requests headers is just fine and transmission
is OK : (0.0007s)
But when I read the HTTP answer with stream_get_contents(), it lasts
about 2.5s !
The webpage is about 5 kB.
The
I need to goto different PHP pages in my web site depending on what
happens within some PHP code.
For example, if the user is not logged in when he goes to a page, I want to
send him to a LOGIN page.
I've have everything working fine, using the following Javascript code:
On 3/12/07, Larry Bradley [EMAIL PROTECTED] wrote:
I need to goto different PHP pages in my web site depending on what
happens within some PHP code.
For example, if the user is not logged in when he goes to a page, I want
to
send him to a LOGIN page.
I've have everything working fine, using
I think up2date is *not* up2date ;-)
Google for 'yum' and all its flags for usage...
-B
Jonathan Kahan wrote:
Hi all,
I am attempting to start the mysql rpm in Red hat as a first step
prior to downloading and activating the php-mysql rpm. I was
attempting to follow steps based on the link
I am attempting to start the mysql rpm in Red hat as a first
step prior to
downloading and activating the php-mysql rpm. I was
attempting to follow
steps based on the link below. the php rpm is loaded and
activated as I have
been able to execute php scripts. When I attempt to follow
http://www.die.net/doc/linux/man/man8/yum.8.html
I checked the above page on 'Yum and see no up2date command as you point
out. However when I tried update in the format suggested in the link, it
still gives a command not found error.
Brad Bonkoski [EMAIL PROTECTED] wrote in message
I gonna suggest something very cool: Apache Friends.
http://www.apachefriends.org/en/xampp-linux.html
Its the best option on lamp packs.
Regards.
2007/3/12, Jonathan Kahan [EMAIL PROTECTED]:
http://www.die.net/doc/linux/man/man8/yum.8.html
I checked the above page on 'Yum and see no up2date
Anyone know of anything I can check? I've been trying different things all
afternoon and I'm still getting the wrong date from strtotime. date() works
fine.
Thanks,
Jake
- Original Message -
From: Jake McHenry [EMAIL PROTECTED]
To: PHP-General php-general@lists.php.net
Sent: Monday,
On 3/12/07, Jake McHenry [EMAIL PROTECTED] wrote:
Anyone know of anything I can check? I've been trying different things all
afternoon and I'm still getting the wrong date from strtotime. date()
works
fine.
Thanks,
Jake
- Original Message -
From: Jake McHenry [EMAIL PROTECTED]
To:
On 3/12/07, Joker7 [EMAIL PROTECTED] wrote:
In news: [EMAIL PROTECTED],
Chris said:
Joker7 wrote:
Hi- as you know I have been working on adding a captcha image to my
guestbook.
Well I have managed to get a very basic one working ;) but !I have
been trying to get one that would make it
In news: [EMAIL PROTECTED],
Chris said:
Joker7 wrote:
Hi- as you know I have been working on adding a captcha image to my
guestbook.
Well I have managed to get a very basic one working ;) but !I have
been trying to get one that would make it more easy to use ,I have
it working until I add
On 3/12/07, Jake McHenry [EMAIL PROTECTED] wrote:
Anyone know of anything I can check? I've been trying different things
all
afternoon and I'm still getting the wrong date from strtotime. date()
works
fine.
Thanks,
Jake
- Original Message -
From: Jake McHenry [EMAIL PROTECTED]
On Mon, 2007-03-12 at 22:43 +0100, Satyam wrote:
The only way to actually go back in
those is to open the dropdown list for the back button and skip over one
item.
I've found clicking really fast can get you back :)
That does not happen when using the header() PHP function.
That is my
Use sessions.
http://php.net/session_start
On Mon, March 12, 2007 2:12 pm, Otto Wyss wrote:
I submit a form back to itself with
action=?PHP echo $_SERVER['PHP_SELF']; ? methode=get
yet I've a large PHP variable which I'd like to access afterwards as
well. Is this possible somehow?
O.
The problem is that URL has a very specific meaning, and includes a
BUNCH of complexities you may or may not need...
Download The Regex Coach and play around with some sample inputs
until you find what works for your needs, which is not a full-blown
URL detector, since that would be very
On Mon, March 12, 2007 7:50 am, Don Don wrote:
I've got the following url rewriting problem.
on page 1 i've got this
p a href='page1.php?messageId=$tmpForumuserId=$user_id' See
/a/p
and on page 2 i've got this
$messageID = $_REQUEST[messageId];
$userID = $_REQUEST[userId];
You
APC is getting rolled into PHP 6, allegedly.
So that's kind of a no-brainer to choose, imho, as then you can be
forwards-compatible with something that turns into the PHP Dev Teams'
maintenance work instead of your own.
Zend Cache may still be faster, as they got the jump on the PHP code
caching
You've either got path problems or up2date is not installed. That's
what 'command not found' means, it can't find the 'up2date' command.
Do you just want to start the MySQL server? Or are you trying to
update the MySQL rpm?
You should be able to start the server with a '/etc/init.d/mysql
On Mon, March 12, 2007 7:14 am, Tijnema ! wrote:
Is there any way i can limit the transfer speed when using CURL?
I'm uploading a file to a server, and i don't want the script to f***
up all
bandwidth.
I don't recall ever seeing that in curl, but check on the curl site,
linked from here:
I don't think that's valid XML, because you are mixing your content
with your XML tags in a way that will confuse the two...
If you can FIX the XML by using the CDATA stuff, or htmlentities
encoding the HTML or something, that would be best.
If you are STUCK with this bogus XML, you could
On Sun, March 11, 2007 7:14 pm, [EMAIL PROTECTED] wrote:
What different between 4 and 5 ?
-1
--
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List
Perhaps try sending various no-cache headers and a Date-Modified with
the current time-stamp in it.
You never know with IE what's actually going to work, and you could
mess up other browsers, though, so do lots of browser tests...
On Sun, March 11, 2007 6:01 pm, Yannick Warnier wrote:
Hello,
Your point are well taken. I was ale to follow directions from the mysql
website to start getting mysql to work instead of the linux site which was
the basis for my original post. Does anyone know where I can go to download
(aside from the red hat site where i would need to gather license info)
On Sun, March 11, 2007 6:00 pm, Richard Kurth wrote:
Richard Kurth wrote:
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 11, 2007 2:53 PM
To: Richard Kurth
Cc: php-general@lists.php.net
Subject: Re: [PHP] Using array_search I get error
Richard
On Sun, March 11, 2007 1:15 pm, [EMAIL PROTECTED] wrote:
Can anyone suggest why the connection might be refused?
My first guess would be that you have a firewall blocking the connection.
PHP can't poke holes in your firewall for you.
--
Some people have a gift link here.
Know what I want?
I
Riyadh S. Alshaeiq wrote:
Thank you Mickey, but I have already looked in there and the function posted
in the notes is working just fine for getting the size on disk which I am
not interested in, I need the actual size that when you download a file to a
machine you will get..
Riyadh
On Mon, March 12, 2007 1:53 pm, Vieri wrote:
The following code:
?php
$b=;
$c=df;
$a=($b and $c);
Why in the world would you use 'and' on two strings?
What is that supposed to even mean?...
Type-cast them to numbers if you want to use 'and'
--
Some people have a gift link here.
Know
Read the manual again, especially the part about variable scope near
the beginning.
On Sun, March 11, 2007 3:51 am, Otto Wyss wrote:
I want to convert weekdays with a simple function like
$wdays = array
(0 = Sonntag
,1 = Montag
,2 = Dienstag
,3 = Mittwoch
,4
Richard Lynch wrote:
I don't think that's valid XML, because you are mixing your content
with your XML tags in a way that will confuse the two...
If you can FIX the XML by using the CDATA stuff, or htmlentities
encoding the HTML or something, that would be best.
If you are STUCK with this
From: Richard Lynch [EMAIL PROTECTED]
On Sun, March 11, 2007 11:24 am, Mike Shanley wrote:
I am just not understanding what I could have possibly done wrong with
this query. All of the variables are good, without special characters
in
any sense of the word... So why isn't it importing
On Sun, March 11, 2007 12:02 pm, Edward Vermillion wrote:
On Mar 11, 2007, at 10:02 AM, tedd wrote:
At 3:05 PM +0100 3/11/07, Tijnema ! wrote:
On 3/11/07, tedd mailto:[EMAIL PROTECTED][EMAIL PROTECTED]
wrote:
At 10:05 AM +0100 3/11/07, Tijnema ! wrote:
- You could define $wdays inside
On Sun, March 11, 2007 2:57 pm, Edward Vermillion wrote:
Would the array lookup be faster for a lesser-used option/key in a
situation where there were quite a few options? (you wouldn't have to
go through the whole switch to get to the option at the end (?) or
would you? I have no idea how
On Sat, March 10, 2007 12:41 pm, Alain Roger wrote:
I'm continuing to work on securing my administration part of the
website.
based on previous posts and reading materials, I was thinking to use
the
following process :
Think of HTTPS as like a bank vault in the basement of a branch bank.
On Sat, March 10, 2007 6:28 am, Dave Goodchild wrote:
Hi guys, I have just read 'Programming PHP' (O'Reilly) and although I
think
it's a great book, I am confused about variable variables and
references -
not the mechanics, just where you would use them.
The subject of variable variables is
If you are using PHP 5.0.0 or greater, use the one class, other wise,
use the other.
The 'eval' BS is to avoid the PHP compiler complaining that you have
the same class defined twice.
Frankly, it's pretty ugly, if you ask me...
On Fri, March 9, 2007 7:08 pm, php trainer wrote:
Could someone
On Fri, March 9, 2007 5:15 am, Riyadh S. Alshaeiq wrote:
I am looking for an HTTP function for getting remote filesizes.
Keeping in
mind that I am NOT interested in getting the size on disk figure, I
need
the actual size of the files when downloaded to a local machine.
Please let
me know
It seems MUCH more likely to me that the filesize() is being used on
some kind of URL that does a re-direct -- and the filesize() may not
follow the re-direct for you...
The size is the size, in bytes.
Overhead in the local OS for block management is not something PHP
will be able to predict for
On Fri, March 9, 2007 4:27 am, Cefull Lo wrote:
Hi everyone,
Is there any function that return the name of the variable??
i.e.
$foo='abc';
$bar=somefunc($foo); // $bar='foo' here
No.
And there cannot be, as any given variable could have multiple
references and be passed around through
PHP runs in the sandbox of the HTTP apache server, but I don't think
it inherits all of its Env variables...
At any rate, the answer you probably want is:
?php setEnv('ORACLE_HOME', '/whatever/your/oracle/home/dir/is');?
NOTE:
I began as the answer guy on this mailing list back when I realized
If PHP is returning that goofy Windows 'size on disk' number, I want
to see your script...
Because, no, I don't think it does that...
On Sat, March 10, 2007 4:42 am, Riyadh S. Alshaeiq wrote:
Actually if right click on any file or folder on a machine you will
see that
there are two values
If line 140 is the $name1-name part, then you probably haven't
written your constructor correctly to cram 'Toon1' into the name
field...
On Thu, March 8, 2007 11:51 pm, Jeff Taylor wrote:
Hey all,
I'm very new to programming and PHP.
I want to pass instances of a class through an array, and
Instead of trying to re-invent the authentication wheel, just use
http://php.net/curl
On Thu, March 8, 2007 4:51 pm, Manolet Gmail wrote:
hi, i install 4 IP cameras and i want to extract the images from their
web interface that is protected be a username and password (HTTP AUTH)
and show it
For something that simple in PHP4, I didn't even bother with the
50-line expat lib solution...
A couple preg matches, or even just strtok and call it done...
//assume file_get_contents is too new...
//probably wrong, but be safe
$xml = implode('',
On Thu, March 8, 2007 11:56 am, Otto Wyss wrote:
From an arry I create a table like
foreach ($persons as $key = $pers) {
echo tdinput name=\K$key\ type=\checkbox\ .../td
td.../td
}
so each checkbox field has its own name created from $key. Yet how can
I
access
You sure you don't have something like:
?php
html
.
.
.
Or, perhaps, if you are usin CGI, and you have JUST set it up, and you
have the wrong command line flags to execute the input as PHP directly
somehow...
Does ?php phpinfo();? work?
On Thu, March 8, 2007 11:43 am, Jonathan Kahan wrote:
You have managed to confuse the isntallation process and the way Perl
works with the way PHP works.
If you want to write a custom CGI script for each and every PHP, and
prepend #!/usr/local/bin/php, you just MIGHT be able to do it the way
you're doing it...
But don't do that. :-)
Configure
create table alljokes (joke_id int unsigned auto_increment unique not
null primary key, joke text);
create table daily (whatdate date unique not null primrary key,
joke_id int);
Run a daily cron job that does this:
?php
require '/full/path/to/db/connect.inc';
$query = 'select joke_id from
DB truncation could be either of the following:
#1.
The column is not large enough to hold that data.
Research LONGTEXT and BLOB
#2.
The query buffer is not large enough to pass the data in.
Re-configure your db/php setup.
Note that cramming all that XML into the DB seems kinda silly to me,
On Mon, 2007-03-12 at 19:30 -0500, Richard Lynch wrote:
On Thu, March 8, 2007 11:56 am, Otto Wyss wrote:
From an arry I create a table like
foreach ($persons as $key = $pers) {
echo tdinput name=\K$key\ type=\checkbox\ .../td
td.../td
}
so each checkbox
On Thu, March 8, 2007 4:57 am, Ross wrote:
Can someone explain to me why this used to work but then stopped
header(Content-length: $size);
header(Content-type: $type);
header(Content-Disposition: attachment; filename=$name);
and this now works
header(Content-length: .$size);
Richard Lynch wrote:
For something that simple in PHP4, I didn't even bother with the
50-line expat lib solution...
A couple preg matches, or even just strtok and call it done...
//assume file_get_contents is too new...
//probably wrong, but be safe
$xml = implode('',
What you *COULD* do is this:
Use .htaccess to force your .css files to *really* be PHP files:
Files ~.css
ForceType application/x-httpd-php
/Files
[NOTE: Depending on your server configuration, the
application/x-httpd-php part could be *ANYTHING* the sysadmin felt was
appropriate...]
Inside
No.
You could perhaps wipe out *EVERYTHING* in $_GLOBALS, which would be
the included file and anything in the main file[s] that went before.
If you need an environment that is that pure for testing or
something, you can run a different PHP process on each file.
Otherwise, you simply have to
http://rpmfind.net/linux/RPM/
Has all the rpm's for all the distros. How did you get FC4 on the
computer? The disks should have the base rpm's for all of this, or
you can download the ISO's from the fedora site. I *think* there's a
gnome program in there somewhere that's kinda like the
anyone else have anything to add?
thanks,
Jake
On 3/12/07, Jake McHenry [EMAIL PROTECTED] wrote:
Anyone know of anything I can check? I've been trying different things
all
afternoon and I'm still getting the wrong date from strtotime. date()
works
fine.
Thanks,
Jake
- Original
On Thu, March 8, 2007 3:38 am, Ross wrote:
?php
include ('../phpscripts/connect.php');
$id = $_GET['id'];
$query = SELECT * FROM mypdfs WHERE id =$id;
$result= mysql_query($query) or die('Error, query failed');
if (!mysql_num_rows($result))
{
die(No matching records were found in
On Mon, March 12, 2007 8:05 pm, Myron Turner wrote:
Richard Lynch wrote:
For something that simple in PHP4, I didn't even bother with the
50-line expat lib solution...
A couple preg matches, or even just strtok and call it done...
//assume file_get_contents is too new...
//probably wrong,
On Mon, March 12, 2007 7:57 pm, Robert Cummings wrote:
On Mon, 2007-03-12 at 19:30 -0500, Richard Lynch wrote:
On Thu, March 8, 2007 11:56 am, Otto Wyss wrote:
From an arry I create a table like
foreach ($persons as $key = $pers) {
echo tdinput name=\K$key\ type=\checkbox\
On Wed, March 7, 2007 6:02 pm, Skip Evans wrote:
I have a need to monitor a download from the
server to the client's machine.
I'm not familiar with any mechanisms for doing so.
If anyone has any hints to point me towards I'll
get a' researching.
You cannot achieve 100% certainty here.
1 - 100 of 116 matches
Mail list logo