RE: [PHP] PhP and Java login trouble

2007-05-09 Thread Brad Sumrall
. PhP makes so much more sense. This javascript integration is really giving me a headache! Suggestions? Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 2:16 AM To: Brad Sumrall Cc: php-general@lists.php.net Subject: Re: [PHP] PhP and Java

RE: [PHP] cURL: multipart/form-data POST request with empty file part

2007-05-04 Thread Brad Fuller
Emmanuel Raulo-Kumagai wrote: Sent: Friday, May 04, 2007 8:44 AM To: php-general@lists.php.net Subject: [PHP] cURL: multipart/form-data POST request with empty file part Hello I'm writting a client in PHP for some CMS. I need to send an HTTP POST request with a multipart/form-data

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
] Sent: Friday, May 04, 2007 9:43 PM To: Brad Sumrall Subject: Re: [PHP] parse error }else{ Brad Sumrall wrote: Hi folk, I am writing a login in script and get the following: Parse error: parse error, unexpected T_ELSE in /home/content/c/u/t/cuteirka/html/commonlogin_new.php on line 37 I am

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
I dug deeper and realized I needed to open it correctly. You were right! Thank you! Here is the correct code that works like a charm! Brad ?php if(!isset($_SESSION[userid])) { ? form action=/phpBB/login.php method=post target=_top table width=200 cellpadding=4 cellspacing=1

RE: [PHP] parse error

2007-05-04 Thread Brad Sumrall
Maybe not The following passes me on without error, but does not actually log me on? Put in a fake name, and it still passes me on to the index page. I took this straight off the phpbb help files? Brad ?php if(!isset($_SESSION[userid])) { ? form action=/phpbb/index.php method

[PHP] RE: parse error (close this one)

2007-05-04 Thread Brad Sumrall
Du! It would have made sense to direct it to /phpbb/login.php Not /phpbb/index.php I know, the keyboard and the chair! Brad

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Brad Fuller
(,, array_values($pr1)) .); HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Brad Fuller
Jim Moseby wrote: $sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the array values need to be enclosed in quotes. I would build the query string

RE: [PHP] MySQL change-tracking

2007-05-02 Thread Brad Fuller
Richard Lynch wrote: I have this simple database and I'm going to have a handful of people editing it... I'd like to track each and every edit with username, and, ideally, provide myself an easy Undo if I decide [bleep] is an idiot and shouldn't have done that. Now, I'm not real

RE: [PHP] exec() and redirect output of program

2007-05-01 Thread Brad Fuller
Daniel Brown wrote: This way just lets it do it's own thing, with no output, and PHP won't hang. It'll continue from the CLI after the HTTP session is over. ? exec('php test.php /dev/null 21 '); ? On 5/1/07, Brad Fuller [EMAIL PROTECTED] wrote: I found this on PHP.net

RE: [PHP] exec() and redirect output of program

2007-05-01 Thread Brad Fuller
Brad Fuller wrote: Daniel Brown wrote: This way just lets it do it's own thing, with no output, and PHP won't hang. It'll continue from the CLI after the HTTP session is over. ? exec('php test.php /dev/null 21 '); ? On 5/1/07, Brad Fuller [EMAIL PROTECTED] wrote: I found

RE: [PHP] exec() and redirect output of program [SOLVED]

2007-05-01 Thread Brad Fuller
Tijnema ! wrote: On 5/1/07, Brad Fuller [EMAIL PROTECTED] wrote: Brad Fuller wrote: Daniel Brown wrote: This way just lets it do it's own thing, with no output, and PHP won't hang. It'll continue from the CLI after the HTTP session is over. ? exec('php test.php /dev/null 21

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

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

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

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

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
is preventing it from looking for the cookie! Sincerely, Brad [EMAIL PROTECTED] -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 12:11 PM To: Brad Sumrall Cc: php-general@lists.php.net Subject: Re: [PHP] phpbb / sessionid nightmare On 4/28/07, Brad

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
to /contest_stories.php?cid=8 Is the Path or the fact that I am going to www.domain.com to domain.com have anything to do with it? If so, how do I address it? Brad -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 3:43 PM To: Brad Sumrall Cc: php-general

RE: [PHP] Script feedback: insert string into another string

2007-04-28 Thread Brad Sumrall
But! I am now noticing that the main page provides cookies called _utma _utmb _utmc _utmz Hmmm Brad -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 3:48 PM To: [EMAIL PROTECTED] Cc: php php Subject: Re: [PHP] Script feedback

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
Does anyone know what this _utma _utmb _utmc _utmz stuff is? Obviously it is not a php standard. Obviously it is what is actually controlling my sessions? Brad -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 3:46 PM To: Brad Sumrall Cc

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
this, it never even tries to set or look at the java session. I guess the key question here is; 1 What is the _utmX session, I find little on google, other than it uses it? 2 How to teach phpbb to use it? Brad Check the parameters for the cookie. If they limit the cookie to, say: http

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
. Gone now, Let me follow your lead on your suggestions though for a few. I know just enough about php to be dangerous! I will definitely keep in mind the mysql inject problem. This could be an issue, but for now, just trying to get it to work! Thanks, Brad -Original Message- From

RE: [PHP] phpbb / sessionid nightmare

2007-04-28 Thread Brad Sumrall
I mean, the get forum Brad -Original Message- From: Brad Sumrall [mailto:[EMAIL PROTECTED] Sent: Saturday, April 28, 2007 7:02 PM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] phpbb / sessionid nightmare Oops! Maybe not. You were right! SFC = stupid flippn

[PHP] Parse error on a basic call?

2007-04-28 Thread Brad Sumrall
/html/contest_stories.php on line 2 Brad

[PHP] Help me put this into phpinesse!

2007-04-28 Thread Brad Sumrall
not available); $show=no; isset($_SESSION['userid']); if $SESSION=NULL include './phpbb/login_global.php' $show=yes; ? What am I missing? Brad

Re: [PHP] Parsing CSV files

2007-04-26 Thread Brad Bonkoski
Todd Cary wrote: Is there a function that can parse a comma delimited file into an array? Todd http://us.php.net/manual/en/function.fgetcsv.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Server side speech

2007-04-25 Thread Brad Bonkoski
Daniel Brown wrote: Tedd, On all of the *nix boxes I use (and have used) I've had to install Festival manually, so I would definitely not say that it's commonly found on there especially for a server configuration. But it IS commonly available, so why not just make it a

Re: [PHP] Server side speech

2007-04-25 Thread Brad Bonkoski
to support, unless there is some way for PHP to do text-to-speech translation, which seems way out of scope for a scripting language On 4/25/07, Brad Bonkoski [EMAIL PROTECTED] wrote: Daniel Brown wrote: Tedd, On all of the *nix boxes I use (and have used) I've had to install

Re: [PHP] UPDATE and redirect

2007-04-11 Thread Brad Bonkoski
marcelo Wolfgang wrote: Hi all, I'm new to this list and new to php programming so sorry if I do something wrong here :) Ok, now to my problem. I've created a query to update a mysql db, and it isn't working, and it's not throwing me any errors, so I need some help to figure out what's

Re: [PHP] Oputting Forms Within a Class

2007-04-10 Thread Brad Bonkoski
CK wrote: Hi All, Experimenting with OOP PHP,please be gentle. Attempting to output a form within a class: From calculator.php: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml;

Re: [PHP] Novice PHP Question - Listing Folder Contents

2007-04-10 Thread Brad Bonkoski
revDAVE wrote: I apologize in advance, however I know almost nothing about PHP - ( but I am trying to learn now)... I am wondering if it is possible to create a PHP page that can: 1 - Get the contents of everything in its own folder at the same level ( just list sub folders filenames - not

RE: [PHP] IP Geolocation Scripts

2007-03-29 Thread Brad Fuller
-Original Message- From: Daniel Brown [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 12:08 PM To: php-general@lists.php.net Subject: [PHP] IP Geolocation Scripts Does anyone have any recommendations for existing open source PHP scripts that use IP Geolocation? I was

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
-Original Message- From: Tana [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 1:02 PM To: php-general@lists.php.net Subject: [PHP] link on user uploaded pic Hi which is the best way to change this code img src=images/user_upload/akarmi.jpg to a

RE: [PHP] link on user uploaded pic

2007-03-29 Thread Brad Fuller
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29, 2007 1:24 PM To: 'Tana'; php-general@lists.php.net Subject: RE: [PHP] link on user uploaded pic -Original Message- From: Tana [mailto:[EMAIL PROTECTED] Sent: Thursday, March 29

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
Rahul Sitaram Johari wrote: Ave, I have a script where I have to provide a Download Link to a file associated with a record. The common thing between the record filename is the phone number. But the filenames have dates other symbols besides the phone number as well. They all do begin with a

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Brad Bonkoski
:22 PM, Brad Bonkoski [EMAIL PROTECTED] wrote: I'm sure there are many options... I'm also assuming you are pulling from a file system and not a database... So, loop through the directory and do something like this: $phone_num = XXX $cur_file = xxx if( strncmp($phone_num, $cur_file, strlen

Re: [PHP] Date/time format?

2007-03-28 Thread Brad Bonkoski
Jason Pruim wrote: Hi Everyone, First off, I'm using PHP 5.2.0 and apache 1.3.33 I am trying to figure out what format a string is in in a database. It's a timecard system that I have found on-line and I am attempting to figure out how to write a script that would give me everyones timecard

RE: [PHP] Date/time format?

2007-03-28 Thread Brad Fuller
Jason wrote: Hi Everyone, First off, I'm using PHP 5.2.0 and apache 1.3.33 I am trying to figure out what format a string is in in a database. It's a timecard system that I have found on-line and I am attempting to figure out how to write a script that would give me everyones timecard

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Dan Shirah wrote: Okay, I thought this was VERY simple, but I cannot wrap my mind around what I am doing wrong. echo $_POST['max_id']; *The echo returns the correct result *if($_POST['max_id'] ='') { *This is suppose to run the below query if $_POST['max_id'] is not blank* $max_id =

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
. On 3/27/07, *Brad Bonkoski* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dan Shirah wrote: Should I use something besides mssql_fetch_row to get my result? No matter which method I use for determining if the value exists, I still get no data populated to my

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
Send us the output of print_r($row_info) feel free to mask out any data values you may wish. Dan Shirah wrote: echo $row_info['first_name']; returns nothing. However I have verified the correct spelling both in the database and in the PHP code and they are identical and when I print_r it

Re: [PHP] POST + QUERY

2007-03-27 Thread Brad Bonkoski
result. use the numeric reference then... [..] is the index into the array, so if you want John use $row_info[7] and if you *want* to use the name or associative array read here: http://www.php.net/manual/en/function.mssql-fetch-array.php -B On 3/27/07, *Brad Bonkoski* [EMAIL PROTECTED] mailto

RE: [PHP] My own captcha from 2 years ago......

2007-03-26 Thread Brad Fuller
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Monday, March 26, 2007 8:49 AM To: php-general@lists.php.net Subject: RE: [PHP] My own captcha from 2 years ago.. At 10:02 PM -0400 3/25/07, Jake McHenry wrote: Like I said... Even if they have sound turned

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) = 0 ) { ... } don't think empty is the right function for this... -Brad -- PHP General

Re: [PHP] combine empty and trim

2007-03-26 Thread Brad Bonkoski
Brad Bonkoski wrote: Ross wrote: I want to trim any whitepace and check if it is empty in the same line this is not working. if (empty(trim($_POST['_createcategory']))) { perhaps try: if( strlen(trim($_POST['...']))) = 0 ) { ... } don't think empty is the right function

Re: [PHP] syntax question

2007-03-26 Thread Brad Bonkoski
options: $query = INSERT INTO categories (category_name) VALUES ('.$_POST['cat_name'].'); -or- $query = INSERT INTO categories (category_name) VALUES ('{$_POST['cat_name']}'); -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] My own captcha from 2 years ago......

2007-03-26 Thread Brad Fuller
From: tedd [mailto:[EMAIL PROTECTED] At 10:59 AM -0400 3/26/07, Brad Fuller wrote: echo 'img src=image.php'; This does not run or call image.php. This line of code sends this output to the browser. Brad: Yes, but the browser runs the code by trying to load an image. ... My

Re: [PHP] php support

2007-03-23 Thread Brad Bonkoski
Richard Dunne wrote: Can anyone tell me where to get support for this? Here php5 undefined function pg_connect() postgresql was not built into your version of PHP. Perhaps post which platform your run on, and other information like using a pre-canned binary or are building for source.

RE: [PHP] Add New Records Only!

2007-03-23 Thread Brad Fuller
table. Best of luck, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Amazon AWS + SimpleXML

2007-03-23 Thread Brad Fuller
-Original Message- From: Myron Turner [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 20, 2007 10:24 AM To: Brad Fuller Cc: php-general@lists.php.net Subject: Re: [PHP] Amazon AWS + SimpleXML Brad Fuller wrote: Hey guys, I'm having trouble trying to parse XML results from

Re: [PHP] php support

2007-03-23 Thread Brad Bonkoski
Not finding your dll...not sure where those should be stored, might try the find function in windows. Otherwise, post back to the list (with reply-all) as others might have better experiences with this. -B I might have to use JSP instead of PHP. Richard - Original Message From: Brad

Re: [PHP] close session when browser is closed

2007-03-21 Thread Brad Bonkoski
Alain Roger wrote: Hi, I would like to know what is the best solution for my problem. When a user is connected to a https page and a session is open, if user close his browser, the session ID is still active in the browser history. It means that next time when user will start his browser, the

RE: [PHP] Running PHP on a windows server-your views

2007-03-19 Thread Brad Fuller
Im assuming it will be running IIS. (shudder) The site is very important and any issues will hamper the functionality and accessibility of the site. LOL -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Can't get PHP errors to display or log consistently

2007-03-19 Thread Brad Fuller
editing is the one PHP is actually using. You can see the path to the ini file in ? phpinfo(); ? Also make sure you are restarting apache after editing ;) I believe .htaccess also can override your ini setting, so check for the existence of one of those too :D HTH, Brad -- PHP General Mailing

[PHP] Amazon AWS + SimpleXML

2007-03-19 Thread Brad Fuller
the namespace, but that didn't seem to help... $xml-registerXPathNamespace( aws, http://alexa.amazonaws.com/doc/2005-10-05/; ); var_dump($xml-xpath(//aws:Response)); // produces array(0){} (I tried it with the other url as well, same result) Any advice is much appreciated. Thx, Brad

RE: [PHP] $_POST array order

2007-03-14 Thread Brad Fuller
-Original Message- From: Tim [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 12:58 PM To: 'PHP' Subject: [PHP] $_POST array order Hi, Quick question regarding $_POST array element order, first the situation: I am submitting a form with x first fields and the post

RE: [PHP] Extract url from string

2007-03-12 Thread Brad Fuller
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, March 12, 2007 1:10 PM To: Brad Fuller Cc: php-general@lists.php.net Subject: Re: [PHP] Extract url from string On 3/12/07, Brad Fuller [EMAIL PROTECTED] wrote: Hey guys, I've been banging my head

Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Brad Bonkoski
I think up2date is *not* up2date ;-) Google for 'yum' and all its flags for usage... -B Jonathan Kahan wrote: Hi all, I am attempting to start the mysql rpm in Red hat as a first step prior to downloading and activating the php-mysql rpm. I was attempting to follow steps based on the link

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
-Original Message- From: Ed Curtis [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 11:47 AM To: php-general@lists.php.net Subject: Re: [PHP] php and javascript error a href=# onclick=javascript:window.open('web_forward.php?address=? echo $web_url; ?agent=? echo $agent;

RE: [PHP] php and javascript error

2007-03-07 Thread Brad Fuller
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 07, 2007 12:02 PM To: 'Ed Curtis'; 'php-general@lists.php.net' Subject: RE: [PHP] php and javascript error -Original Message- From: Ed Curtis [mailto:[EMAIL PROTECTED] Sent: Wednesday

RE: [PHP] Launch a seperate process

2007-03-06 Thread Brad Fuller
tyvm, I will check it out right away! B -Original Message- From: fedt [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 5:17 PM To: Brad Fuller Cc: php-general@lists.php.net Subject: Re: [PHP] Launch a seperate process pcntl_ fork() and pcntl_ wait(), yo On 3/6/07

Re: [PHP] Error in Script!!!

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: ?php // Conexão com o banco de dados include mysql.php; // Inicia sessões session_start(); // Recupera o login $login = $_POST[username]; // Recupera a senha $senha = $_POST[password]; // Usuário não forneceu a senha ou o login if($login== $senha= ) { echo Você deve

Re: [PHP] error in Script

2007-03-05 Thread Brad Bonkoski
Helder Lopes wrote: In other file I asked because it might prove helpful to see how that is set because this appears to be what is causing your error. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: how to display images stored in DB*

2007-03-02 Thread Brad Bonkoski
snip... For the record, I will *never* say one size fits all in the realm of computer programming... Consideration 2 If your project is to supply images across several web servers on different host, then you are caught in a sync problem. Images stored in a file system must be stored on a

[PHP] Eregi error

2007-02-28 Thread Brad
Hey all, I have been having some trouble with the eregi function. I have the following piece of code in my application: function standard_input($input, $min=0, $max=50){ if (strlen($input) = $max and strlen($input) = $min ) { $pattern = '^[a-z0-9\!\_ \.- ,/]*$';

Re: [PHP] Populating array with function

2007-02-27 Thread Brad Bonkoski
Dotan Cohen wrote: I need to populate an array with the contents of a directory. The following code does not populate the $thumbnailFiles array like I expect that it would: ?php function listFiles ($directory) { $files=array(); $dir = dir($directory); while ($entry = $dir-read()) {

RE: [PHP] Getting Similar rows from db

2007-02-23 Thread Brad Fuller
Smith The following query: SELECT COUNT(ID) AS NumRecords, FirstName, LastName FROM MyTable GROUP BY FirstName, LastName HAVING COUNT(ID) 1; Would produce the following result: NumRecords FirstName LastName 2 John Doe HTH, Brad -- PHP General Mailing List

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
Check out... http://www.php.net/gd -B [EMAIL PROTECTED] wrote: after we (company I work for) mmoved to new hosting company (dedicated server), I requested from them to instal php5 with GDlib to be able play with images. they did. and then yesterday (2 months after we moved) I wasn't able to use

Re: [PHP] JPG Not supported on my server, but GDlib enabled?

2007-02-22 Thread Brad Bonkoski
[EMAIL PROTECTED] wrote: Check out... http://www.php.net/gd -B Already did, but didn't find there any answer... :( In the Installation section... To enable support for jpeg-6b add --with-jpeg-dir=DIR. And read above on that page, for what may/may not be needed to install this library

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
I think something like this will work for you.. $start_time = time(); ...loop.. if( time() - $start_time 5 ) exit; -B Aaron Gould wrote: I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary commands (e.g.: KPRINT, as seen below),

Re: [PHP] How do I force my script to exit after 5 seconds?

2007-02-22 Thread Brad Bonkoski
/stream_set_timeout Brad Bonkoski wrote: I think something like this will work for you.. $start_time = time(); ...loop.. if( time() - $start_time 5 ) exit; -B Aaron Gould wrote: I have a script that connects to a networked device via PHP's socket functions. This device accepts proprietary commands (e.g

RE: [PHP] Understanding session variables with input field and register_global

2007-02-20 Thread Brad Fuller
, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Dan Shirah wrote: Greetings, I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED value is the corresponding numeric value 1-12 for the month. However, the selected value for January would be 1. I need the selected

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 1:27 PM To: php-general Subject: [PHP] Month Greetings, I have the following code which populates a dropdown box so a user can select a month. They see the month name and the SELECTED

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 1:44 PM To: Jay Blanchard Cc: php-general Subject: Re: [PHP] Month Okay, so sprintf(%02s, $m) means that the value of $m would be checked for the amount of digits returned. If less

RE: [PHP] Month

2007-02-19 Thread Brad Fuller
-Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 2:08 PM To: Brad Fuller Cc: Jay Blanchard; php-general Subject: Re: [PHP] Month Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
Brad Bonkoski wrote: Dan Shirah wrote: Okay, when I try the sprintf I get the following error when I try to save my form Incorrect syntax near 's'. select name=month ?PHP for ($m=1;$m=12;$m++) { $months=date('M', mktime(0, 0, 0, $m, 2)); echo option value=\sprintf('%02s', $m

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
: echo option value=\.sprintf('%02s', $m).\$months/option; your trying to call a function inside of a string... -B } ? /select On 2/19/07, Brad Fuller [EMAIL PROTECTED] wrote: -Original Message- From: Dan Shirah [mailto:[EMAIL PROTECTED] Sent: Monday, February 19, 2007 1:44 PM

Re: [PHP] Month

2007-02-19 Thread Brad Bonkoski
, $m, 1)); echo option value=\.sprintf(%02d, $m).\$months/option; Still missing a double quote in there. echo option value=\.sprintf(%02d, $m).\$months/option; } ? /select On 2/19/07, Brad Fuller [EMAIL PROTECTED] wrote: -Original Message- From: Dan Shirah [mailto:[EMAIL

RE: [PHP] WHERE problem

2007-02-19 Thread Brad Fuller
in your query. HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting hyperlink clicks in php

2007-02-17 Thread Brad Bonkoski
Denis L. Menezes wrote: Dear friends. I have a site where I have news headers. I wish to count the clicks on the news headers so that I can see how many times each of the the news has been viewed. This way I can show the most viewed news. Can one of you please advise hwo this can be done?

RE: [PHP]Password and FTP Folder

2007-02-15 Thread Brad Fuller
-Original Message- From: Helder Lopes [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 5:32 AM To: php-general@lists.php.net Subject: [PHP]Password and FTP Folder Hi people hi have a problem i need a script for make a ftp folder that have a password for enter

RE: [PHP] Retrieve value of newly inserted row.

2007-02-15 Thread Brad Fuller
Complete statement. Any ideas? On 2/14/07, Jim Lucas [EMAIL PROTECTED] wrote: Brad Fuller wrote: From looking on the web (MSDN) I found the @@identity and the explanation of what it is, but MS's example is horrible and does not show a good context for using

RE: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-15 Thread Brad Fuller
, and then gmdate() would subtract another 5 hours? Like I said - I could be way off, but just a thought. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session Problem

2007-02-15 Thread Brad Bonkoski
LoneWolf wrote: I am having a problem where it appears that the session is not being saved properly. While on a page, I can start a session and set variables to it. however, when I go to the next page.. the session variables appear to have been cleared out. first page: session_start();

RE: [PHP] Session Problem

2007-02-15 Thread Brad Fuller
) are enabled in your browser. - Try browsing the site from another computer. - Make sure session_start() is being called before any HTML output (including blank lines before the first ?php tag) -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] plugging gmmktime value into gmdate yields incorrect date

2007-02-15 Thread Brad Fuller
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Thursday, February 15, 2007 3:48 PM To: 'Terra Frost'; 'Peter Lauri' Cc: php-general@lists.php.net Subject: RE: [PHP] plugging gmmktime value into gmdate yields incorrect date -Original Message- From

RE: [PHP] Banner rotation with links

2007-02-14 Thread Brad Fuller
which does it all for you... http://www.phpadsnew.com/ -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Retrieve value of newly inserted row.

2007-02-14 Thread Brad Fuller
=@@IDENTITY); $r = mssql_fetch_assoc($q); HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Getting mysql_query results into an array

2007-02-14 Thread Brad Fuller
How about scenario #3: I wish to output my data in (for example) three columns, as a phone book does. To make the example simple, assume 15 data points. I wish the output to look like 1 611 2 712 3 813 4 914 5 10

RE: [PHP] Redisplay file name on failed upload

2007-02-13 Thread Brad Fuller
which contains the upload form. I suspect we're completely out of luck - apart from validating with JavaScript. Yup. -Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] what do i need to disable

2007-02-08 Thread Brad Fuller
how to disable everything, but I want to allow basic html tags. http://us3.php.net/strip_tags You can use the optional second parameter to specify tags which should not be stripped. HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

RE: [PHP] base64-encoding in cookies?

2007-02-07 Thread Brad Fuller
']; // should produce: ABC 123 http://example.com/page.php?foo=ABC%2B123 echo $_GET['foo']; // should produce: ABC+123 HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Javascript and $_POST

2007-02-07 Thread Brad Fuller
to submit the inputForm for the values to be passed to the processing page. document.inputForm.submit(); HTH, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help wtih a query?

2007-01-30 Thread Brad Bonkoski
Skip Evans wrote: Hey all, I have the following query: $sql=SELECT count(*) AS count,votes.storyID,stories.title,stories.storyID as sID,stories.approved, stories.story,stories.userID, fname, lname FROM `bsp_story_votes` as votes, bsp_story_stories AS stories, users AS usr

RE: [PHP] Conditional Select

2007-01-19 Thread Brad Fuller
* to the query string (don't forget the space before AND or the query will break) Hope that helps, Brad -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Oracle Execute Function

2007-01-18 Thread Brad Bonkoski
; } I use this wrapper class for many things, and the execute function for many things, without any problems. Now, this is an initial run at calling Oracle functions within PHP. Any words of wisdom as to what could be causing this problem, or any other insight? TIA -Brad -- PHP General Mailing

Re: [PHP] Displaying Results on different rows in tables

2007-01-18 Thread Brad Bonkoski
Dan Shirah wrote: Hello all, I am trying to pull data and then loop through the multiple results display in seperate rows. My database contains several tables which are all tied together by the credit_card_id. After running the query, it ties the unique record together by matching the

<    1   2   3   4   5   6   7   8   >