The issue isn't that I can't get colours to display on the screen, if I
were to substitute
$pstring = $connections[$channel][2] . $connections[$channel][1] . " " .
$buffer . chr(7);
for
$pstring = "\033[33m" . $connections[$channel][1] . " " .
$buffer . chr(7);
then it would work perfectl
Please read the document.
Attachment: No Virus found
F-Secure AntiVirus - www.f-secure.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Personaly I think it is a matter of your own buisiness.
How is the relationship with your customer?
How much work did you spend?
Etc etc etc?
When I read everything I hear 2 things.
1 register_globals does not have to be insecure.
But I see that you allready did the work so that is past station.
On Wed, 2009-01-07 at 22:51 -0800, It flance wrote:
> The message is to webhosting companies,
>
This is not a web hosting company.
> Israel is killing palestinian children. Some sites are are showing the fotos
> of israel's holocoste against palestinians.
> Now here is a link that shows to is
The message is to webhosting companies,
Israel is killing palestinian children. Some sites are are showing the fotos of
israel's holocoste against palestinians.
Now here is a link that shows to israelis how to fight that too:
http://www.jpost.com/servlet/Satellite?cid=1231167272840&pagename=JPos
Paul M Foster a écrit :
> On Wed, Jan 07, 2009 at 11:11:53PM +, Luke Slater wrote:
>
>> Hi,
>>
>> I'm storing ANSI escape sequences in an array, stored like this:
>>
>> $connections[$channel][2] = $info['colour'];
>>
>> $info['$colour'] would contain something like \033[33m
>>
>> Now, my probl
On Wed, Jan 07, 2009 at 11:11:53PM +, Luke Slater wrote:
> Hi,
>
> I'm storing ANSI escape sequences in an array, stored like this:
>
> $connections[$channel][2] = $info['colour'];
>
> $info['$colour'] would contain something like \033[33m
>
> Now, my problem is when I try and print it:
>
> $p
Luke Slater a écrit :
> Hi,
>
> I'm storing ANSI escape sequences in an array, stored like this:
>
> $connections[$channel][2] = $info['colour'];
>
> $info['$colour'] would contain something like \033[33m
>
> Now, my problem is when I try and print it:
>
> $pstring = $connections[$channel][2]
On Wed, Jan 07, 2009 at 08:29:42PM -0500, Frank Stanovcak wrote:
> because you so nicely didn't make fun of me...that much :)
> I keep it in it's own file and just use it as in include to probe where I
> need to.
>
> --code follows--
>
> function breakarray($passed){
> echo 'keyvalue
On Wed, 2009-01-07 at 16:16 -0800, Jim Lucas wrote:
> Nathan Rixham wrote:
> > Richard Heyes wrote:
> >>> but, I'm more concern does client has to pay the changes/upgrade or
> >>> it's still "my obligation"?
> >>
> >> Of course you charge him. Christ if I was expected to maintain stuff
> >> gratis
On Thu, 2009-01-08 at 11:37 +1100, Ross McKay wrote:
> Richard Heyes wrote:
>
> >I've not come across many databases where 20-50 tables have 10 million
> >rows each. And with a table of that size, then I might be coerced into
> >thinking about the storage requirements a little more. Maybe.
>
> No
Then Ashley Sheridan said:
Why do you need a regex here? All the URL's have the same foremost
component, which is exactly 38 characters in length. Do you perchance
need a regualr expression to parse other URL's?
If you just need to extract everything before the first ampersand, then
strpos and
because you so nicely didn't make fun of me...that much :)
I keep it in it's own file and just use it as in include to probe where I need
to.
--code follows--
keyvalue';
foreach($passed as $tkey=>$tvalue){
echo '[' , $tkey , ']';
if(is_array($tvalue)){
breakarray($tvalue);
}el
Richard Heyes wrote:
>I've not come across many databases where 20-50 tables have 10 million
>rows each. And with a table of that size, then I might be coerced into
>thinking about the storage requirements a little more. Maybe.
Not on MySQL, but I've worked on databases with hundreds of millions
Daniel Kolbo wrote:
>
> Shawn McKenzie wrote:
>> Daniel Kolbo wrote:
>>
>>> Hello,
>>>
>>> suppose there is a file at http://otherhost.com/remote.php that looks
>>> like this:
>>>
>>> >> if (!isset($safe_flag))
>>> {
>>>die("hacking attempt");
>>> }
>>> echo "You are in";
>>> ?>
>>>
>>> Supp
Nathan Rixham wrote:
Richard Heyes wrote:
but, I'm more concern does client has to pay the changes/upgrade or
it's still "my obligation"?
Of course you charge him. Christ if I was expected to maintain stuff
gratis that I wrote 7 years ago I'd be mullahed.
concurred, personally I'd be tempte
On Thu, 2009-01-08 at 11:09 +1100, Chris wrote:
> Ashley Sheridan wrote:
> > On Wed, 2009-01-07 at 18:50 -0500, Frank Stanovcak wrote:
> >> here is a handy little snippet of code I use. Just include it where you
> >> want to get a snap shot of all the variables in an app.
> >>
> >> ta ta for tod
Ashley Sheridan wrote:
On Wed, 2009-01-07 at 18:50 -0500, Frank Stanovcak wrote:
here is a handy little snippet of code I use. Just include it where you
want to get a snap shot of all the variables in an app.
ta ta for today boys!
Is it just me, or can anybody else not see the code snippe
On Thu, 2009-01-08 at 01:07 +0200, Dotan Cohen wrote:
> 2009/1/7 Ashley Sheridan :
> > Not just that, but aren't there greater overheads if the database is
> > physically larger in size? I assume that char might be a bit quicker to
> > work with than varchar, but I am pretty certain that using a fu
On Wed, 2009-01-07 at 18:50 -0500, Frank Stanovcak wrote:
> here is a handy little snippet of code I use. Just include it where you
> want to get a snap shot of all the variables in an app.
>
> ta ta for today boys!
> - Original Message -
> From: "Chris"
> To: "Terion Miller"
> Cc: "F
here is a handy little snippet of code I use. Just include it where you
want to get a snap shot of all the variables in an app.
ta ta for today boys!
- Original Message -
From: "Chris"
To: "Terion Miller"
Cc: "Frank Stanovcak" ;
Sent: Wednesday, January 07, 2009 5:29 PM
Subject:
Hi,
I'm storing ANSI escape sequences in an array, stored like this:
$connections[$channel][2] = $info['colour'];
$info['$colour'] would contain something like \033[33m
Now, my problem is when I try and print it:
$pstring = $connections[$channel][2] . $connections[$channel][1] . " " .
$buffe
2009/1/7 Ashley Sheridan :
> Not just that, but aren't there greater overheads if the database is
> physically larger in size? I assume that char might be a bit quicker to
> work with than varchar, but I am pretty certain that using a fulltext
> index on a text field is ridiculously slow compared t
I will try that, thanks, I did just try to echo the $row['AddEditAdmin']
results, as I do in the query section and in that it does return YES or NO
like I expect, but when I tried to echo it down in the page where I need to
use it guess what..no echo... am I cutting my query off somewhere?
On Wed, Jan 7, 2009 at 4:13 PM, Terion Miller wrote:
>
>
> On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak
> wrote:
>
>>
>> ""Terion Miller"" wrote in message
>> news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com...
>>
>> >> >$result=mysql_query($query) or die('Queryproblem: '
On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak wrote:
>
> ""Terion Miller"" wrote in message
> news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com...
>
> >> >$result=mysql_query($query) or die('Queryproblem: ' . mysql_error()
> >> > .
> >> > 'Executedquery: ' . $quer
""Terion Miller"" wrote in message
news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com...
>> >$result=mysql_query($query) or die('Queryproblem: ' . mysql_error()
>> > .
>> > 'Executedquery: ' . $query);
>> > if (mysql_num_rows($result) >= '1'){
>> >
On Wed, Jan 7, 2009 at 3:33 PM, Frank Stanovcak wrote:
>
> One other thought. If you are getting a blank page with no errors or out
> put at all, I've noticed that I somtimes have to get the page to load
> successfully before the web server will dish out the error.
>
> What I normally do is uploa
On Wed, 2009-01-07 at 20:24 +0800, Sn!per wrote:
> Let's say I have these URLs
>
> http://example.com/index.php?q=gallery
> http://example.com/index.php?q=gallery&g2_itemId=81
> http://example.com/index.php?q=gallery&g2_itemId=100
>
> I want to have a line of code that will extract just the
> "
On Wed, 2009-01-07 at 21:18 +, Nathan Rixham wrote:
> Richard Heyes wrote:
> >> That's for a single table.
> >>
> >
> > I've not come across many databases where 20-50 tables have 10 million
> > rows each. And with a table of that size, then I might be coerced into
> > thinking about the s
One other thought. If you are getting a blank page with no errors or out
put at all, I've noticed that I somtimes have to get the page to load
successfully before the web server will dish out the error.
What I normally do is upload a blank php page with the same name as the one
I am working o
Richard Heyes wrote:
That's for a single table.
I've not come across many databases where 20-50 tables have 10 million
rows each. And with a table of that size, then I might be coerced into
thinking about the storage requirements a little more. Maybe.
Now add another 20 to 50 tables d
> That's for a single table.
I've not come across many databases where 20-50 tables have 10 million
rows each. And with a table of that size, then I might be coerced into
thinking about the storage requirements a little more. Maybe.
> Now add another 20 to 50 tables depending on
> the database. I
Nathan Rixham wrote:
Jesús Enrique Muñoz Fernández wrote:
Maybe you could find and answer here:
*http://drupal.org/node/81037
Some people have the same problem, i was this trouble in the past and
i fix it increasing the *memory_limit *in php.ini file*
Anyway read the posts in the url that i
Jim Lucas wrote:
> Merlin Morgenstern wrote:
>> Hello Nathan,
>>
>> I upgraded to PHP 5, so I am using nativ support.
>>
>> Best regards, Merlin
>>
>> Nathan Nobbe schrieb:
>>> On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern
>>> mailto:merli...@fastmail.fm>> wrote:
>>>
>>> Hi there,
>>>
>>>
Merlin Morgenstern wrote:
> Hello Nathan,
>
> I upgraded to PHP 5, so I am using nativ support.
>
> Best regards, Merlin
>
> Nathan Nobbe schrieb:
>> On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern
>> mailto:merli...@fastmail.fm>> wrote:
>>
>> Hi there,
>>
>> I am justing walking my f
On Wed, Jan 7, 2009 at 1:42 PM, Merlin Morgenstern wrote:
> Hello Nathan,
>
> I upgraded to PHP 5, so I am using nativ support.
>
> Best regards, Merlin
>
please keep replies on-list so others may benefit from the archives.
OK, native support; so in php5 you can use DOM or SimpleXML, i assume y
Terion Miller wrote:
> I am still struggling with getting my sessions and logins to pull just the
> allotted data that each user is allowed...
> I have the session working, and can echo it to see that .. what I'm having
> problems with is this : I want to pull the data specific to each user
> ..rig
Hello Nathan,
I upgraded to PHP 5, so I am using nativ support.
Best regards, Merlin
Nathan Nobbe schrieb:
On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern
mailto:merli...@fastmail.fm>> wrote:
Hi there,
I am justing walking my first steps on XML and PHP. As I learned
from a tu
On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern wrote:
> Hi there,
>
> I am justing walking my first steps on XML and PHP. As I learned from a
> tutorial adressing is very simple:
>
> echo $xml->anbieter->immobilie->preise->kaufpreis;
this is meaningless unless we know which xml library you a
I'm working in the same kind of environment.
Make sure you are single quoting string data in MySQL
as in
$query = "SELECT * FROM admin WHERE UserName = '" . $_SESSION['user'] . "'
";
Thats a single quote, double quote, dot, session var, dot, double quote,
single quote
I wrote that out becaus
$query = "SELECT * FROM admin WHERE AdminID =
".$_SESSION['your_session_name']."";
?>
that's a basic example, did u try it?
Terion Miller escreveu:
I am still struggling with getting my sessions and logins to pull just the
allotted data that each user is allowed...
I have the sess
Hi there,
I am justing walking my first steps on XML and PHP. As I learned from a
tutorial adressing is very simple:
echo $xml->anbieter->immobilie->preise->kaufpreis;
I simply just can't figure out how to adress this structure:
This does not work:
echo $xml->anbieter->immobilie->anhaenge->
^THANX: Will upgrade to php5.
c...@l-i-e.com wrote:
XML in PHP4? Don't. :-)
It was very painful and with all kinds of quirks, from my limited experience.
PHP5 was a breeze.
Consider hosting a quick/easy service on a PHP5 box to convert XML to PHP
serialized data or something as well. Could
On Wed, Jan 7, 2009 at 3:01 PM, Mika Jaaksi wrote:
> Thanks! I got it working...
>
Excellent, happy to help.
On Wed, Jan 7, 2009 at 11:21 AM, Rene Veerman wrote:
> Hi..
>
> I have created a setup between my shared hoster and my home debian box,
> where the shared hosting accepts video uploads, and forwards them to the
> home server for video-conversion (which isn't allowed on shared hosting).
>
> In ord
I am still struggling with getting my sessions and logins to pull just the
allotted data that each user is allowed...
I have the session working, and can echo it to see that .. what I'm having
problems with is this : I want to pull the data specific to each user
..right... so far I either get all d
>
> Thanks for the aswers, but there is still some problems.
>
> I tested this code(below) and it works but when I add it to the rest of my
> code it stops working.
>
> Here's the working code:
>
> page1:
>
> $bandname = "Someband";
> ?>
>
>
>
>
>
> and page2:
>
> Bandname is !
>
> ___
Hi..
I have created a setup between my shared hoster and my home debian box,
where the shared hosting accepts video uploads, and forwards them to the
home server for video-conversion (which isn't allowed on shared hosting).
In order to kick off the import process, I need the shared hoster to
XML in PHP4? Don't. :-)
It was very painful and with all kinds of quirks, from my limited experience.
PHP5 was a breeze.
Consider hosting a quick/easy service on a PHP5 box to convert XML to PHP
serialized data or something as well. Could be less painful.
Or just upgrade, since PHP4
Hi there,
I need pars an xml file with php 4. There seems to be a good package out
there "active link xml". However, last development was 2004. Is there
something new around which you would recommend over active link?
Thank you for any hints.
Best regards,
Merlin
--
PHP General Mailing Lis
On Wed, 2009-01-07 at 06:07 -0800, Lamp Lists wrote:
> hi guys,
> I did php/mysql based website for one my client 7 years ago, in time when
> register_globals was on by default.
> hosting company upgraded server to php5/mysql5 and turned globals off. the
> site is doesn't work any more.
> I can d
As I recall, PHP CLI overrides the error_log setting and uses STDERR by design.
You'll have to re-direct it elsewhere in the shell.
Or a custom error_handler that uses a specific file name in error_log call.
Using error_log alone will not help.
--
PHP General Mailing List (http://www.
On Wed, 2009-01-07 at 13:26 +, Richard Heyes wrote:
> >>So where's the advantage of VARCHAR ?
> >
> > Less space on disc = less data retrieved from disc = faster data
> > retrieval - sometimes. If you have small columns, a small number of
> > rows, or both, then char columns may be faster. If y
Irrespective of the GTK2 bit, PHP can connect just fine with other servers
using sockets and stream wrappers and good ol' file_get_contents on a URL.
Whether you can tweak those in useful ways at fast enough speeds to do what you
want is more up to your skill than PHP's feature-set.
--
PH
On Wed, 2009-01-07 at 10:49 +, Richard Heyes wrote:
> >> it' may seem like a small amount of space but when you have 8
> >> char(255) columns in a table with 10 million rows you'd noticed the
> >> difference considerably.
>
> It is a small amount of space. Perhaps it was necessary in the days
c...@l-i-e.com wrote:
If register_globals is "on" (ewww!) at otherhost.com, then "?safe_flag" on the
URL will get in.
This is one of the reasons why register_globals should be OFF.
NOTE:
The code you gave does not describe the circumstances whereby $safe_flag is
"set". There could be all man
If register_globals is "on" (ewww!) at otherhost.com, then "?safe_flag" on the
URL will get in.
This is one of the reasons why register_globals should be OFF.
NOTE:
The code you gave does not describe the circumstances whereby $safe_flag is
"set". There could be all manner of other issue
It is the wrong list to ask.
The answer is that the YouTube API does not support that.
You'll have to merge and sort in PHP.
I recommend you cache the results for all external web services, as a general
principle.
For a large number of videos, you'll want to merge/sort in DB, not in P
Richard Heyes wrote:
>>> it' may seem like a small amount of space but when you have 8
>>> char(255) columns in a table with 10 million rows you'd noticed the
>>> difference considerably.
>>>
>
> It is a small amount of space. Perhaps it was necessary in the days
> when 1Gb Hdds were a luxur
Merlin Morgenstern wrote:
> Hi there,
>
> I need pars an xml file with php 4. There seems to be a good package out
> there "active link xml". However, last development was 2004. Is there
> something new around which you would recommend over active link?
>
> Thank you for any hints.
>
> Best rega
Jesús Enrique Muñoz Fernández wrote:
Maybe you could find and answer here:
*http://drupal.org/node/81037
Some people have the same problem, i was this trouble in the past and
i fix it increasing the *memory_limit *in php.ini file*
Anyway read the posts in the url that i wrote.
> To: php-g
Stuart wrote:
2009/1/7 Shawn McKenzie :
Daniel Kolbo wrote:
Hello,
suppose there is a file at http://otherhost.com/remote.php that looks
like this:
Suppose i executed the following php file at http://myhost.com/local.php
http://otherhost.com/remote.php";);
?>
Is there any way to g
Shawn McKenzie wrote:
Daniel Kolbo wrote:
Hello,
suppose there is a file at http://otherhost.com/remote.php that looks
like this:
Suppose i executed the following php file at http://myhost.com/local.php
http://otherhost.com/remote.php";);
?>
Is there any way to get local.php to display
php is delivering error messages to STDERR when i call trigger_error() in
the script. i'm using the command:
php -c /usr/local/etc/php.ini -f script.php
and the config file has log_errors and error_log set correctly afaict (it
works for scripts run via apache).
is this to be expected (and hence
2009/1/7 Shawn McKenzie :
> Daniel Kolbo wrote:
>> Hello,
>>
>> suppose there is a file at http://otherhost.com/remote.php that looks
>> like this:
>>
>> > if (!isset($safe_flag))
>> {
>>die("hacking attempt");
>> }
>> echo "You are in";
>> ?>
>>
>> Suppose i executed the following php file at
Daniel Kolbo wrote:
> Hello,
>
> suppose there is a file at http://otherhost.com/remote.php that looks
> like this:
>
> if (!isset($safe_flag))
> {
>die("hacking attempt");
> }
> echo "You are in";
> ?>
>
> Suppose i executed the following php file at http://myhost.com/local.php
>
> requi
Maybe you could find and answer here:
http://drupal.org/node/81037
Some people have the same problem, i was this trouble in the past and i fix it
increasing the memory_limit in php.ini file
Anyway read the posts in the url that i wrote.
> To: php-general@lists.php.net; jcbo...@yahoo.com
> D
On Wed, Jan 7, 2009 at 6:49 AM, Zechim wrote:
> anyone who works with php-gtk2 and can tell me if I can make something like
> msn, skype, a little chat (is it possible to connect to a webserver and sabe
> in my local server using gtk2?)
>
since gtk is just a gui layer, i would imagine you can do
Dan Shirah wrote:
> On Wed, Jan 7, 2009 at 4:54 AM, Mika Jaaksi wrote:
>
>> I already can get the data from database to a page. Now I want to make link
>> from that data to next page and on that new page it should show all the
>> data
>> that is related.
>>
>> example:
>>
>> data from database
>>
>> Does anyone know how (or even if) I can explicitly free the memory
>> used for the DOMDocument? Any help/advice would be greatly
>> appreciated!
> I've had exactly the same problem and couldn't find a way around it; even
> after unsetting every variable in my scripts inside a for/while loop; in
Richard Heyes wrote:
but, I'm more concern does client has to pay the changes/upgrade or it's still "my
obligation"?
Of course you charge him. Christ if I was expected to maintain stuff
gratis that I wrote 7 years ago I'd be mullahed.
concurred, personally I'd be tempted to offer to find or
Zechim wrote:
anyone who works with php-gtk2 and can tell me if I can make something
like msn, skype, a little chat (is it possible to connect to a webserver
and sabe in my local server using gtk2?)
probably best off asking on the php gtk list ;)
--
PHP General Mailing List (http://www.php.ne
Christoph Boget wrote:
I'm running through a large dataset and am generating/manipulating XML
documents for each record. What's happening is that after a while, I
get a fatal error saying:
Fatal error: Allowed memory size of 167772160 bytes exhausted (tried
to allocate 32650313 bytes)
Each XML
On Wed, Jan 7, 2009 at 9:17 AM, David Giragosian wrote:
> On 1/7/09, Jim Lyons wrote:
>>
>> There are other factors. If a table is completely fixed in size it makes
>> for a faster lookup time since the offset is easier to compute. This is
>> true, at least, for myisam tables. All books on tun
From: Stuart
To: lamp.li...@yahoo.com
Cc: php-general@lists.php.net
Sent: Wednesday, January 7, 2009 8:29:48 AM
Subject: Re: [PHP] redoing website after 7 years
2009/1/7 Lamp Lists :
> hi guys,
> I did php/mysql based website for one my client 7 years ago, in tim
>
> > but, I'm more concern does client has to pay the changes/upgrade or it's
> still "my obligation"?
>
> Of course you charge him. Christ if I was expected to maintain stuff
> gratis that I wrote 7 years ago I'd be mullahed.
>
> --
> Richard Heyes
I agree with Richard.
I bought a car 7 years
2009/1/7 Lamp Lists :
> hi guys,
> I did php/mysql based website for one my client 7 years ago, in time when
> register_globals was on by default.
> hosting company upgraded server to php5/mysql5 and turned globals off. the
> site is doesn't work any more.
> I can define globals on again in .htac
Lamp Lists schrieb:
hi guys,
I did php/mysql based website for one my client 7 years ago, in time when
register_globals was on by default.
hosting company upgraded server to php5/mysql5 and turned globals off. the site
is doesn't work any more.
I can define globals on again in .htaccess but rat
Lamp Lists wrote:
hi guys,
I did php/mysql based website for one my client 7 years ago, in time when
register_globals was on by default.
hosting company upgraded server to php5/mysql5 and turned globals off. the site
is doesn't work any more.
I can define globals on again in .htaccess but rat
On 1/7/09, Jim Lyons wrote:
>
> There are other factors. If a table is completely fixed in size it makes
> for a faster lookup time since the offset is easier to compute. This is
> true, at least, for myisam tables. All books on tuning that I have read
> have said the CHAR makes for more effici
> but, I'm more concern does client has to pay the changes/upgrade or it's
> still "my obligation"?
Of course you charge him. Christ if I was expected to maintain stuff
gratis that I wrote 7 years ago I'd be mullahed.
--
Richard Heyes
HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www
hi guys,
I did php/mysql based website for one my client 7 years ago, in time when
register_globals was on by default.
hosting company upgraded server to php5/mysql5 and turned globals off. the site
is doesn't work any more.
I can define globals on again in .htaccess but rather not because it cou
There are other factors. If a table is completely fixed in size it makes
for a faster lookup time since the offset is easier to compute. This is
true, at least, for myisam tables. All books on tuning that I have read
have said the CHAR makes for more efficient lookup and comparison that
VARCHAR.
On Wed, Jan 7, 2009 at 4:54 AM, Mika Jaaksi wrote:
> I already can get the data from database to a page. Now I want to make link
> from that data to next page and on that new page it should show all the
> data
> that is related.
>
> example:
>
> data from database
> -->
> page1 where listed:
>
>
anyone who works with php-gtk2 and can tell me if I can make something
like msn, skype, a little chat (is it possible to connect to a webserver
and sabe in my local server using gtk2?)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart wrote:
>Got anything to back that up?
>
>http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/
Thanks, that'll do nicely. Even that strapped chicken test with tables
that are likely cached shows enum as the fasted, albeit only marginally.
>>So where's the advantage of VARCHAR ?
>
> Less space on disc = less data retrieved from disc = faster data
> retrieval - sometimes. If you have small columns, a small number of
> rows, or both, then char columns may be faster. If you have large
> columns of varying actual length, lots of rows, or
I'm running through a large dataset and am generating/manipulating XML
documents for each record. What's happening is that after a while, I
get a fatal error saying:
Fatal error: Allowed memory size of 167772160 bytes exhausted (tried
to allocate 32650313 bytes)
Each XML file I generate (an mani
Sn!per wrote:
Let's say I have these URLs
http://example.com/index.php?q=gallery
http://example.com/index.php?q=gallery&g2_itemId=81
http://example.com/index.php?q=gallery&g2_itemId=100
I want to have a line of code that will extract just the
"http://example.com/index.php?q=gallery"; part of t
2009/1/7 Ross McKay :
> Oh, and for a column with a limited range of values, enum beats 'em all!
Got anything to back that up?
http://www.mysqlperformanceblog.com/2008/01/24/enum-fields-vs-varchar-vs-int-joined-table-what-is-faster/
-Stuart
--
http://stut.net/
--
PHP General Mailing List (ht
Richard Heyes wrote:
>So where's the advantage of VARCHAR ?
Less space on disc = less data retrieved from disc = faster data
retrieval - sometimes. If you have small columns, a small number of
rows, or both, then char columns may be faster. If you have large
columns of varying actual length, lots
Let's say I have these URLs
http://example.com/index.php?q=gallery
http://example.com/index.php?q=gallery&g2_itemId=81
http://example.com/index.php?q=gallery&g2_itemId=100
I want to have a line of code that will extract just the
"http://example.com/index.php?q=gallery"; part of the URL.
I am
Thanks for the help guys, much appreciated!
--
View this message in context:
http://www.nabble.com/RSS-Feed-on-my-PHP-site-tp21293513p21330097.html
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Hello,
I'm pleased to announce the following position in our team of talented
engineers. I personally enjoy working here and recommend this job to the
dynamic, motivated self-starter looking for his/ her next career step in
the open source world. Please feel free to forward this to anybody
interes
hi Herbet,
i am interested on what your are looking for. maybe you just have to
write a PHP script to
loop through every yourtube account. btw, if you found the solutions,
please tell me or we can work on the solutions together?
On 1/7/09, L. Herbert wrote:
> Stuart,
>
>> PHP can do a great many
2009/1/7 Daniel Kolbo :
> suppose there is a file at http://otherhost.com/remote.php that looks like
> this:
>
> if (!isset($safe_flag))
> {
> die("hacking attempt");
> }
> echo "You are in";
> ?>
>
> Suppose i executed the following php file at http://myhost.com/local.php
>
> require_once("htt
Hello,
suppose there is a file at http://otherhost.com/remote.php that looks
like this:
Suppose i executed the following php file at http://myhost.com/local.php
http://otherhost.com/remote.php";);
?>
Is there any way to get local.php to display "You are in", by only
modifying local.php?
Stuart,
PHP can do a great many things, but it cannot remotely change the
functionality of a third party API.
Is that part of your understanding of my request? To clarify further
for you, I am simply asking my question here (in addition to other
reference/discussion forums) to see if any
>> it' may seem like a small amount of space but when you have 8
>> char(255) columns in a table with 10 million rows you'd noticed the
>> difference considerably.
It is a small amount of space. Perhaps it was necessary in the days
when 1Gb Hdds were a luxury, but those days are long gone. In the
1 - 100 of 106 matches
Mail list logo