[PHP] Re: difference between $foo and isset($foo)

2002-04-18 Thread Jim Winstead
bly including false or null. 'if ($foo)' tests that the value of the variable is true. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Web Forum donated to PHP community

2002-04-21 Thread Jim Hankins
pBB2/index.php?c=5 Enjoy and let me know what you'd like to see in the way of additional forums under this General Category. Best regards, Jim Hankins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Jim Winstead
-1.#IND". Why is that? What is the > other way around to fix the problem? Let me know! pow() was badly broken in the 4.1.x series, particularly in the various edge conditions (like using 0 for either argument). 4.2.0 gets it right. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pow() vs. float when doing match.

2002-04-24 Thread Jim Winstead
to be broken in 4.1.x by someone who didn't understand the math behind pow(), and it lingered because nobody else noticed how much they had screwed it up. i guess there's not a lot of people using pow(). :) jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ISP in Australia

2002-04-25 Thread Jim Koutoumis
Hi all, Just looking to see if anyone knows of any ISP in Australia, that offers PHP and MySQL for their customer usage. Any information would be greatly appreciated. Thanks, Jim. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] good php editor for the mac

2002-04-26 Thread Jim Jagielski
ll open up file in BBEdit for example). -- ======= Jim Jagielski [|] [EMAIL PROTECTED] [|] http://www.jaguNET.com/ "A society that will trade a little liberty for a little order will lose both and deserve neither" -

[PHP] simplify if/then statement

2002-04-27 Thread Jim Long
de class include("CalcAR.class.inc"); } else if ($state == "AZ") { // include class include("CalcAZ.class.inc"); } else{ echo "Please select a State.\n"; } Thank You Very Much, Jim Long -- http://jimlong.net/web -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] simplify if/then statement

2002-04-27 Thread Jim Long
Using pull down for $state. This works great! > $incfilename = "Calc".$state.".class.inc"; > if (file_exists($incfilename)) > include($incfilename); > else > echo "Please select a State.\n"; Thanks To Everyone, j -- http://jimlong.net/web > I'd do something similar to thi

[PHP] sort and maintain varible names

2002-04-29 Thread Jim Long
I have a basic sort: $orderd_list = array ("$onec_rounded_total", "$aps_rounded_total", "$bo_rounded_total", "$cap3_rounded_total", "$cap3_rounded_total", "$cap_rounded_total", "$cfl_rounded_total", "$ecg_rounded_total", "$ldd_rounded_total", "$png_rounded_total", "$spr_rounded_total", "$ist917_

[PHP] Where is the file php_mssql.dll?

2002-05-06 Thread Jim Wentz
I want to add the extension to the PHP server and I realize that I need to modify the php.ini file for that extension. However, I cannot find that file. Also, where should that file be placed?

[PHP] Re: Done w/ PHP - VB or C# ?

2002-05-15 Thread Jim Winstead
st/newsgroup is for discussing php. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] tag img and php

2002-05-16 Thread Jim lucas
show the contents of 'try_param.php' please. Jim Lucas - Original Message - From: "Maciej Przybycien" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 15, 2002 10:38 AM Subject: [PHP] tag img and php > > Hi, > I included php

Re: [PHP] Uploading JPEG's - Security Issues?

2002-05-16 Thread Jim Winstead
constitute an effective denial-of-service 'attack' on your systems.) jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Problem with mktime()

2002-05-20 Thread Jim Winstead
; something is wrong!! numbers with a leading zero are in octal format, and '8' and '9' are not valid octal digits. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] display errors for developers only?

2002-05-20 Thread Jim lucas
if you are running apache you could turn that option on inside of a specific ... block. Jim Lucas - Original Message - From: "Jeff Bearer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 20, 2002 12:44 PM Subject: [PHP] display errors for devel

Re: [PHP] array empty after use

2002-05-21 Thread Jim lucas
when you loop through a mysql result set you move the pointer up one place. you need to use the mysql_data_seek($results, 0); to reset the pointer Jim Lucas - Original Message - From: "Web" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesd

Re: [PHP] Passing an array on

2002-05-22 Thread Jim lucas
you can use serialize() and unserialize() and make sure that you urlencode() and urldecode() the serialized string before attaching it to your URL. if you don't, you might find that some chars will not be right on the other end of the line. Jim Lucas - Original Message - From:

Re: [PHP] unable to register session variables

2002-05-22 Thread Jim lucas
Are you starting the session first? Jim Lucas - Original Message - From: "Pushkar Pradhan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:19 AM Subject: [PHP] unable to register session variables > I am following example 4 on

Re: [PHP] unable to register session variables

2002-05-22 Thread Jim lucas
not that I am aware of. Jim Lucas - Original Message - From: "Pushkar Pradhan" <[EMAIL PROTECTED]> To: "Jim lucas" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, May 22, 2002 10:43 AM Subject: Re: [PHP] unable to register session va

Re: [PHP] diplaying the path

2002-05-31 Thread Jim lucas
depending on what version of php you are running, you can use $GLOBALS['HTTP_REFERER'] or on newer versions you can use $_SERVER['HTTP_REFERER'] Jim Lucas - Original Message - From: "Kris Vose" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent:

Re: [PHP] Run php function with user click

2002-05-31 Thread Jim lucas
use flash to open a tunnel to the server and run a script, therefor it never has to leave the current page. ::) Jim Lucas - Original Message - From: "Michael Sweeney" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "Dave Shacket" <[EMAIL PROTECTED]&g

Re: [PHP] diplaying the path

2002-05-31 Thread Jim lucas
the bad thing about the BTW seciton is, is that it is not true inside of a function, that is the reason I refered to it as $GLOBALS['HTTP_REFERER'] Jim lucas - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Jim lucas" <[EM

Re: [PHP] Run php function with user click

2002-05-31 Thread Jim lucas
but that would take you off the current page wouldn't it? or would you return false? Jim Lucas - Original Message - From: "Leotta, Natalie (NCI/IMS)" <[EMAIL PROTECTED]> To: "'Jim lucas'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>; <

Re: [PHP] Running a script to check something before submitting a form. Can this be done?

2002-05-31 Thread Jim lucas
page no-matter what. do the validating and then if the email address isn't there, redirect with the php header() function to the custom page that you are talking about. Jim lucas - Original Message - From: "Don" <[EMAIL PROTECTED]> To: "php list" <[EMAIL PROT

Re: [PHP] echoing two varibles(newbie)

2002-06-03 Thread Jim lucas
string concat something like this require(contant.$variable."string"); Jim Lucas - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 03, 2002 1:26 AM Subject: [PHP] echoing two varibles(newbie) How can I echo(or include) two

Re: Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-03 Thread Jim lucas
stead of shitting on them and telling them to f*** off? Just an observation.... Jim Lucas - Original Message - From: "Julie Meloni" <[EMAIL PROTECTED]> To: "r" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, June 01, 2002 8:0

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread Jim Koutoumis
cation I'm going to go to. Now I know I can just whack them on the end of the location header: header("Location: http://www.somehost.com/somescript.php?name=fred&age=5";); But I don't want to use this method, I'd rather something similar to GET. BTW I'm

Re: [PHP] Using 'Location' and variables

2002-02-20 Thread Jim Koutoumis
ht forward now, thank you. Jim. "John Steele" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi Jim, > > The header() function call you use below IS doing a GET. Maybe if you told us why you need to redirect to

[PHP] Re: Uploading Files with PHP

2002-02-21 Thread Jim Koutoumis
Joe, Do you know when the file size is checked ?? I think it only gets checked after the form is posted and file uploading is finished ?? I don't know how it's possible to catch things before user uploads - now that would be neat :-) Jim. "Lerp" <[EMAIL PROTE

[PHP] Downloading files/docs

2002-02-21 Thread Jim Koutoumis
pe defaults to the URL for the name of the file :-( Is there a better way to achieve all of the above ?? Is it possible to stop IE from opening the .doc within its browser window ?? Any advice would be greatly appreciated. Thanks, Jim. // get the filename $filename = $dataDIR . $f

[PHP] Re: Displaying image from MySql DB

2002-02-22 Thread Jim Winstead
ELECT type,image FROM table WHERE id=$id"); $obj = mysql_fetch_object($res); header("Content-type: ".$obj->type); echo $obj->image; jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to build an array

2002-02-22 Thread Jim Winstead
lode(";", $mydata->KW); then you can sort the array using sort(). http://php.net/sort jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: uploading files | how to avoid submitting twice?

2002-02-23 Thread Jim Winstead
nst previous uploads to detect duplicates. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fork?

2002-02-23 Thread Jim Winstead
ticks' mechanism (http://www.php.net/manual/en/control-structures.declare.php). jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: using PHP to access another site - stock quotes ??

2002-02-23 Thread Jim Winstead
h?q=php%20stock%20quotes gives lots of solutions. most of them pull the data from yahoo. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Changed localhost?

2002-02-27 Thread Jim Koutoumis
0.0.0:80 0.0.0.0:0 LISTENING The above means something, Apache in my case, is listening on all interfaces at port 80. 4. Does 'localhost' still resolve to 127.0.0.1 properly ? or has your cable installation conveniently changed your HOSTS file ? Check your file's content

[PHP] Re: PDF creation with PDF-LIB samples?

2002-02-28 Thread Jim Koutoumis
You could try: http://www.fpdf.org/ Someone posted recently and I've quickly whacked it into my toolbox :-) Jim . "Andras Kende" <[EMAIL PROTECTED]> wrote in message 004801c1c0e3$26bf6070$b59fb841@K...">news:004801c1c0e3$26bf6070$b59fb841@K...; > Hell

[PHP] Re: Need help with a PHP script

2002-03-03 Thread Jim Winstead
Php <[EMAIL PROTECTED]> wrote: > function Authorize() { global $HTTP_POST_VARS; > $username = $HTTP_POST_VARS['username']; > $password = $HTTP_POST_VARS['password']; > echo "T".$username.$password; > } (insert the line above.) jim --

Re: [PHP] permissions

2002-03-04 Thread Jim Jagielski
andy thomas wrote: > > PHP will always run as the same user as Apache runs as. > true in Apache 1.3 and 2.0's prefork and worker mode. Not so in perchild (once it starts working :) ) -- =======

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-05 Thread Jim Koutoumis
Whack your text and input boxes in different cells of a table,.. use align (or nowadays an appropriate style setting) and that should get your things lined up :-) "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > Hugh, > > Food? What's that? > > [Btw, my wife would lov

Re: [PHP] Is there a "GoTo Page" Function?

2002-03-06 Thread Jim Koutoumis
takes the settings of whatever is defined in "blue". Jim. "Andre Dubuc" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thanks Jim, > > Now that looks better. > > New problem: in one of the almost identical tabl

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
fp) die("could not open URL"); $out = array(); while (!feof($fp)) { $line = fgets($fp,512); if (preg_match('!<(\w+?)>(.*?)!', $line, $m)) { $out[$m[1]] = $m[2]; } } fclose($fp); print_r($out); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] data from service into array

2002-03-06 Thread Jim Winstead
the first parenthesized expression in $m[1] (which is the element name), and the second parenthesized expression in $m[2] (which is the value). jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] image creation to file

2002-03-06 Thread Jim Koutoumis
An alternative is to put the code into makeImage.php and then call it directly from your HTML page with your whenever you want that image displayed. Jim. "Tom Rogers" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi &

[PHP] Re: header() and frames

2002-03-06 Thread Jim Winstead
Alan McFarlane <[EMAIL PROTECTED]> wrote: > header("location: index.php; target: _top"); header("Location: index.php"); header("Window-target: _top"); jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] archive

2002-03-12 Thread Jim Long
Hello, Is there a searchable archive of this PHP- general subscriber list? Thanks in Advance, Jim Long -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] re: passing inputs

2002-03-13 Thread Jim Long
THANKS TO ERIK PRICE ! You ablility to explain php concepts in simple langauge is exactly why I signed up for this list! I will be deeply greatful for any other tutorials like this one on passing imputs. THANKS AGAIN, Jim Long >Erik Price wrote: > John, > > It seems that you&

[PHP] Re: What permissions for uploading?

2002-03-13 Thread Jim Koutoumis
of 766 might be enough. Although I'd make sure that the directory is owned by the user the server is running as and then make it 700. You're in a non-Windows environment - yes ?? Jim. "Leif K-Brooks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[

Re: [PHP] mail() and qmail

2002-03-14 Thread Jim Koutoumis
qmail here, working fine. I have the following set in php.ini : sendmail_path =/var/qmail/bin/qmail-inject Jim. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]... > On Thursday 14 March 2002 22:56, Daniel Reichenbach wrote: > > >

[PHP] Re: Problem with strtotime() and 2002-03-31

2002-03-19 Thread Jim Winstead
John Clarke <[EMAIL PROTECTED]> wrote: > Any ideas why this would be happening? because 2002-03-31 is 25 hours long in your time zone? http://www.dstc.qut.edu.au/DST/marg/daylight.html jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
I'm doing a simple database connection using the follow syntax: Book-O-Rama Search Results Book-O-Rama Search Results http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
OTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Figure out where your mysql.sock file is and provide the path right in > your mysql_connect() call. "mysqladmin version" tells you the path. > > -Rasmus > > On Sat, 23 Mar 2002, Jim Hankins

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-23 Thread Jim Hankins
never mind got it "localhost:/pathto/mysql.sock" duh? :) Thanks a million, I'm up and running. - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Jim Hankins" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent

Re: [PHP] Trouble with mysql_pconnect unable to connect to database?

2002-03-24 Thread Jim Hankins
No, the @ was in the right place (if memory serves me the book said this suppresses the error output.) The problem was my sock file was not in the default location so I had to specify it. If you check the thread the answer is there on how to find where your sock is located. Best Regards, Jim

[PHP] Re: HTTP_REFERER

2002-03-25 Thread Jim Koutoumis
Tom, I sort of do the same here,... think you'll find that index.html is the 'default index' for a directory when a page isn't specified on your web server and that she's going to http://www.domain.com Hope this helps. Jim. "Tom Hilton" <[EMA

[PHP] Help with nested if statements, is this possible?

2002-03-31 Thread Jim Hankins
Here is a portion of a work in progress, I tested by sending the script with a payment status of incomplete yet it still executed other portions of the code. Should it not have jumped out. Or is my nested if invalid for some reason? if ($payment_status = "Completed") { echo "1st if is passed"; /

[PHP] Re: How to check for a php-extension?

2002-04-04 Thread Jim Winstead
the first IMAP related function. http://www.php.net/manual/en/function.extension-loaded.php if (!extension_loaded("imap")) { die("the imap extension is not loaded."); } jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: FW: [PHP] - REPOST - Flock manual clarification please ;-)

2002-04-07 Thread Jim Winstead
ay all or part of the data even though the first still has it locked. by the time the second process calls flock() and notices that the first has it locked, it has already truncated the file. jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Downloading files

2002-04-09 Thread Jim Koutoumis
Using this method,.. works OK if you choose to save the file, however if you choose to open the file you get a weird behaviour where IE says it can't find the file and a subsequent prompt to create a new one. Does anyone know why it does this and how to overcome it ? At this stage I've resorted t

[PHP] Re: [PHP-DB] array-problems

2001-10-24 Thread Jim Lucas
<<< END:PHP-CODE >>> btw - you need to watch your closing '>' you are missing a few. Plus to get distince to work right you need to use the "GROUP BY" clause. Jim - Origi

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Jim Lucas
one problem on the second script you are trying to use variables that are in an array. if this is where you are talking about you need to specify the array[key] > while ($myrow=DB_fetch_array($result)){ > > > $difference = ($budget - $actual); $difference = ($myrow[budget] - $myrow[actual]); >

Re: [PHP] Making a string from an Array

2001-10-25 Thread Jim Lucas
try this out $words = explode(" ", $keywordText); $compare = array('on', 'the', 'in', 'at', 'is', 'it'); foreach ($words AS $value) { if (in_array($value, $compare)) { $ignored[] = $value; } else {

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Jim Lucas
I notice that you are concatinating then each time. try setting them to ="" before using them $companyID_string = ""; $companyName_string = ""; then: while() { $companyID_string .= "," . $query_data[0]; $companyNa

Re: [PHP] while() looping over query results twice?

2001-10-25 Thread Jim Lucas
what I guessed was that you were using the variables somewhere else in the script above this code. then you were adding on to them again. without resetting them to blank. Are you using these vars somewhere else (above this) in your code? jim - Original Message - From: "Kurt L

Re: [PHP] Setting A MySQL Column to NO DUPLICATES

2001-10-25 Thread Jim Lucas
are you trying to have one column not be a dup or a combination of columns? jim - Original Message - From: "Jeff Gannaway" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 2:31 PM Subject: [PHP] Setting A MySQL Column to NO DUPLICATES

Re: [PHP] account for missing/optional arguments in functions?

2001-10-25 Thread Jim Lucas
function foo($arg1, $arg2="") // or you can replace the "" with array() { blah } Jim - Original Message - From: "Kurt Lieber" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, October 25, 2001 3:57 PM Subject: [PHP] account f

Re: [PHP] Q:Syntax for a space? ...like \n is for new line???

2001-10-25 Thread Jim Lucas
the bad thing about using the "#&160", mac user won't be able to view this. mac uses a different ASCII set 160 isn't a space :) Jim - Original Message - From: "Steve Werby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]&

Re: [PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread Jim Lucas
try this ", $output); echo $output; ?> make sure you put the correct paths to the .exe and file otherwise it will think that it is realtive to where you are in the file system. Jim - Original Message - From: "John A. Grant" <[EMAIL PROTECTED]> To: <[EMAIL

Re: [PHP] checkboxes

2001-10-26 Thread Jim Lucas
function jsFunc() { // then check the status of the checkbox if (checked) { run this } else { run this } } onClick="jsFunc()" Jim Lucas - Original Message - From: "Johnson, Kirk" <[EMAIL PROTECTED]> To: "PHP General (E-

Re: [PHP] how to recognize local or server execution?

2001-10-26 Thread Jim Lucas
use $GLOBALS[SERVER_ADDR] it will return the IP address of the server. then use that in an if..then..else Jim - Original Message - From: "John A. Grant" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 2:18 PM Subject: [PHP] how to rec

Re: [PHP] session_star() problem

2001-10-26 Thread Jim Lucas
this means that on line 8 of the product_list.php file, you are sending something to the browser with print() echo or ?>something To: <[EMAIL PROTECTED]> Sent: Friday, October 26, 2001 3:07 PM Subject: [PHP] session_star() problem > Ok I am starting on small web site and using PHP 4 on Apache wi

Re: [PHP] show png in the browser

2001-10-30 Thread Jim Lucas
what type of browser are you using to view this image? jim - Original Message - From: "Luz Lopez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 31, 2001 1:56 AM Subject: Re: [PHP] show png in the browser > Hi David, of course, I send o

Re: [PHP] php & mysql prob...

2001-10-30 Thread Jim Lucas
mysql_error() and mysql_errno() return the value. $error = mysql_error($dblink); $errno = mysql_errno($dblink); or echo mysql_error($dblink); echo mysql_errno($dblink); jim - Original Message - From: "sc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday,

Re: [PHP] php & mysql prob...

2001-10-30 Thread Jim Lucas
are you pass the two functions you return link from mysql_connect() or mysql_pconnect() ?? jim - Original Message - From: "sc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 30, 2001 6:15 PM Subject: Re: [PHP] php & mysql prob... >

Re: Re[2]: [PHP] split array in 2 halfs

2001-10-31 Thread Jim Lucas
take a look at the manual http://www.php.net/manual/en/function.array-slice.php it will show you the right way to do it jim - Original Message - From: "Daniel Harik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 31, 2001 11:25 PM Subje

Re: [PHP] submitting form to a page with frames

2001-11-01 Thread Jim Lucas
try using the $GLOBALS[variable_name] array. Jim - Original Message - From: "Matt Fair" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 01, 2001 3:08 PM Subject: [PHP] submitting form to a page with frames > I have 2 pages page1.php

Re: [PHP] Where is my php.ini?

2001-11-01 Thread Jim Lucas
most of my installs, Redhat linux 7.0 and 7.1, have placed the php.ini file in the /etc/php.ini location. what version of linux are you using? Jim - Original Message - From: "Gaylen Fraley" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 01

Re: [PHP] Array HELP PLEASE

2001-11-08 Thread Jim Lucas
FROM models WHERE lang='$lang' AND key1='data' AND key2='$series'",$db); while ($models = mysql_fetch_array($results)) { echo $models .""; } Jim - Original Message - From: "René Fournier" <[EMAIL PROTECTED]> To: "Php

Re: [PHP] Including declare statements that contain variables

2001-11-14 Thread Jim Lucas
) and have it display your error code/problems. why are you using a define to set an SQL query string? Jim - Original Message - From: "Fred" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 9:45 AM Subject: [PHP] Including declare statem

Re: [PHP] very weird PHP behaviour...

2001-11-14 Thread Jim Lucas
try this: function Upload($source_file,$source_filename,$dest_dir,$allowed_types=array(), $upload_errmsg="") { if( count($allowed_types) ) { if(!in_array(ArquivoExt($source_filename),$allowed_types)) { ?>O arquivo não está entre os tipos autorizados To: <[EMAIL PRO

Re: [PHP] IP Address Variable

2001-11-14 Thread Jim Lucas
check this out http://www.php.net/manual/en/function.gethostbyaddr.php jim - Original Message - From: "Ben Clumeck" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, November 14, 2001 2:48 PM Subject: [PHP] IP Address Variable > I currently log ip a

Re: [PHP] What version did $PHP_SELF still work?

2001-11-15 Thread Jim Lucas
try using $GLOBALS[PHP_SELF] no matter where you are at (ie out of a function, in a function, in an array(), etc... ), you will get the correct value Jim - Original Message - From: "John Steele" <[EMAIL PROTECTED]> To: "PHP General List" <[EMAIL PROTECTED]

Re: [PHP] eregi_replace probs

2001-11-16 Thread Jim Lucas
> for ($i = 0; $i < count ($forbid); $i++) { > $NEW_STRING = eregi_replace($forbid[$i],$swap[$i],$str); > } > return($NEW_STRING); > } Jim - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] eregi_replace probs

2001-11-16 Thread Jim Lucas
for ($i = 0; $i < count ($forbid); $i++) { > $str = eregi_replace($forbid[$i],$swap[$i],$str); > } > } Jim - Original Message - From: "phantom" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, November 16, 2001 2:16 PM Subject: [PHP]

Re: [PHP] Auto Thumbnail?

2001-11-16 Thread Jim Lucas
well, if you are on a *nix based system, you could use ImageMagic. and have it generate the thumbnails for you. as for a script, well, you would have to write that. Jim - Original Message - From: "cosmin laslau" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Fri

Re: [PHP] textarea, carriage returns and formatting

2001-11-20 Thread Jim Lucas
not sure what you're getting at. when you pull the text back out of the DB, it should be formatted the same as when it was put in the DB. the \n's should still be intack are you processing the text before it gets entered into the DB? You should be able to do this: Jim

Re: [PHP] Setting title via included file

2001-11-20 Thread Jim Lucas
try it the other way around. capture the output of the included file before you send/display the title Jim - Original Message - From: "Chris Lott" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, November 20, 2001 3:44 PM Subject: [PHP] Setting title v

Re: [PHP] HTTP_REFERER

2001-11-23 Thread Jim Lucas
. "Browser Platform: ($GLOBALS[HTTP_USER_AGENT])\n". "User IP: '". gethostbyaddr($GLOBALS[REMOTE_ADDR]) ."' ($GLOBALS[REMOTE_ADDR])\n". hope this helps Jim - Original Message - From: "Jordan Elver" <[EMAIL PROTECTED]> To: &quo

Re: [PHP] php->html

2001-11-24 Thread Jim Lucas
checkout the output control function at php.net http://www.php.net/manual/en/ref.outcontrol.php they allow you to capture the test that would have normally been sent to the browser. take the value of the variable and write it to a file.. :) Jim Lucas - Original Message - From

Re: [PHP] database question

2001-11-29 Thread Jim Musil
>> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> To contact the list administrators, e-mail: [EMAIL PROTECTED] >> >> >> &g

Re: [PHP] URGENT-HELP !!!!!!

2001-11-30 Thread Jim Musil
host >(localhost) it will get a response from it self? I haven't tried it, >but I think it would work. > >By the way... the most of the SMTP doesn't check at the FROM header, >but from the sender SMTP. >So if you got a nonexisting e-mail it would accept it too, b

[PHP] Speed of Images from DB

2001-11-30 Thread Jim Musil
actual data in my mysql db. It seems like it would be too slow to query, transfer, and passthru. Does anyone have any wisdom on this subject? -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
), > "Klein" => array( > "bike 1" => "URL", > "bike 2" => "URL" > ), > "Gary Fisher" => array( > &

RE: [PHP] Stuck on array, need a little help.

2001-11-30 Thread Jim Musil
$key)=each($bikes[$sub_cat]["Trek"])) { echo "\n"; echo "$val\n"; } } >No, all that will do is reverse the placement >of the values. So now it prints out Array >and puts the item in the URL. Still the same problem. > > >&

RE: [PHP] Strange problem...

2001-11-30 Thread Jim Musil
t the string into -mm-dd format. Jim >Thanks guys... > >I guess it´s too late here now .) It fixed itself when i altered the field >type to varchar. Although - i don´t really get why it can´t store the vlaue >i am sendding it the field is of integer type. > >- Daniel > &g

[PHP] Re: problems with looping array

2001-12-03 Thread Jim Musil
> > number that increments at the end of the loop. Please help if you know >of >> > anyway to use this variable. Also, I can post my whole script if >> needed...I >> > just didn't want unneeded info posted. Thanks in advance. >> > >> &g

Re: [PHP] zip.exe files

2001-12-03 Thread Jim Lucas
check out the www.php.net and look into the using the header function to force the down load instead of trying to executing the file. www.php.net/header Jim - Original Message - From: "AAustin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, November 29

[PHP] [ADMIN] spam protection for lists.php.net lists

2001-12-11 Thread Jim Winstead
27; header of a post via the news server). if you encounter problems posting to the list, feel free to drop a note to the list administrators at [EMAIL PROTECTED] jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Header redirecting with POST

2001-12-12 Thread Jim Lucas
e Sadly though, GET has a size limit on the amount of data you can send throught the URL, 2kb. I want to be able to send larger amounts with a header() redirect. Any ideas on how to send the data in a POST with header(); woud be appreciated. Thanks Jim Lucas -- PHP General Mailing List (htt

Re: [PHP] Performance

2001-12-13 Thread Jim Lucas
would like information on the performance results I might be able to round up some of the data. It is faster and cleaner. Jim Lucas www.bend.com - Original Message - From: "René Fournier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tues

<    1   2   3   4   5   6   7   8   9   10   >