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 database.

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 t

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 : > 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 collection of YouTube

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 know.

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: 200

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 : > 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 you're wanting to request

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: 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?

Re: [PHP] Remote File Variable Injection Safety?

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

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 wrote: > Stuart, > >> PHP can do a great many

[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 interes

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: http://w

[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=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

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 : > 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

[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=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

[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 mani

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

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 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: > >

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 VARCHAR.

[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 cou

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: http://www

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 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

[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 rat

[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 rat

Re: [PHP] redoing website after 7 years

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

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

Re: [PHP] redoing website after 7 years

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

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 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

[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 XML

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 (http://www.php.ne

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

[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 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 >>

Re: [PHP] php-gtk2, anyone?

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

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 > D

[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: > > 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

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

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

[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: 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

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

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

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: php-g

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 rega

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 luxur

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 P

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 issue

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 man

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

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. -- PH

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 y

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 (http://www.

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 d

[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 Lis

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: > > $bandname = "Someband"; > ?> > > > > > > and page2: > > Bandname is ! > > ___

[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 d

Re: [PHP] weird curl problem

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

[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 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: This does not work: echo $xml->anbieter->immobilie->anhaenge->

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

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

[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 becaus

Re: [PHP] Adressing XML Objects

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

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 mailto:merli...@fastmail.fm>> wrote: Hi there, I am justing walking my first steps on XML and PHP. As I learned from a tu

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 > ..rig

Re: [PHP] Adressing XML Objects

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

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 >> mailto:merli...@fastmail.fm>> wrote: >> >> Hi there, >> >> I am justing walking my f

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 >>> mailto:merli...@fastmail.fm>> wrote: >>> >>> Hi there, >>> >>>

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 i

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. I

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 d

[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 o

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 s

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=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 > "

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 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

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

2009-01-07 Thread Frank Stanovcak
""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'){ >> >

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 wrote: > > ""Terion Miller"" wrote in message > news:37405f850901071354p7abd0aa8i7c96cf69c81fa...@mail.gmail.com... > > >> >$result=mysql_query($query) or die('Queryproblem: ' . mysql_error() > >> > . > >> > 'Executedquery: ' . $quer

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 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: '

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 : > 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

[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] . " " . $buffe

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" To: "Terion Miller" Cc: "Frank Stanovcak" ; Sent: Wednesday, January 07, 2009 5:29 PM Subject:

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" > To: "Terion Miller" > Cc: "F

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 : > > 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

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 snippe

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 tod

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 tempte

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

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

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

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-- keyvalue'; foreach($passed as $tkey=>$tvalue){ echo '[' , $tkey , ']'; if(is_array($tvalue)){ breakarray($tvalue); }el

Re: [PHP] Testing a URL with regex

2009-01-07 Thread Sn!per
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

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. > > No

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

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-- > > function breakarray($passed){ > echo 'keyvalue

[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: > > $p

  1   2   >