[PHP] PHP & MySQL -> Field Title

2007-04-29 Thread Christian Haensel
Good Morning guys and girls As I am rather lazy, I don't wanna do a data readout on my MySQL table in the following way with mysql_fetch_assoc() $data_item1=$data['xitem1']; $data_item2=$data['yitem2]; I am trying to do the following: I have the correct number of fields

Re: [PHP] Changing Session Timeout

2007-04-29 Thread Aaron Axelsen
I did some more investigating, and tracked down the problem. Apparently, even though i was setting a separate save_path inside the default save path the garbage collector was still picking up the sessions in that directory. I moved the session save_path dir to a separate location and the sessions

RE: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Brad Sumrall
I have reached the point that I have ripped the entire page out and trying to just get an echo test to work. The help files in phpbb are not helping/working. Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:18 AM To: Brad Sumrall Cc: php-gener

RE: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Brad Sumrall
Login page is located in /phpbb/login.php New page is /login.php A test echo page reviles NOTHING! Login ID does not echo. If I login @ /index.php, the echo test passes! Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 12:18 AM To: Brad Sumr

RE: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Brad Sumrall
Wait, you might be on to something! Phpbb is set to ./domain But, on the page I find nothing related to domain This is a new page. Think about it as a blank .php page first. Now, where would you point me now? Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, Ap

Re: [PHP] Delete first line of a csv file if it is the headers

2007-04-29 Thread Chris
Richard Kurth wrote: The below script will parse a csv file to a database I need to remove the first line because it is the header files and I don't need them. How can I test for that and remove them. $file = fopen($_POST['copy'], 'r') or $message .= "Could not open" . $_POST[copy] . "fo

Re: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Chris
Brad Sumrall wrote: The cookie domain in phpbb is already set at ./domain.com I doubt it's set to ./domain.com What about your session (ie NOT phpbb) ? -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

[PHP] Delete first line of a csv file if it is the headers

2007-04-29 Thread Richard Kurth
The below script will parse a csv file to a database I need to remove the first line because it is the header files and I don't need them. How can I test for that and remove them. $file = fopen($_POST['copy'], 'r') or $message .= "Could not open" . $_POST[copy] . "for reading.\n";

Re: [PHP] Running processes in windows

2007-04-29 Thread Chris
Nathan Wallis wrote: Howdy. I have an application in windows that I am running with a PHP page using exec ("start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it

RE: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Brad Sumrall
The cookie domain in phpbb is already set at ./domain.com ?? I think I need to go back to my little hack? Opinions? Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 6:45 PM To: Brad Sumrall Cc: [EMAIL PROTECTED]; php-general@lists.php.net

RE: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Brad Sumrall
You might be hitting the nail on the head. That is why I am trying to get crafty and look for two sessions. But, give me a sec and follow your lead! I am back on this project now and finishing laundry at the same time. Thank you sir! Brad -Original Message- From: Chris [mailto:[EMAIL PRO

RE: [PHP] Help me put this into phpinesse!

2007-04-29 Thread Brad Sumrall
When the page opens, connect to server (this works fine). Look for session, if no session is found, look for phpbb session (two different session possibilities) Reading through the phpbb site, it say I must have the code that is in include './phpbb/login_global.php' Brad -Original Message---

Re: [PHP] Name Capitalization

2007-04-29 Thread Leonard Burton
Hi Paul, [comments below inline] On 3/19/07, Paul Novitski <[EMAIL PROTECTED]> wrote: At 3/19/2007 07:17 PM, Leonard Burton wrote: >What my case is that I have came across a list of names that I need to >use and all of the names were in caps. From there anything is a step >in the right directi

Re: [PHP] FW: I really need help

2007-04-29 Thread Robert Cummings
On Mon, 2007-04-30 at 00:29 +0100, Stephen Hernandez wrote: > I have literally just started using php and my sql so I really hope > somebody can help me and I am addressing the right people as I don't > want to be a pain in the neck. I have tested whether PHP is installed > and running on the remot

RE: [PHP] FW: I really need help

2007-04-29 Thread Buesching, Logan J
You will have to find that information out through whoever your host is. There is no one configuration for that. The first question to ask is did you create a MySQL database? If you did, then find out whatever the host was for doing that. Many times, your host will put it at mysql.___domainnam

Re: [PHP] FW: I really need help

2007-04-29 Thread Tijnema !
On 4/30/07, Stephen Hernandez <[EMAIL PROTECTED]> wrote: I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web ser

[PHP] FW: I really need help

2007-04-29 Thread Stephen Hernandez
I have literally just started using php and my sql so I really hope somebody can help me and I am addressing the right people as I don't want to be a pain in the neck. I have tested whether PHP is installed and running on the remote web server that hosts my website and it is running ok. Next I want

Re: [PHP] phpbb / sessionid nightmare

2007-04-29 Thread Chris
Brad Sumrall wrote: The cookie it's self says PHPSESSID=26b7974a5d71c7d0bfebbf71750dac7b Path=/ Host=www.domain.com When I go to the jacked up page, I pickup this one PHPSESSID=a787e077dd18ed18cb824f664d38315d Path=/ Host=domain.com That will be your problem. A cookie created on domain.com is

Re: [PHP] uploads

2007-04-29 Thread Tijnema !
On 4/29/07, jekillen <[EMAIL PROTECTED]> wrote: Hello again; can someone point me to a system for cleaning uploaded files; embedded php scripts in image files, viruses etc, shell escape chars, anything that would be hazardous? The idea is when a file is uploaded, as soon as it gets to the server

[PHP] uploads

2007-04-29 Thread jekillen
Hello again; can someone point me to a system for cleaning uploaded files; embedded php scripts in image files, viruses etc, shell escape chars, anything that would be hazardous? The idea is when a file is uploaded, as soon as it gets to the server it is inspected, cleaned/rejected before it is us

Re: [PHP] ${}

2007-04-29 Thread Daniel Bächtle
where can I find the documentation about this "symbol"? http://www.php.net/string#language.types.string.substr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] single signon Solution php and .net

2007-04-29 Thread Buesching, Logan J
The first thing that comes to my mind is to use a database to handle session data as defined by: http://us2.php.net/manual/en/function.session-set-save-handler.php. You can then, when attempting to authenticate, pass the session ID back and forth through your applications. There may be similar t

[PHP] single signon Solution php and .net

2007-04-29 Thread Murtaza Chang
Hi, me and my fellow developer have built two applications that need to authenticate users using LDAP, we have successfully accomplished it, but the problem is his application is in .net and mine is in php, my php app needs to call secure pages of .net and vice versa, now when the user is logged o

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread tedd
At 9:53 AM -0500 4/29/07, Edward Vermillion wrote: On Apr 29, 2007, at 8:03 AM, tedd wrote: The php functions that provide data about files, do just that. They inspect the header of the file and report what they have found. How you use them, is your business. Well, from the example it looks

Re: [PHP] small picture into thumbnail

2007-04-29 Thread Robert Cummings
On Sun, 2007-04-29 at 18:15 +0200, Alain Roger wrote: > Hi, > > I would like to know how i can display small sized picture in my web > application ? > I mean in my database, picture can have max. 500 Kb, however as on 1 PHP > page i will display 20 pictures at once, i do not want to force end user

[PHP] small picture into thumbnail

2007-04-29 Thread Alain Roger
Hi, I would like to know how i can display small sized picture in my web application ? I mean in my database, picture can have max. 500 Kb, however as on 1 PHP page i will display 20 pictures at once, i do not want to force end users to download all 20 pictures (10Mb around) to have an overview.

[PHP] PHP 6: Mysql with iso-8859-1 chars outputting utf-8: "Could not convert binary string to Unicode string"

2007-04-29 Thread Rangel Reale
Hello! I have a MySQL database where all tables are in the latin1 character set, with accented (Portuguese) characters. In my php.ini I have ; Unicode settings ; unicode.semantics = on unicode.runtime_encoding = iso-8859-1 unicode.script_encoding = iso

Re: [PHP] Running processes in windows

2007-04-29 Thread Tijnema !
On 4/29/07, Nathan Wallis <[EMAIL PROTECTED]> wrote: Howdy. I have an application in windows that I am running with a PHP page using exec ("start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread Edward Vermillion
On Apr 29, 2007, at 8:03 AM, tedd wrote: At 4:46 PM -0500 4/28/07, Edward Vermillion wrote: On Apr 28, 2007, at 12:21 PM, tedd wrote: At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $ima

Re: [PHP] Re: how to detect type of image

2007-04-29 Thread tedd
At 4:46 PM -0500 4/28/07, Edward Vermillion wrote: On Apr 28, 2007, at 12:21 PM, tedd wrote: At 9:22 AM -0500 4/28/07, Edward Vermillion wrote: It should, but instead try this: $image_size = getimagesize($filename); echo $image_size['mime']; $image_size['mime'] ? Where did that come from?

[PHP] Running processes in windows

2007-04-29 Thread Nathan Wallis
Howdy. I have an application in windows that I am running with a PHP page using exec ("start.. I am wondering as to the efficiency of such a statement and how taxing it is on the server. If multiple people access a page with such a statement, what toll does it take on the server and i

Re: [PHP] Help me put this into phpinesse!

2007-04-29 Thread Tijnema !
On 4/29/07, Brad Sumrall <[EMAIL PROTECTED]> wrote: What's the sense of above line? isset is a function, that returns true or false. if $SESSION=NULL include './phpbb/login_global.php' $show="yes"; ?> What am I missing? Brad