Re[2]: [PHP] Whimper, help :)

2002-12-04 Thread Tom Rogers
Hi, Wednesday, December 4, 2002, 3:12:41 PM, you wrote: JTJ> Tom, JTJ> Anyone, JTJ> No I'm not looking for a ", I'm trying to pass double quotes into MySQL. JTJ> Like I said, it works when debugging: here is a function to clean up your search string, a bit lon

Re: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
ut)) $list[] = addslashes($out);; $r = ''; $x = 0; while(list($key,$val)=each($list)){ $r .= $val.' '; } return $r; } $test = addslashes(' +test "hello maria" fish '."-O'Brian 'big \" test'"); $list = clean_search_string($test); echo $list.''; you will then just need "SELECT.. AGAINST '$list' " -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Tom: [PHP] magic quotes

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 7:11:20 AM, you wrote: JTJ> Tom, JTJ> Sorry for the delay. I have tried your code. JTJ> SELECT id,AU,ST,BT,AT FROM ccl_main WHERE MATCH JTJ> (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST ('"ready maria" ' I

Re: [PHP] Problem with functions

2002-12-04 Thread Tom Rogers
need to tell the function to use the global variable like so: function test() { global $username; echo $username; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
de RL> Thanks for any help on this, RL> Roger Sounds like php.ini is being overridden by a .htaccess file or httpd.conf -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Get-type links won't complete querystring values

2002-12-04 Thread Tom Rogers
quot;): AB> if($k=="1"): AB>print("print("navlinks=navsec&tit=$m&ch=$l&sec=$r>"); AB>print("$textos[$h]"); AB> print(" - "); AB> elseif($k=="2"): AB>print("$textos[$h]"); AB> endif; AB> endif; AB> endforeach; ?>> AB> Could anybody help? AB> Thanks in advance AB> Alberto Brea AB> http://estudiobrea.com I think you need to note that substr() starts at 0 not 1 -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looping Addition

2002-12-04 Thread Tom Rogers
0; $current = 1; do { $x = 'num'.$current; if(isset($_POST[$x])){ $output += $_POST[$x]; } $current++; } while($current <= $_POST['vars']); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[4]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 11:54:08 AM, you wrote: RL> Tom, RL> Thanks for your response. If this is so, can you tell me how I check it out RL> and fix things. RL> Roger Unless you have set it yourself that is probably not the reason. Try setting it like this upload_

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
Hi, Thursday, December 5, 2002, 3:09:46 PM, you wrote: RL> Tom Rogers responded on Wednesday, December 04, 2002 6:11 PM RL> Hi, RL> Thursday, December 5, 2002, 11:54:08 AM, you wrote: RL>> Tom, RL>> Thanks for your response. If this is so, can you tell me how I chec

Re: [PHP] Struggling with code

2002-12-04 Thread Tom Rogers
legally privileged, intended solely for the addressee. If you are BC> not the intended recipient, be advised that any use, dissemination, BC> distribution, or copying of this e-mail is strictly prohibited. If you BC> receive this message in error, please notify the sender immediately by rep

Re[2]: [PHP] Max File Size

2002-12-04 Thread Tom Rogers
settings in my php.ini either. RL> Do you have any other thoughts on this? RL> Regards, RL> Roger RL> -- RL> PHP General Mailing List (http://www.php.net/) RL> To unsubscribe, visit: http://www.php.net/unsub.php A shot in the dark check for: file_uploads = On -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL ?

2002-12-05 Thread Tom Rogers
urn (@mysql_query('SELECT count(*) FROM '.$table)); } //usage $con = @mysql_connect("host" , "user" , "password"); $table = "database.table"; if(table_exists($table)){ echo "Table $table exists. "; }else{ echo "Ta

Re: [PHP] Repeating Decimals

2002-12-06 Thread Tom Rogers
} return $r; } //usage for($x = 1;$x < 100;$x++){ $a = 11/$x; $res = repeat($a); echo '   returned: '.$res.''; } The check_to_end() function could probably be replaced with a regex but those go in the same basket as vi with my old brain :) Regards Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] --with-gd=DIR

2002-12-06 Thread Tom Rogers
ocate gd.h that should tell you where they are hiding -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error GD

2002-12-06 Thread Tom Rogers
s no member named `free' ithc> make[3]: *** [gd.lo] Fehler 1 I think the function name got changed to gdFree(), I'll try to find more info if I can -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Error GD

2002-12-06 Thread Tom Rogers
d `free' ithc>> gd.c: In function `_php_image_create_from': ithc>> gd.c:1176: structure has no member named `free' ithc>> make[3]: *** [gd.lo] Fehler 1 TR> I think the function name got changed to gdFree(), I'll try to find more info if TR> I can TR> -- T

Re: [PHP] $_FILES associative array

2002-12-06 Thread Tom Rogers
rowser provided this information. An example would be "image/gif". $_FILES['userfile']['size'] The size, in bytes, of the uploaded file. $_FILES['userfile']['tmp_name'] The temporary filename of the file in which the uploaded file was stored on the server -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Repeating Decimals

2002-12-06 Thread Tom Rogers
e ever you need it -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Output page cut off after 7000 characters

2002-12-06 Thread Tom Rogers
4.0.6 tomcat/1.0 (tomcat is not used for FW> this pages) FW> Has anybodey an idea whre to look for the cause? FW> Thanks FW> Fritz If the data is coming from an odbc connected database you may need to take a look at odbc_longreadlen() -- regards, Tom -- PHP General Mailin

Re[2]: [PHP] PHP includes without access to the default directory

2002-12-06 Thread Tom Rogers
Hi, Saturday, December 7, 2002, 7:15:38 AM, you wrote: >> ini_set G> ("include_path","/path/to/local/includes:"ini_get("include_path")); >> >> Then no matter what directory you are in you can just include("filename"); >> >>

Re: [PHP] Confused about $_SESSION and $_COOKIE scope..

2002-12-06 Thread Tom Rogers
Get rid of that second session_start() you don't need it on included files only on the main files which the browser is asking for. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Generating forms using OOP

2002-12-06 Thread Tom Rogers
DO> mailto:[EMAIL PROTECTED] The output function is wrong it should be function generateSelectField() { $theOutput = "name."\">\n"; foreach($this->value as $key=>$val) { $theOutput .= "".$val."\n"; //this line } $theOutput .= "\n"; Return $theOutput; } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
I use >> it every day to... does it answer the question above?? ;) >> >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> Take a look at this one it seemed to b

Re[4]: [PHP] Repeating Decimals

2002-12-07 Thread Tom Rogers
Hi, Sunday, December 8, 2002, 1:46:07 AM, you wrote: S> Ok, I'm getting some weird errors. Here's the website: S> http://check.melchior.us/module.php?id=3 S> I attached the output file. What am I doing wrong!? S> - Original Message - S> From: "Tom Rog

Re[4]: [PHP] Simple text editor for Windows?

2002-12-07 Thread Tom Rogers
Hi, Sunday, December 8, 2002, 4:22:52 AM, you wrote: DN> Hi Tom, >> >> I know the text editor question has been beat to death, but I'm looking >> >> for a simple editor with syntax highlighting that can be installed in >> >> Windows by a general use

Re: [PHP] LogIn check within function within class :: HELP!

2002-12-08 Thread Tom Rogers
$this ->DisplayButton($width,$name,$url); SM> } SM> echo ""; SM> echo ""; SM> echo ""; SM> } SM> function DisplayButton($width,$name,$url) SM> { SM> echo ">$name"; SM> } SM> function DisplayFooter() SM> { SM> ?> SM> > SM> SM> width="1" height="300"> SM> SM> SM> SM> } SM> } ?>> SM> Here is sample page usage of class file SM> require ("include/adminclass.inc"); SM> $test = new adminpage(); SM> $title = "This is a Nice Page"; SM> $content = "Some Temporary Content"; $test ->>SetContent($content); $test ->>Display($employeeid,$password,$title,$count); ?>> SM> _ SM> MSN 8 with e-mail virus protection service: 2 months FREE* SM> http://join.msn.com/?page=features/virus Well it is telling you that $this -> VerifyLogin($employeeid,$password); Does not match your declaration of function VerifyLogin($employeeid,$password,$count) You are missing the count bit -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect problem under RedHat 8.0 ?

2002-12-08 Thread Tom Rogers
cation of the socket (mysql default is /tmp/mysql.sock but I don't know with RH)you could try $link = mysql_connect(":/var/lib/mysql/mysql.sock" , "username" , "password") If that fails, check the permissions of the path to the socket for the apache user and that mysqld is running. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date() on two diff. servers

2002-12-08 Thread Tom Rogers
my host about, JF> or look for? JF> Thanks, JF> Justin French JF> JF> http://Indent.com.au JF> Web Development & JF> Graphic Design JF> Put this at the top of your page $tz = getenv('TZ'); if($tz != 'Australia

Re[2]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Tom Rogers
gt; One idea which cam into my mind: might an error much later on in the page FW> generation interrupt the output? It takes a few seconds to after the page FW> starts to loud until the server closes the connection. FW> Regards FW> Fritz Does the apache error_log give any

Re[3]: [PHP] Output page cut off after 7000 characters

2002-12-09 Thread Tom Rogers
Hi, Tuesday, December 10, 2002, 2:31:00 AM, you wrote: FW> Hi Tom, FW> I had this checked out before, but I did only check the errorlog for this FW> virtual host, there is an entry in the error log of the main server for FW> each request to the page in question: FW> [Mon

Re[2]: [PHP] Script not working from one computer

2002-12-09 Thread Tom Rogers
me. But for this computer, both addresses give the same >> result. >> >> So, I'm sure it's not the PHP script, so I'm looking for ideas of what I >> should check, settings wise, on the client computer? Any help is greatly >> appreciated. >> >> ---John Holmes... Could it be adding a (NT) domain suffix to the username or something ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
$end = $page->get_end(); $Query2= "SELECT * FROM db.table WHERE agent LIKE '%".$searchword. "%' ORDER BY time_stamp ASC "; $result = mysql_query($Query2) or die(mysql_error()); $hstring = $page->make_head_string('Results'); $pstring = $page-&g

Re[2]: [PHP] Page display of query resuts using ODBC

2002-12-11 Thread Tom Rogers
LIKE '%".$searchword. "%' ORDER BY time_stamp ASC "; TR> $result = mysql_query($Query2) or die(mysql_error()); TR> $hstring = $page->make_head_string('Results'); TR> $pstring = $page->make_page_string("&searchword=".$sea

Re: [PHP] Escaping '#' Sign

2002-12-11 Thread Tom Woody
other character in HTML, and all php is doing is creating the html for you. the # sign would only effect a difference in PHP code within the , which when you are doing a query that doesn't happen. -- Tom On Wed, 11 Dec 2002 15:45:18 -0800 Mike Smith <[EMAIL PROTECTED]> wrote: > I h

Re: [PHP] "include" question

2002-12-12 Thread Tom Rogers
/php') in /usr/local/www/data-dist/link.php R> on line 142 R> Can I not use a $variable in an include 'something.php '; statement? R> Thanks in advance, R> Ron Clark You have to use double quotes like: include "path/to/$job" or add like this: include 'path/to/'.$job -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
I am using mail("[EMAIL PROTECTED]", "testing 1234", "this is a test message"); ?> -thanks tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mail() Not working right

2002-12-12 Thread Tom Culpepper
command, like ECHO? Maybe that way I can see what is going on -tom Jason Wong wrote: On Friday 13 December 2002 04:00, Tom Culpepper wrote: I am trying to get the mail() function to work right on my system and while I get no PHP errors the mail is never sent. Running on a linux server with PHP3 and

Re: [PHP] XML Enabled not there

2002-12-12 Thread Tom Rogers
t; PHP 4.0.3pl1, Apache 1.3.9 QB> I am checking the configuration of a server before implementing on it - in fact, I haven't got access to it yet, so, no, I can't try it and see. QB> Thanks in advance You will probably need to load it using dl() in your script -- regards, Tom

Re: [PHP] Re: Mail() Not working right

2002-12-12 Thread Tom Culpepper
I actaully already wrote one like that. The PHP is going fine, the problem I believe is PHP interfacing with my mail server. Thanks though Steve Yates wrote: "Tom Culpepper" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... while I ge

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
You can get the IP using getenv() (http://www.php.net/manual/nl/function.getenv.php) not sure how you would get the time zone though. -tom culpepper Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What

Re: [PHP] How To get the Time Zone of the visitor?

2002-12-12 Thread Tom Culpepper
Found this tutorial that might be helpful http://martin.f2o.org/php/localtime -tom Jacob Mangalyajyothy wrote: Hi All, I would lik eto get the information about the location of the visitors to my site like From which IP, What browser and which part of the world etc. How can get the

[PHP] XML Parse Syntax Error

2002-12-13 Thread Tom Culpepper
eeping the PHP up to date is not a priority around here as we are still on PHP3. Any thoughts on what this might be? Is the server jsut showing it's need for an update again? -tom here is one example of the code I am using: $xml_file = "data.xml"; echo ""; echo &qu

Re: [PHP] Parse out text

2002-12-13 Thread Tom Rogers
var) = each($_POST)){ if(substr($key,0,7) == 'required'){ $key = substr($key,8); } $input_vars[$key] = $val; } Then use the values from $input_vars -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File Upload

2002-12-13 Thread Tom Rogers
file: $testfile\n"; MK> echo "userfile_name: $testfile_name\n"; MK> echo "userfile_size: $testfile_size\n"; MK> } MK> else MK> { MK> echo "no file updated"; MK> } MK> }

Re[2]: [PHP] File Upload

2002-12-13 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 1:52:48 PM, you wrote: MK> Thanks Tom, but still no luck.. it seems like it doesn't recognize $testfile MK> variable at all in PHP script, even thought the globals are ON... Put phpinfo(32); at the top of your file and see what is being sent -- r

Re[2]: [PHP] File Upload

2002-12-14 Thread Tom Rogers
Hi, Saturday, December 14, 2002, 5:55:12 PM, you wrote: JW> On Saturday 14 December 2002 11:35, Tom Rogers wrote: >> You are missing this bit: >> >> JW> I am curious as to why so many people say this in response to file upload JW> problems? JW> In practice, non

[PHP] PHP question

2002-12-17 Thread Tom Ray
Are PHP script supposed to run as the user or as the web server? Currently I'm running Red Hat 7.3 with apache 1.3.x and all my PHP scripts run as apache, not as the user. I'm wonder if I can run the scripts as the user and how do I fix this? Any help would be great! -- PHP General Mailing Li

Re: [PHP] recommendation needed for dedicated server hosting

2002-12-18 Thread Tom Rogers
good value. They have 24h telephone support but I have always got a good response on ICQ which is a lot cheaper for me than a call to the US :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sessions on a shared server

2002-12-21 Thread Tom Rogers
ld mean BG> that other sites would be able to potentially get my session variables, BG> which isn't great. BG> Probably very simple, so sorry if it's incredibly dull! BG> Thanks, BG> -- BG> Beth Gore BG> http://bethanoia.dyndns.org Session data is kept seperate for e

Re: [PHP] Adding to Apache access log from PHP

2002-12-21 Thread Tom Rogers
d use this Then the log formatter would be .\"%{PHP_TITLE}n\"... -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Function returning a reference - how ?!?

2002-12-21 Thread Tom Rogers
things to happen in php? I guess time will tell :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with Include

2002-12-24 Thread Tom Woody
of programs, you should be using Apache 1.3 if > you want to use PHP. > > There are a few combinations of versions that work together, but > unless you are willing to put a lot of extra effort and study into > using Apache 2, stick with 1.3 until the PHP developers announce >

[PHP] Reg Ex for replacing or with \n

2002-12-27 Thread Tom Beddard
I'm new to using regular expressions so i'm struggling a bit in making an expression to replace or with \n $string = preg_replace( "/(|)/i" , "\n",$string); which needless to say doesn't work. I'm sure its obvious, just need a bit of a pointer! Cheers T

[PHP] Re: Reg Ex for replacing or with \n

2002-12-27 Thread Tom Beddard
Yes, i thought it was simple, just wasn't escaping a forward slash $string = preg_replace( "/(|)/i" , "\n",$string); "Tom Beddard" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm new to using

Re[2]: [PHP] Serializing a DOM object

2002-12-30 Thread Tom Rogers
val = base64_encode(serialize( domxml_open_mem( $xml ))); and on the next page: $xml = unserialize(base64_decode($xml)); It works via html but don't know enough about soap -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Getting short (DOS) name of file?

2002-12-31 Thread Tom Rogers
e >>>C:\PROGRA~1\WHATEVER\PROG.EXE). Is there any way to get the short name >>> >>> >>>from a long name? >> >>Take a look at this: >> >>http://makeashorterlink.com/?V25A32BE2 >> >> >> Try putting the long file nam

Re: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Have a look at phplib http://www.sanisoft.com/phplib/manual/intro.php#intro.whatis.phplib -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Repeats of values

2002-12-31 Thread Tom Rogers
gt; while(list (,$value) = each ($line)) { AR>print ">$value\n"; AR> } AR> print "\t\n"; AR> } AR> print "\n"; AR> mysql_close($link); ?>> AR> ...... AR> Any help would be grea

Re[2]: [PHP] Serializing a DOM object

2002-12-31 Thread Tom Rogers
g and BC> passing (through sessions or otherwise) other object, I'm just not BC> having any luck with the internal DOM object. BC> Chris Well to get rid of the error message you need to create a dummy dom object b4 you unserialize like: $obj = domxml_new_doc('1.0'); But I could not get serialize to do the whole dom object only the first level -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] RE: PHP3 + session handling limitation

2002-12-31 Thread Tom Rogers
Hi, Wednesday, January 1, 2003, 4:01:35 PM, you wrote: DR> oh have you got an example proper usage of it ? i had it working then DR> suddenly i didnt :| DR> -Original Message- DR> From: Tom Rogers [mailto:[EMAIL PROTECTED]] DR> Sent: Tuesday, December 31, 2002

Re: [PHP] multiple select problem

2003-01-01 Thread Tom Rogers
display the destList value, it just show the "6" the last EK> value... EK> where goes wrong? EK> Elaine Kwek You need to call your select name as name="destlist[]" Then php will know to expect an array list -- regards, Tom -- PHP General Mailing List (http:/

Re[2]: [PHP] mktime() and the format of the day number entry

2003-01-02 Thread Tom Rogers
it as an octal base number and 08 and 09 are not legal octal values. You have to use intval() on them. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Tom Rogers
quot;; AF> } AF> echo""; AF> } ?>> AF> This is the error I get... AF> Parse error: parse error, unexpected ':' in AF> C:\Xitami\webpages\php\result1.php on line 12 AF> I dunno what I'm doing wrong. Help please??? Don't need the ."

Re[2]: [PHP] Possible bug with PHP v4.1.1 and bits?

2003-01-03 Thread Tom Rogers
Company SET Enabled = ".(1-$_POST[action]) ... FML> Cheers! FML> Mike In mysql you can use the invert (tilde)operator like this: select 5 & ~1 returns 4 so you could do "UPDATE Company SET Enabled = (Enabled & ~1)" which will toggle bit 1 of Enabled. (Untested :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Function to catch all mySQL errors?

2003-01-04 Thread Tom Rogers
return $r; } function fetch_array($res,&$row,$type=MYSQL_ASSOC){ $r = 0; if($row = mysql_fetch_array($res,$type)) $r = 1; return $r; } function fetch_result($res,$field){ return mysql_result($r

Re: [PHP] undefining an array element

2003-01-05 Thread Tom Rogers
' from it (not just set $a1[b] to ""), DTG> how do I undefine that element? DTG> TIA & HAND DTG> :-D unset($a1['b']); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unexpected $end error?

2003-01-05 Thread Tom Rogers
gt; VB> VB> VB> VB> > VB> VB> VB> Back to Account Management Tools VB> VB> VB> and here is the content of auth.php VB> //some code working with every other pages ?>> VB> and mysql.php VB> //mysql.php Include file initializing connection to db VB> $db = mysql_connect(dbinfo goes here); VB> mysql_select_db("proxy_db", $db); ?>> That happens if you have mismatched braces {} or if(): endif; etc -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Creating an extra library

2003-01-06 Thread Tom Vandeplas
Hi all, this question may have been asked a couple of times already, unfortunately I can't find the answer. I have a complete PHP-webserver system up and running, based on a standard redhat PHP distribution. The only thing that is missing are the XSLT funtions. I managed to build php on a differe

[PHP] Re: Creating an extra library

2003-01-07 Thread Tom Vandeplas
I get "error: m4_defn: undefined macro: _m4_divert_diversion" maybe the versions are incompatible? Any Ideas ? Thx, Tom "J Smith" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Since there's no PHP XSLT extens

Re[2]: [PHP] XHTML Validator Problem[Scanned]

2003-01-07 Thread Tom Rogers
Hi, Tuesday, January 7, 2003, 10:23:54 PM, you wrote: ME> Tom, ME> Thanks for that. ME> I don't have access to the server on which the site is being run but I'll suggest the change to the hosting company. ME> Michael Egan ME> -Original Message- ME> Fro

Re: [PHP] Get your *own* IP...?!

2003-01-07 Thread Tom Rogers
es I think you should take a look at this :)) http://www.dyndns.org/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Forwarding POST info from a PHP script

2003-01-07 Thread Tom Rogers
DB> page for inclusion in the rendered page. DB> Hope someone can help! DB> Thanks. DB> Dave I would do it like this: $posted = base64_encode(serialize($_POST))); echo ''; on the receiving end you need: $posted = unserialize(base64_decode($_POST['posted'])); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I redirect to another php page

2003-01-08 Thread Tom Ray
You could use an include statement in one of two ways. 1) you can just include the page that you want to show, however the url doesn't change it will still be select.php 2) if you want to sent them to yellow.php or green.php you could include an html page that had a meta-refresh in it set for 0 sec

Re: [PHP] HTML email that generates "!"s - any ideas?

2003-01-08 Thread Tom Rogers
pp What happens if you paste the php output directly into your mailer ? -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbee observation

2003-01-09 Thread Tom Ray
Mail servers play a part in this too. Maybe the admins should pack up their servers and send them back too :) -Original Message- From: "Hendrik van Niekerk" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Thu, 9 Jan 2003 11:11:30 -0600 Subject: [PHP] Newbee observation > Why does the webm

Re: [PHP] checkboxes, radio buttons and $_POST['']

2003-01-09 Thread Tom Rogers
uot; JEO>     - Kabbalah Do it like this: $chk1 = (isset($_POST['chk1']))? $_POST['chk1'] : 'No'; replace 'No' with whatever you want for an unchecked box -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is this possible with php?

2003-01-09 Thread Tom Rogers
full. You can read about it here http://www.webdrive.com/ -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XHTML Validator Problem

2003-01-07 Thread Tom Rogers
here any sources of information relating to this area? ME> Thanks in advance, ME> Michael Egan ME> -- ME> PHP General Mailing List (http://www.php.net/) ME> To unsubscribe, visit: http://www.php.net/unsub.php In your php.ini set arg_separator.output to & That should fix it. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSION variable to pass login ID

2003-01-12 Thread Tom Rogers
t; } WG> The message I always get is "Print Missing User", so I must assume the WG> global variable is not working. Can anyone help me out here? WG> Thanks, WG> Larry Make sure you have session_start() at the begining of the second file. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File information JPEG Files

2003-01-12 Thread Tom Rogers
th = '.$info[0].' Hieght = '.$info[1]."'; Resolution is meaningless until you need to print it I think. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Change Date

2003-01-13 Thread Tom Rogers
ime("+ 125 days"); -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
o there is no need to use the & operator in the call. At least thats how it works in a simple class. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 11:01:33 AM, you wrote: P> -BEGIN PGP SIGNED MESSAGE- P> Hash: SHA1 P> On Monday 13 January 2003 20:01, Tom Rogers wrote: >> Hi, >> >> Tuesday, January 14, 2003, 9:36:57 AM, you wrote: >> P> -BEGIN PGP SIGNED MESSAGE-

Re: [PHP] Getting info with WHILE

2003-01-13 Thread Tom Rogers
fo, for example with id=2, I only ES> get ES> ../images/militar.jpg ES> hgfhgfh ES> eze ES> I do not get ES> ../images/agosti.jpg ES> Any idea? ES> Thanks ES> Ezequiel ES> Ps. The page is located at http://www.historiadelpais.com.ar/bio.php?id=2 $respuesta

Re: [PHP] data move, Please Help..

2003-01-14 Thread Tom Rogers
the only requirement being is a permanent link to the mysql server. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[2]: [PHP] Re: Ever complained about lousy PHP programmers?

2003-01-17 Thread Tom Rogers
It seems like it would be PH> preferable to print() for this reason. On top of that, it will take PH> multiple strings as input. I think I will remove the parentheses, though. PH> -Peter put it into single quotes and it is a bit tidier :) and you don't need the semi colon if yo

Re: [PHP] Display Dates in English o_O

2003-01-17 Thread Tom Rogers
and get a difference. Then get all dates from mysql as a unix timestamp, apply the difference then use date() to format it as you want and it will always match the clients time on their computer...even if they have it wrong :) -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] passing variables to a sql statement

2003-01-18 Thread Tom Rogers
); j> $descripResult = mysql_db_query($database,$descripQuery); j>while($row = mysql_fetch_object($descripResult)){ $foo = $row->>descrip; j> echo(""); j> echo("" . "$foo" . " | "); j> echo(""); j> } ?>> j>

[PHP] mysql_connect error

2003-01-20 Thread Tom Ray
Can someone please tell me why I'm getting this error: *Fatal error*: Call to undefined function: mysql_connect() in */webs/tom/www.bohabcentral.com/www/bohabs/auth.php* on line *4 *mysql_connect was working a week or so ago, and I haven't made any changes to the servers configur

Re: [PHP] is this better or is it still in html?

2003-01-20 Thread Tom Rogers
Hi, Monday, January 20, 2003, 1:59:17 PM, you wrote: KJ> Karl KJ> -- KJ> PHP General Mailing List (http://www.php.net/) KJ> To unsubscribe, visit: http://www.php.net/unsub.php its fine ... no html if thats what you mean :) -- regards, Tom -- PHP General Mailing List (http:/

Re: [PHP] $header = "Location:........" being ignored!

2003-01-21 Thread Tom Rogers
ccess.html ! S> Is there anything obvious that I am doing wrong? S> Thanks, S> Shams S> p.s. I don't want to use else{} because I have lots of if() checks! put exit(); after the failed header. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
It turns out after some checking, the other admin on the machine ran a kernel update last week. I hadn't been testing any scripts over the last week myself so I didn't notice the issue until the other day. When I run a function_exists() for mysql_connect it comes back false. When I run phpinfo() t

Re: [PHP] mysql_connect problem..update

2003-01-21 Thread Tom Ray
Thanks, we're going to give that a try. -Original Message- From: Tracy Finifter Rotton <[EMAIL PROTECTED]> To: Tom Ray <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Date: Tue, 21 Jan 2003 10:25:55 -0800 Subject: Re: [PHP] mysql_connect problem..update > Talk to t

Re: [PHP] Mohawk Software session handler functions

2003-01-22 Thread Tom Rogers
Hi, Wednesday, January 22, 2003, 6:15:36 PM, you wrote: HJ> Hello, there. HJ> I'm Looking for 'Mohawk Software session handler functions' examples. HJ> PHP Manual describes it http://www.php.net/manual/en/ref.msession.php . HJ> But, There are no descriptions and examples. HJ> Anybody has one?

Re[2]: [PHP] Mohawk Software session handler functions

2003-01-22 Thread Tom Rogers
$this->host = $host; TR> $this->Username = $user; TR> } TR> function getuser($type = ""){ TR> if($type == "u"): TR> return $this->Username; TR> elseif($type == &quo

Re: [PHP] Simple E-mail Question

2003-01-22 Thread Tom Ray
you would put that in the $mailheaders variable. Something like $mailheaders = "From: Joe Bloe <[EMAIL PROTECTED]>\r\n"; $mailheaders .= "Cc: Some Dude <[EMAIL PROTECTED]>\r\n"; $mailheaders .= "Bcc: Some Other Guy <[EMAIL PROTECTED]>\r\n"; That should work for you. Just do this for whatever oth

Re: [PHP] Generating a range of IP address

2003-01-22 Thread Tom Rogers
p2,$ip1) = split('.',$ip1); list$ip8,$ip7,$ip6,$ip5) = split('.',$ip2); $ip = intval($ip1); $endip = intval($ip5); while($ip < $endip){ $storeip = $ip4.'.'.$ip3.'.'.$ip2.'.'.$ip; //store it $ip ++; } There

Re: [PHP] A rather strange problem.

2003-01-23 Thread Tom Rogers
DLM>print " "; DLM> print " "; DLM> } DLM> ?> DLM> Unquote DLM> Thanks DLM> denis put the value in quotes value=\"$row[OrgName]\"> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SSH change password!

2003-01-24 Thread Tom Woody
sswd command on that user to > change the password. Or maybe I am wrong, I never done something like > that. > > Thanks for any info! > > -mNTKz > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] domxml_new_doc() utf8 encoding

2003-01-24 Thread Tom Rogers
; ob_end_clean(); $dom = domxml_open_mem($buffer); //check echo ''; echo htmlentities($dom->dump_mem(true)); echo ''; ?> -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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