Re: [PHP] Firebird Backup

2009-01-07 Thread Lester Caine
Sándor Tamás (HostWare Kft.) wrote: Hi, I don't know if it's Firebird or PHP question. Bit of both - probably worth moving to the firebird-php list http://groups.yahoo.com/group/firebird-php/ I want to use remote administration on one of my pages, at least do a backup for a Firebird

Re: [PHP] Firebird Backup

2009-01-07 Thread HostWare Kft.
Sure, you're right. I wouldn't normally do this, but this is the only way. I took a look at ibWebAdmin. It simply calls the host machine's Firebird gbak utility. So I had to know the exact path to this utility on the linux based web server. But I don't know. In fact I don't have any access to

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread Stuart
2009/1/7 L. Herbert lherb...@iluvmydesign.com: Does anyone know if it is possible to get a collection of YouTube videos from multiple user accounts? If so, can you provide some insight and direction? Someone more knowledgeable than me on this topic indicated that it is only possible get a

Re: [PHP] Firebird Backup

2009-01-07 Thread Lester Caine
Sándor Tamás (HostWare Kft.) wrote: Sure, you're right. I wouldn't normally do this, but this is the only way. I took a look at ibWebAdmin. It simply calls the host machine's Firebird gbak utility. So I had to know the exact path to this utility on the linux based web server. But I don't

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread L. Herbert
Stuart, Let me clarify, I am using PHP to call/receive via the YouTube API and to format/display the return data within my PHP application. I believe that has a little something to do with PHP. Forgive my presumption if otherwise. -- Eric On Jan 7, 2009, at 4:40 AM, Stuart wrote:

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread Stuart
2009/1/7 L. Herbert lherb...@iluvmydesign.com: Let me clarify, I am using PHP to call/receive via the YouTube API and to format/display the return data within my PHP application. I believe that has a little something to do with PHP. Forgive my presumption if otherwise. As I understand it

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Richard Heyes
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

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread L. Herbert
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

[PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php file at http://myhost.com/local.php ?php require_once(http://otherhost.com/remote.php;);

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Stuart
2009/1/7 Daniel Kolbo kolb0...@umn.edu: suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php file at http://myhost.com/local.php ?php

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread paragasu
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 lherb...@iluvmydesign.com wrote: Stuart,

[PHP] [Job] Senior Programmer - SQL, Python, C/C++, PHP, bash

2009-01-07 Thread Markus Wanner
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

Re: [PHP] RSS Feed on my PHP site

2009-01-07 Thread DanBarker85
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:

[PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Let's say I have these URLs http://example.com/index.php?q=gallery http://example.com/index.php?q=galleryg2_itemId=81 http://example.com/index.php?q=galleryg2_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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Stuart
2009/1/7 Ross McKay ro...@zeta.org.au: 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

[PHP] Re: Testing a URL with regex

2009-01-07 Thread Nathan Rixham
Sn!per wrote: Let's say I have these URLs http://example.com/index.php?q=gallery http://example.com/index.php?q=galleryg2_itemId=81 http://example.com/index.php?q=galleryg2_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

[PHP] Freeing memory for DOMDocument

2009-01-07 Thread Christoph Boget
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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Richard Heyes
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 both,

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
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.

[PHP] php-gtk2, anyone?

2009-01-07 Thread Zechim
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

[PHP] Re: [PHP-DB] data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
On Wed, Jan 7, 2009 at 4:54 AM, Mika Jaaksi mika.jaa...@gmail.com 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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Jim Lyons
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

[PHP] redoing website after 7 years

2009-01-07 Thread 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 .htaccess but rather not because it

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Richard Heyes
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:

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread David Giragosian
On 1/7/09, Jim Lyons jlyons4...@gmail.com 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

[PHP] Re: redoing website after 7 years

2009-01-07 Thread Al
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

[PHP] Re: redoing website after 7 years

2009-01-07 Thread Carlos Medina
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

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Stuart
2009/1/7 Lamp Lists lamp.li...@yahoo.com: 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

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Dan Shirah
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 ago. I

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Lamp Lists
From: Stuart stut...@gmail.com 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 lamp.li...@yahoo.com: hi guys, I did php/mysql based website

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Baron Schwartz
On Wed, Jan 7, 2009 at 9:17 AM, David Giragosian dgiragos...@gmail.com wrote: On 1/7/09, Jim Lyons jlyons4...@gmail.com 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

[PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Nathan Rixham
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

Re: [PHP] php-gtk2, anyone?

2009-01-07 Thread Nathan Rixham
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

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Nathan Rixham
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

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Christoph Boget
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 the

[PHP] Re: [PHP-DB] data from db to a page and then to another page

2009-01-07 Thread Shawn McKenzie
Dan Shirah wrote: On Wed, Jan 7, 2009 at 4:54 AM, Mika Jaaksi mika.jaa...@gmail.com 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

Re: [PHP] php-gtk2, anyone?

2009-01-07 Thread Nathan Nobbe
On Wed, Jan 7, 2009 at 6:49 AM, Zechim zechim@gmail.com 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

RE: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Jesús Enrique Muñoz Fernández
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

[PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Shawn McKenzie
Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php file at http://myhost.com/local.php ?php

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Stuart
2009/1/7 Shawn McKenzie nos...@mckenzies.net: Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php file at

[PHP] trigger_error() when using php cli

2009-01-07 Thread Tom Worster
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

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Shawn McKenzie wrote: Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php file at http://myhost.com/local.php ?php

Re: [PHP] Re: Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
Stuart wrote: 2009/1/7 Shawn McKenzie nos...@mckenzies.net: Daniel Kolbo wrote: Hello, suppose there is a file at http://otherhost.com/remote.php that looks like this: ?php if (!isset($safe_flag)) { die(hacking attempt); } echo You are in; ? Suppose i executed the following php

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Nathan Rixham
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:

Re: [PHP] XML package on PHP

2009-01-07 Thread Jim Lucas
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 regards,

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Micah Gersten
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 luxury, but those

Re: [PHP] Request A Collection of YouTube Videos From Multiple User Accounts using YouTube API

2009-01-07 Thread ceo
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

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread ceo
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 issues

Re: [PHP] Remote File Variable Injection Safety?

2009-01-07 Thread Daniel Kolbo
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 manner

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Robert Cummings
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 when 1Gb

Re: [PHP] php-gtk2, anyone?

2009-01-07 Thread ceo
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. --

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Robert Cummings
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 you have

Re: [PHP] trigger_error() when using php cli

2009-01-07 Thread ceo
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

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Robert Cummings
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 define

[PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
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 List

Re: [PHP] XML package on PHP

2009-01-07 Thread ceo
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

[PHP] weird curl problem

2009-01-07 Thread Rene Veerman
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

[PHP] Re: [PHP-DB] Re: data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
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: ?php $bandname = Someband; ? form name=goto_info action=band_info.php method=post input

[PHP] can a session be used in a query?

2009-01-07 Thread Terion Miller
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

Re: [PHP] weird curl problem

2009-01-07 Thread Nathan Nobbe
On Wed, Jan 7, 2009 at 11:21 AM, Rene Veerman rene7...@gmail.com 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

[PHP] Re: [PHP-DB] Re: data from db to a page and then to another page

2009-01-07 Thread Dan Shirah
On Wed, Jan 7, 2009 at 3:01 PM, Mika Jaaksi mika.jaa...@gmail.com wrote: Thanks! I got it working... Excellent, happy to help.

Re: [PHP] XML package on PHP

2009-01-07 Thread Merlin Morgenstern
^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

[PHP] Adressing XML Objects

2009-01-07 Thread Merlin Morgenstern
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: anhang location=INTERN gruppe=TITELBILD This does not work: echo

Re: [PHP] can a session be used in a query?

2009-01-07 Thread Zechim
?php session_start(); $query = SELECT * FROM admin WHERE AdminID = .$_SESSION['your_session_name'].; ? html head/head body/body /html 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

[PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
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 because I

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Nathan Nobbe
On Wed, Jan 7, 2009 at 1:10 PM, Merlin Morgenstern merli...@fastmail.fmwrote: 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

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Merlin Morgenstern
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 merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hi there, I am justing walking my first steps on XML and PHP. As I

Re: [PHP] can a session be used in a query?

2009-01-07 Thread Jim Lucas
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

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Nathan Nobbe
On Wed, Jan 7, 2009 at 1:42 PM, Merlin Morgenstern merli...@fastmail.fmwrote: 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

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Jim Lucas
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 merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hi there, I am justing walking my

Re: [PHP] Adressing XML Objects

2009-01-07 Thread Jim Lucas
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 merli...@fastmail.fm mailto:merli...@fastmail.fm wrote: Hi there, I am

Re: [PHP] Re: Freeing memory for DOMDocument

2009-01-07 Thread Rob Richards
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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Richard Heyes
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. If

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Nathan Rixham
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

[PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ashley Sheridan
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 storage

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Ashley Sheridan
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=galleryg2_itemId=81 http://example.com/index.php?q=galleryg2_itemId=100 I want to have a line of code that will extract just the

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
On Wed, Jan 7, 2009 at 3:33 PM, Frank Stanovcak blindspot...@comcast.netwrote: 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

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
Terion Miller webdev.ter...@gmail.com wrote in message news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... $result=mysql_query($query) or die('Queryproblem: ' . mysql_error() . 'br /Executedquery: ' . $query); if (mysql_num_rows($result) =

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak blindspot...@comcast.netwrote: Terion Miller webdev.ter...@gmail.com wrote in message news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... $result=mysql_query($query) or die('Queryproblem: ' . mysql_error() . 'br

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Terion Miller
On Wed, Jan 7, 2009 at 4:13 PM, Terion Miller webdev.ter...@gmail.comwrote: On Wed, Jan 7, 2009 at 4:10 PM, Frank Stanovcak blindspot...@comcast.netwrote: Terion Miller webdev.ter...@gmail.com wrote in message news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com...

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Chris
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?

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Dotan Cohen
2009/1/7 Ashley Sheridan a...@ashleysheridan.co.uk: 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

[PHP] Storing and then printing ANSI escape sequences in (and then from) variables

2009-01-07 Thread Luke Slater
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] . . $buffer

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
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 dmag...@gmail.com To: Terion Miller webdev.ter...@gmail.com Cc: Frank Stanovcak

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Ashley Sheridan
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 dmag...@gmail.com To: Terion Miller

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ashley Sheridan
On Thu, 2009-01-08 at 01:07 +0200, Dotan Cohen wrote: 2009/1/7 Ashley Sheridan a...@ashleysheridan.co.uk: 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

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Chris
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

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Ashley Sheridan
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 today boys!

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Jim Lucas
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 tempted

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ross McKay
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 of

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Frank Stanovcak
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-- ?php function breakarray($passed){ echo 'table border=1trthkey/ththvalue/th/tr'; foreach($passed as $tkey=$tvalue){ echo

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
Then Ashley Sheridan a...@ashleysheridan.co.uk 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

Re: [PHP] Because you guys/gals/girls/women/insert pc term here are a smart lot

2009-01-07 Thread Ashley Sheridan
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. Not on

Re: [PHP] redoing website after 7 years

2009-01-07 Thread Robert Cummings
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 that I wrote 7 years

Re: [PHP] Re: can a session be used in a query?

2009-01-07 Thread Paul M Foster
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-- ?php function breakarray($passed){ echo 'table

[PHP] Re: Storing and then printing ANSI escape sequences in (and then from)variables

2009-01-07 Thread Fred Briand
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] .

Re: [PHP] Storing and then printing ANSI escape sequences in (and then from) variables

2009-01-07 Thread Paul M Foster
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: $pstring =

Re: [PHP] Storing and then printing ANSI escape sequences in (andthen from) variables

2009-01-07 Thread Fred Briand
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 problem is when I try

  1   2   >