RE: [PHP] filetype() and exec() issues

2007-04-23 Thread Buesching, Logan J
You may also want to check and make sure that your ISO isn't more than 4GB. IIRC, I had some troubles with extremely large files and using filetype() on them. But then again, it may have just been something on my own end. -Logan -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTE

RE: [PHP] What determines the relative directory, and can I control it?

2007-04-23 Thread Buesching, Logan J
[snip] Can I somehow manipulate any of the PHP scripts involved so that the HTML within layout.php will look first in it's own directory for inclusion of files, such as CSS and javascript and anything else? [/snip] If a user accesses http://site.com/index.php, then the HTML that is spit back out

Re: [PHP] What determines the relative directory, and can I control it?

2007-04-23 Thread Tijnema !
On 4/24/07, Dave M G <[EMAIL PROTECTED]> wrote: PHP Users, I am developing a content management system, and one of the goals is to separate out the design entirely from the PHP scripting and content. All the PHP scripts which contain the logic that drives the site are all in the web site's root

Re: [PHP] filetype() and exec() issues

2007-04-23 Thread Tijnema !
On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: This question is a two parter a) anyone else noticing filetype() failing on ISO image files? Warning: filetype(): Lstat failed for /var/lib/samba/some/file.iso Nope, didn't fail for me. But what exactly do you want to know about the

RE: [PHP] Standard Address Book?

2007-04-23 Thread Daevid Vincent
You might look into vCards -- most mail clients load/import them. http://en.wikipedia.org/wiki/VCard > -Original Message- > From: Jim Lucas [mailto:[EMAIL PROTECTED] > Sent: Monday, April 23, 2007 8:48 AM > To: [EMAIL PROTECTED] > Cc: php-general@lists.php.net > Subject: Re: [PHP] Stan

RE: [PHP] Find MAC Address in PHP

2007-04-23 Thread Daevid Vincent
This may help you (find .tgz file at the page bottom): http://daevid.com/examples/dhcp/ This is a little web tool I use to see who is on my LAN D.Vin > -Original Message- > From: Nathaniel Hall [mailto:[EMAIL PROTECTED] > Sent: Friday, April 20, 2007 1:00 PM > To: php-general@lists.ph

Re: [PHP] retrieve POST body?

2007-04-23 Thread Justin Frim
Myron Turner wrote: I'm not sure I follow here, because the Perl script would be saving the posted file to disk. It would then send back a redirect with the name of the file in the query string of the url, which would point to a php script that would then read the file from the disk. So the f

[PHP] What determines the relative directory, and can I control it?

2007-04-23 Thread Dave M G
PHP Users, I am developing a content management system, and one of the goals is to separate out the design entirely from the PHP scripting and content. All the PHP scripts which contain the logic that drives the site are all in the web site's root directory, where the main index.php is locate

Re: [PHP] help needed to write an installation script for my php application

2007-04-23 Thread Ed Oceo
On Mon, April 23, 2007 5:36 am, [EMAIL PROTECTED] wrote: > > Hi There, > > Could you please help me to write an installation script to install a > php based application in Windows. > NSIS, nullsoft installer is a nice installer to use for Windows applications. http://nsis.sourceforge.net/Main_Pag

[PHP] help needed to write an installation script for my php application

2007-04-23 Thread guruswamy.gurusamy
Hi There, Could you please help me to write an installation script to install a php based application in Windows. 1. I have WAMP5.0 running my my IBM T43 laptop. 2. I have created a php application. 3. I would like to know how to create an installation Wizard for my application. What it sho

Re: [PHP] retrieve POST body?

2007-04-23 Thread Myron Turner
Justin Frim wrote: You are correct, I'm not very familiar with Perl. If I do go the route of using something else to accept the form data and then executing the PHP script, I'd be leaning more toward somehow executing the PHP script directly rather then sending back a redirect to the user-age

[PHP] filetype() and exec() issues

2007-04-23 Thread dev
This question is a two parter a) anyone else noticing filetype() failing on ISO image files? Warning: filetype(): Lstat failed for /var/lib/samba/some/file.iso b) I have a script that during processing will eventually call exec('/usr/bin/file -bi '.$file) over 1000 times, I've added a co

[PHP] Re: Standard Address Book?

2007-04-23 Thread Timothy Murphy
Jim Lucas wrote: >> Is there any kind of standard >> for a PHP/SQL/XML addressbook? >> > Are you asking if there is any type of standard for building an address > book in general? > > That you are using PHP/SQL/XML is your preference. > > With a few clicks from Google, I found these: > http://g

Re: [PHP] "Template" class: Simple question

2007-04-23 Thread Micky Hulse
Micky Hulse wrote: What is standard practice for calling your template classes? In other words: Is it good practice to create the class object for every page view, or is there a better way to cache the object? I am using PHP 4.x. Ack! Just found this great thread on Sitepoint:

[PHP] "Template" class: Simple question

2007-04-23 Thread Micky Hulse
Hello, I have a couple classes that generate navigation and a few other dynamic xHTML template-based things... What is standard practice for calling your template classes? In other words: Is it good practice to create the class object for every page view, or is there a better way to cache th

Re: [PHP] Debug recursion

2007-04-23 Thread Jim Lucas
kioto wrote: Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I have db table like this: table cat

Re: [PHP] Compilation? OT

2007-04-23 Thread Robert Cummings
On Mon, 2007-04-23 at 23:03 +0200, Børge Holen wrote: > On Monday 23 April 2007 22:58, Davide Bernard wrote: > > I am very new to PHP. Can anyone tell me how do I > > compile my php 5 code? > > First you need a J++ compiler.. then you probably need some C# knowledge... > that would certainly not

Re: [PHP] Compilation?

2007-04-23 Thread Davide Bernard
Actually I want to compile my php 5 code --with-crack[=DIR] option. in order to use the crack lib. >>> "Daniel Brown" <[EMAIL PROTECTED]> 4/23/2007 4:27 PM >>> Or if you're wondering how to compile a .php file for viewing on the web (or running from the command line), then don't worry about it

Re: [PHP] Compilation?

2007-04-23 Thread Daniel Brown
Or if you're wondering how to compile a .php file for viewing on the web (or running from the command line), then don't worry about it. PHP is meant to be compiled at runtime. If you're looking to find out how to *obfuscate* your code (such as what companies like WHM Autopilot and Modernbi

Re: [PHP] Compilation? OT

2007-04-23 Thread Børge Holen
On Monday 23 April 2007 22:58, Davide Bernard wrote: > I am very new to PHP. Can anyone tell me how do I > compile my php 5 code? First you need a J++ compiler.. then you probably need some C# knowledge... that would certainly not hurt. After a good night sleep. Take a left out of the Bed, Turn r

Re: [PHP] Compilation?

2007-04-23 Thread Tijnema !
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: I am very new to PHP. Can anyone tell me how do I compile my php 5 code? First you should tell us which operating system you are using, is it windows or is it linux? If it's windows you'd be better off using the binary. If you're using lin

[PHP] Compilation?

2007-04-23 Thread Davide Bernard
I am very new to PHP. Can anyone tell me how do I compile my php 5 code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] should I be looking to eliminate all notices?

2007-04-23 Thread Robert Cummings
On Mon, 2007-04-23 at 15:56 -0400, Justin Frim wrote: > Edward Vermillion wrote: > > > > > On Apr 21, 2007, at 6:35 PM, Justin Frim wrote: > > > >> I've always gone by the rule that if you're making software that > >> other people will see or use, make it clean. > >> Sometimes I'll "cheat" and s

Re: [PHP] should I be looking to eliminate all notices?

2007-04-23 Thread Justin Frim
Edward Vermillion wrote: On Apr 21, 2007, at 6:35 PM, Justin Frim wrote: I've always gone by the rule that if you're making software that other people will see or use, make it clean. Sometimes I'll "cheat" and stick a @ symbol in front of a line to shut up errors and warnings for that part

Re: [PHP] retrieve POST body?

2007-04-23 Thread Justin Frim
You are correct, I'm not very familiar with Perl. If I do go the route of using something else to accept the form data and then executing the PHP script, I'd be leaning more toward somehow executing the PHP script directly rather then sending back a redirect to the user-agent to re-send the re

RE: [PHP] PHP excel capability

2007-04-23 Thread tg-php
I had some issue when I tried CSV in the past. I don't know if there was some issue with use of commas in the data and not getting Excel to properly use "some data, with commas", "some more data" so that it'd omit the quotes as well or what. In the end, for the quick and dirty throwaway projec

Re: [PHP] using ImageTTFText in a page

2007-04-23 Thread Daniel Brown
Is it still in the same directory as the font you're calling? Try removing all spaces from the filename, then modifying it in your PHP code, calling the full path (or relative path). If none of this seems to be the case, make sure your PHP script isn't trying to output anything before this co

[PHP] using ImageTTFText in a page

2007-04-23 Thread Ross
This script work on it's own but fails when emeded in another php file. All I want to do is create a function and call it passing a text parameter. Also is it possbile to output the image to a file insert the url into a tag? -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Buesching, Logan J
No. That is a common mistake amongst the uninformed. Addslashes doesn't take into effect character encodings, while mysql_real_escape_string does. Please take a look at this article: http://shiflett.org/blog/2006/jan/addslashes-versus-mysql-real-escape-st ring -Logan -Original Message

RE: [PHP] make a gif

2007-04-23 Thread Jay Blanchard
[snip] I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. [/snip] It is. http://www.php.net/gd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] make a gif

2007-04-23 Thread John Taylor-Johnston
I want to print [EMAIL PROTECTED] into a gif or png. How do I do this? Thanks. It seems too simple to ask. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Debug recursion

2007-04-23 Thread Eric Butera
On 4/23/07, kioto <[EMAIL PROTECTED]> wrote: Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I h

[PHP] Debug recursion

2007-04-23 Thread kioto
Hi all i have found a bug in my db class when i use the recursion. I try to use the adjacency list model to develop a three menu but when i call the function in recursive way i loose data because the value returned from the fetch seem to be empty. I have db table like this: table catalog ID | Name

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: Tried this at the root level and got the response below... sudo: pecl: command not found I am on a Suse linux box and I install the PEAR package with YAST. >>> "Eric Butera" <[EMAIL PROTECTED]> 4/23/2007 10:17 AM >>> On 4/23/07, Davide Be

Re: [PHP] Standard Address Book?

2007-04-23 Thread Jim Lucas
Timothy Murphy wrote: Is there any kind of standard for a PHP/SQL/XML addressbook? Are you asking if there is any type of standard for building an address book in general? That you are using PHP/SQL/XML is your preference. With a few clicks from Google, I found these: http://groupware.openof

Re: [PHP] Compilation?

2007-04-23 Thread Eric Butera
On 4/23/07, Davide Bernard <[EMAIL PROTECTED]> wrote: I just upgraded to PHP 5 from PHP 4. I am using the crack lib function for password dictionary uniqueness. However, now my web page utilizing the crack-lib is crashing with " PHP Fatal error: Call to undefined function crack_opendict()". Doe

[PHP] Compilation?

2007-04-23 Thread Davide Bernard
I just upgraded to PHP 5 from PHP 4. I am using the crack lib function for password dictionary uniqueness. However, now my web page utilizing the crack-lib is crashing with " PHP Fatal error: Call to undefined function crack_opendict()". Does anyone know of a specific Crack-lib module I can compi

Re: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread Eric Butera
On 4/23/07, WeberSites LTD <[EMAIL PROTECTED]> wrote: I'm trying to understand from the examples why anyone that has get_magic_quotes_gpc() returning true would need to use stripslashes() and then mysql_real_escape_string(). wouldn't that just add slashes to the same places? berber Yes, sort

Re: [PHP] Why do i get this error message?

2007-04-23 Thread Edward Vermillion
On Apr 22, 2007, at 5:47 PM, H.T wrote: I get this error message when i try to check my site on localhost running IIS and PHP 5.1.2 : Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 24576 bytes) in ... and it points to the line which is pure html code! What co

Re: [PHP] unset() side effects in functions

2007-04-23 Thread Robert Enyedi
Rob, Thanks for the detailed explanation about the reference assignments that are happening in the background. Now things start to make sense :-) Regards, Robert Robert Cummings wrote: On Mon, 2007-04-23 at 14:04 +0300, Robert Enyedi wrote: I'm doing some experimenting with the unset() (http

Re: [PHP] php seems to be inconsistent in its handling of backslashes ... maybe?

2007-04-23 Thread Robert Cummings
On Mon, 2007-04-23 at 08:36 -0500, Philip Thompson wrote: > On Apr 22, 2007, at 1:29 AM, Richard Lynch wrote: > > > On Sun, April 22, 2007 12:54 am, [EMAIL PROTECTED] wrote: > >> -- or maybe it's just the PCRE extension > >> -- or quite likely I have got something wrong > >> > >> Hello members, >

RE: [PHP] Preventing SQL Injection/ Cross Site Scripting

2007-04-23 Thread WeberSites LTD
I'm trying to understand from the examples why anyone that has get_magic_quotes_gpc() returning true would need to use stripslashes() and then mysql_real_escape_string(). wouldn't that just add slashes to the same places? berber -Original Message- From: Buesching, Logan J [mailto:[EMAIL

[PHP] Standard Address Book?

2007-04-23 Thread Timothy Murphy
Is there any kind of standard for a PHP/SQL/XML addressbook? -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] php seems to be inconsistent in its handling of backslashes ... maybe?

2007-04-23 Thread Philip Thompson
On Apr 22, 2007, at 1:29 AM, Richard Lynch wrote: On Sun, April 22, 2007 12:54 am, [EMAIL PROTECTED] wrote: -- or maybe it's just the PCRE extension -- or quite likely I have got something wrong Hello members, I'm hoping you could enlighten me. Using error_reporting = E_ALL | E_STRICT, I t

Re: [PHP] Hi

2007-04-23 Thread Sancar Saran
On Monday 23 April 2007 15:09, Nathan Wallis wrote: > Hi guys and girls, > > > > I have question for you all. > > > > I have developed a flash application which is a test for students. For > each test their is an accompanying excel spreadsheet that has information > related to each question they

Re: [PHP] unset() side effects in functions

2007-04-23 Thread Auto-Deppe, C. Haensel
Hey Rob, even though I have never worked with that feature (nor have I even read about it), your explanation made the usage of unset() very clear, even to me... the german coder *g* That's gonna go into my printed code folder :o) Thanks for the explanation! Chris - Original Message

Re: [PHP] unset() side effects in functions

2007-04-23 Thread Robert Cummings
On Mon, 2007-04-23 at 14:04 +0300, Robert Enyedi wrote: > I'm doing some experimenting with the unset() (http://php.net/unset) > language construct in a PHP 5.2.1 installation. I did not find any > documentation on what happens to an identically named local variable's > value after an unset is p

Re: [PHP] Find MAC Address in PHP

2007-04-23 Thread Davi
Em Domingo 22 Abril 2007 03:12, Richard Lynch escreveu: > On Fri, April 20, 2007 3:00 pm, Nathaniel Hall wrote: > > > > does not give me any > > output.  I have copied arp to a place that the apache user can execute > > from and ensured arp is executable. > > Use exec and the extra args to get er

Re: [PHP] Hi

2007-04-23 Thread Wolf
You can cheat... If you have MySQL running on that server, write the results to a DB (so that lost emails/files/scores can be recovered) and then do a data pull from it at the end, making the file a csv file. Or, just make your file a csv file and email it out... There are a number of class

Re: [PHP] Hi

2007-04-23 Thread Zoltán Németh
2007. 04. 23, hétfő keltezéssel 22.09-kor Nathan Wallis ezt írta: > Hi guys and girls, > > > > I have question for you all. > > > > I have developed a flash application which is a test for students. For each > test their is an accompanying excel spreadsheet that has information related >

[PHP] Hi

2007-04-23 Thread Nathan Wallis
Hi guys and girls, I have question for you all. I have developed a flash application which is a test for students. For each test their is an accompanying excel spreadsheet that has information related to each question they have answered and whether they got it right or wrong. I am receiv

RE: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-23 Thread Don Don
Hi Logan, yes reason being the linux box is live and the windows box is dev. "Buesching, Logan J" <[EMAIL PROTECTED]> wrote: You say they both have the same config, so do you mean that they both have the same version of PHP, same computer setup (Memory, CPU speed, HDD speed), both running the sam

[PHP] unset() side effects in functions

2007-04-23 Thread Robert Enyedi
I'm doing some experimenting with the unset() (http://php.net/unset) language construct in a PHP 5.2.1 installation. I did not find any documentation on what happens to an identically named local variable's value after an unset is performed. Let me start with this example: in function (init):

Re: [PHP] Session Variable in Global Scope

2007-04-23 Thread Jochem Maas
post some code please ... Sascha Braun wrote: > Hi Fellows, > ... > > I'm actually not using cookies, using cookies is the highly recommended over passing the SID via the url, if your loosing the session data for some [ajax] request then that means php is not seeing or recieving the SID via

[PHP] Session Variable in Global Scope

2007-04-23 Thread Sascha Braun
Hi Fellows, I'm getting this warning on my website: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You ca

Re: [PHP] Best practices to ensure compatibility with PHP 6

2007-04-23 Thread ufan100
Davi wrote: Em Domingo 22 Abril 2007 18:54, [EMAIL PROTECTED] escreveu: ... Have a look at PHP metting [1] and PHP-wiki [2]... =] [1] - http://www.php.net/~derick/meeting-notes.html [2] - http://oss.backendmedia.com/PhP60 Thank you for the links - it will get me started. -- PHP General Mail

Re: [PHP] PhpMyAdmin slow on windows but fast on linux

2007-04-23 Thread Juergen Wind
Don Don wrote: > > Hi all how can i make my phpmyadmin run fast on windows ? I installed > phpmyadmin on a linux and windows machines, but the windows version runs > (executes) too slow, i.e. it takes to long for a page to be loaded, while > it take less that 3 secs for the linux version. Both