Re: [PHP] Aspell Function

2001-01-23 Thread Josh G
And the answer was? Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Matt Stone" <[EMAIL PROTECTED]> To: "Matt Stone" <[EMAIL PROTECTED]>; "PHP L

Re: [PHP] 1. php ISP host wanted, 2. Release of EasySQL

2001-01-23 Thread Josh G
best kind of networks, those RAID networks. Much better than STRIPE printers Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication to hangovers, and hangovers to... suffering. - Original Message - From: "Richard Creech

[PHP] gmmktime() woes

2001-03-15 Thread David G.
Can anyone tell me why the following code returns 0 instead of 3600 seconds? \n"; ?> However, using mktime() for the same date does produce the correct output, which for my timezone (CST) is 25200 seconds. Furthermore, running this on a Linux machine with PHP4 produces the correct result for bot

Re: [PHP] TraceRoute

2001-03-19 Thread David G.
The reason is to keep you email address from being collected by Usenet trolling robots. In that case, however, you should mention (via signature or otherwise) in the body of the message what word to remove to get a valid address. Since this newsfeed is fairly inconspicuous it is likely not a prob

[PHP] Why not 'file_exists()' for URLs?

2001-03-19 Thread David G.
Since fopen/fread/fclose all work with standard URLs, why not allow file_exists() to work with URLs as well? What is the procedure to make such a request? And yes, I know how to work around it for now; quite simple even for a newbie such as myself...not to mention that a similar question was rece

[PHP] COM and type mismatch

2001-05-24 Thread G Hughes
Does anyone know the reason for the type mismatch error which often seems to happen when using COM objects? The only piece of info I've seen suggested that a COM object can't be passed as a variable to a second COM object. Is this true, and if it is how might this be worked around. Thanks for an

Re: [PHP] Including files & variables ...

2002-01-02 Thread Jason G.
What you need to do is simply set the variables before you include the script. When you include a script with include() or require(), they fall into the same namespace as the include() or require() function that called them. Best Regards, Jason Garber IonZoft.com At 06:54 PM 1/28/2002 -0800,

Re: [PHP] Fatal error: Call to a member function on a non-object in example 1.php on line 66

2002-01-17 Thread Jason G.
First of all, make sure the $root->children() returns an array of objects. Second of all, remove the space between $All_nodes and [1]. Your code should look like: $childNodes=$All_nodes[1]->children(); If that does not work, you may have to create a temp var to use... $tmp = $All_nodes[1]; $chi

[PHP] htmlspecialchars() alias

2002-01-17 Thread Jason G.
Hello General and Dev list, Considering the fact that it is good practice to use htmlspecialchars() anytime you are outputting non-html content to the browser... After typing the 16 characters in the htmlspecialchars() function thousands of times... I was wondering if it would be feasible to

Re: [PHP] Need opinion On sessions - Cookies mandatory?

2002-01-23 Thread Jason G.
At 09:35 AM 1/23/2002 +0100, Nick Wilson wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > > >* and then Jason G. blurted > > If cookies do not work, then you must have a session_id appended to the > > URL. HTTP is a "stateless" protocol. So

Re: [PHP] getting a LAMP job in this economy

2002-01-25 Thread Jason G.
This has been an interesting thread, so I'll toss in my unique point of view... I have never held a full time job for anyone but myself. I find good opportunity and take advantage of it. I make decent money also. I have not marketed myself as a PHP developer, but rather as a problem finder a

Re: [PHP] Any Ideas

2002-01-28 Thread Jason G.
$str = ereg_replace('[-!@#$%^&*()_+=-\';:"/.,<>?]', '', $str); You may need to escape some of these characters with \ On the other hand, they are contained in a character class [] so you may not need to escape them. Note how the `-' is in the beginning. -Jason Garber IonZoft.com At 09:13 AM

Re: [PHP] '' and \" -> How do you avoid removing these?

2002-01-29 Thread Jason G.
Set this: magic_quotes_gpc=0 in your php.ini or use stripslashes on all your data. -Jason Garber IonZOft.com At 02:58 AM 1/30/2002 +, Jon wrote: >Okay, I'm trying to read in a form with " and ' in it. The problem is that >PHP automatically changes these to \" and \' without asking :( If I

[PHP] Re: [PHP-DB] Drop down list

2002-01-30 Thread Jason G.
Sir, Would you kindly suppress the 7000 headers that your IncrediblyAnnoying email program includes.  Also, please use only plain-text. Thanks you, Jason Garber IonZoft.com At 09:17 PM 1/30/2002 +1300, you wrote:   I have two fields artist_id, artist. How do I put the contents of "artist" into a

Re: [PHP] How can I decrypt a password I previously coded with md5()?

2002-01-30 Thread Jason G.
Hi Nicolas, I would be interested in seeing the javascript md5 function if possible. Thanks, Jason Garber IonZoft.com At 11:18 AM 1/30/2002 +0100, Nicolas Costes wrote: >As already said here, you cannot reverse the md5() function ... >So : > > -The user fills a login box (login, pas

Re: [PHP] crypt/Password

2002-02-03 Thread Jason G.
Hi, I just thought i would point out that the entire point of crypt, md5, or MySQL password() function is to create a hash out of the original string. However, they are designed so it is computationally infeasible to take a hash and find out the original string was. Actually, it is impossib

Re: [PHP] Can php Read contents from MS Word in Exactly same format

2002-02-03 Thread Jason G.
MS Word is a proprietary, binary (i think), format... Have fun. There may be a solution out there. If you could convince her to save it in Rich Text Format (rtf) and then upload it, your life would be much easier... -Jason Garber At 01:51 PM 2/4/2002 +0800, Jack wrote: >Dear all >I had made

Re: [PHP] Sockets

2002-02-03 Thread Jason G.
A quick note... If you are not aware of cURL (curl.haxx.se), then you may want to look into it. If you are, then please disregard this post. -Jason Garber At 11:06 PM 2/3/2002 -0800, Evan Nemerson wrote: >Anyone know if there is a way yet to see if a socket is still connected to a >host? I wan

Re: [PHP] Can php Read contents from MS Word in Exactly sameformat

2002-02-04 Thread Jason G.
ston wrote: >Is there a function or class written to convert rtf reliably to html? :) >Let me know, >John >A post & reply would be helpful if you can. > >"Jason G." wrote: > > > MS Word is a proprietary, binary (i think), format... Have fun. > > &g

Re: [PHP] mail() function not sending to Yahoo address

2002-02-04 Thread Jason G.
Just a note... Make sure your server's IP address is not black holed by some spam list... -Jason Garber IonZoft.com At 08:22 AM 2/4/2002 +0100, TV Karthick Kumar wrote: > Hi, > > I use a form on my website for the visitors to send me the feedback and >use the mail() to do this job for me.

[PHP] Server Loading Question...

2002-02-06 Thread Jason G.
Hello List, Does anyone know of a Really Good way to determine what kind of loads your Webserver/network can handle before degrading performance or flaking out? I would like to find this out about our server before it fails us under heavy load. Thanks, Jason Garber Univo.biz -- PHP Gener

[PHP] How can I open URL using HTTP POST instead of HTTP GET?

2002-02-10 Thread Zlutarch G.
Hi everyone, PHP fopen function opens URL using the HTTP GET method. But what if one could only open the web page using the HTTP POST method? In this case, fopen won't work. Is there a PHP function that is similar to fopen, but uses HTTP POST method to open URL instead? If not, then how do I w

[PHP] Apache.exe fails Java

2002-02-16 Thread Zlutarch G.
Hi, I am learning how to use the PHP Java extension. I used the example script/codes found in the PHP Java documentation:" getProperty('java.version').' '; print 'Java vendor=' .$system->getProperty('java.vendor').' '; print 'OS='.$system->getProperty('os.name').' '. $system->

Re: [PHP] implement yourname.mysite.com redirection

2002-02-18 Thread Jason G.
Hi, Look into mod_rewrite with Apache. We use it to capture www.univo.biz/yourname and display a page about you. However, my experience is very limited. I would imagine you could figure it out though. -Jason Garber IonZOft.com At 09:47 AM 2/18/2002 +, Adrian Murphy wrote: >Hi, >I'd like

[PHP] Re: [PHP-DB] I cant get the logic for this...

2002-02-18 Thread Jason G.
$nWidth = 3; $oRow = TRUE; while($oRow) { //Write tr here for($i=0; $i<$nWidth; $i++) { $oRow = mysql_fetch_object($dbResult); //Write here } //write /tr here } At 12:06 PM 2/18/2002 +, you wrote: >Hi all, > >I w

Re: [PHP] form submission error trapping

2002-02-18 Thread Jason G.
Why do not you all just put all your PHP logic, db access, etc at the TOP of the script. Once you have your results and variables created, then start into html. This method produces MUCH cleaner scripts, and there is a very minimal amount of PHP interspersed within the HTML. Also, you have ti

[PHP] FATAL call to undefined function pg_query()

2002-05-28 Thread Steve G
Hello, I don't know exactly why I'm getting this output: Fatal error: Call to undefined function: pg_query() in /var/www/html/steve/frontdoor.php on line 42 I can successfully connect to my db using: $link = pg_connect ("host=localhost dbname=$dbname user=$user"); And I even get the proper Da

Re: [PHP] FATAL call to undefined function pg_query()

2002-05-29 Thread Steve G
weres that question. -steve - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 28, 2002 11:17 PM Subject: Re: [PHP] FATAL call to undefined function pg_query() > On Wednesday 29 May 2002 11:37, Steve G wrote: &

[PHP] PostgreSQL - WHILE loop working too well / WARNING: Unable to jump to row 2 on PostgreSQL...

2002-05-29 Thread Steve G
I do not understand why PHP is trying to pull row 2!! I want to create an array of data and construct a table from a query. The echo of $rows shows 2 rows, so if I'm setting my variable to 0 and incrementing with each loop, it doesn't make sense to me why it tries to pull row 2. It should stop

[PHP] PHP Warning: ['xxxx']: Unable to initialize module

2002-05-30 Thread Steve G
Hello, I'm running Linux 7.2 and apache. Also PostgreSQL. After upgrading from 4.0.4 I receive all of these errors and I have no idea what API=xxx means. I followed the instructions for upgrading to 4.2.1 and everything apparently went well, but still have module errors. Also, phpinfo() still

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Stewart G.
Its not a register_globals issue. You must wrap $user and $address in php print statements rather than just in the html. Your name is . Your address is . That will work with either GET or POST. -- Stewart On Mon, 25 Feb 2002, Kostas Karadamoglou wrote: > I set the register_globals On in the

Re: [PHP] Re: form submission error trapping

2002-02-25 Thread Stewart G.
You do not need to use javascript. Simple create a form that submits to itself. And check the values, then reprint the form or redirect. Example: \n"; } } if (!empty($err_msg)) print $err_msg; } ?> Hope that helps, -- Stewart On Mon, 18 Feb 2002, George Whiffen wrote: > Jason

Re: [PHP] Problem about Reading input from a Form

2002-02-25 Thread Stewart G.
OK, Im an idiot, glad I caught myself before someone else did. I didnt see the PHP print statments. :) Follow mikes advice on the register globals, and restarting the server. Or try using $HTTP_POST_VARS['user'] or $_POST['user']. -- Stewart On Mon, 25 Feb 2002, Stewart

Re: [PHP] PHP Forms

2002-02-25 Thread Stewart G.
Your submit button does not have name="submit" set. So $submit is never being set. Also your html is full of errors, I would clean that up and put it thru a validator, try html tidy (www.w3c.org). And, make sure that formvalidation() is passing true, is that fails the form will never be submi

Re: [PHP] when to use htmlspecialchars()

2002-02-25 Thread Stewart G.
If you will be using the data elsewhere then use it when it is displayed on the screen, or your other program will have to parse it. It is a good idea to always run htmlspecialchars when outputting text to the browser that came from a form. -- Stewart On Mon, 25 Feb 2002, Erik Price wrote: >

Re: [PHP] Converting arrays

2002-02-26 Thread Stewart G.
Why dont you just use timezones? =S. On Mon, 25 Feb 2002, Gary wrote: > Simon Willison wrote: > > > Gary wrote: > > > >> Hi All, > >> I am not too bad at building arrays in php but I need to convert a > >> javascript form into php. How wuld I conver the small snippit here? > >> > >> var d =

Re: [PHP] PHP features

2002-02-26 Thread Stewart G.
If you are talking about the session variables use --enable-trans-sid, if you are talking about variables passed from your form fields to another script use on in your html. =S. On Tue, 26 Feb 2002, Daniel Alsén wrote: > Hi! > > Which function should i turn on in the PHP installation to get

Re: [PHP] dynamic pulldown list generation help

2002-02-26 Thread Stewart G.
I got this to work, it list all file (type f) in the current directory, you can extend it further. $ls = split("\n", rtrim (`ls`)); print ""; while (list ($key, $value) = each ($ls)) { if (is_file ($value)) print "$value\n"; } print ""; =S. On Tue, 26 Feb 2002, Andrew Slezak wrote: > Basic

Re: [PHP] is there an "in" qualifier in PHP?

2002-02-26 Thread Stewart G.
if ($row['id'] in_array ($selected_users)) { // execute } =S. On Tue, 26 Feb 2002, Erik Price wrote: > I have a problem with some code (posted below), which I think I can > solve using a method similar to that found in Python: > > if ($item in $potential_items) { > // do one thing > } e

Re: [PHP] getting the URL of a parent frame

2002-02-26 Thread Stewart G.
This is the wrong list to bring up such an issue. However you can use: parentWinLocation = window.parent.location.href; In the future please keep messages to this list relevant to PHP. =S. On Fri, 25 Jan 2002, Unger wrote: > Hello! > > How can i get the url of the main page with a script,

RE: [PHP] mysql php - while loops

2002-02-27 Thread Stewart G.
After the loop has finished executing add another line if ($i % $cols != $cols-1) { print ""; } Otherwise once the loop has finished if not EXACLTY $i % $cols == $cols-1 then there would be no after the last row which could cause display problems in the user agent (other than the fact that it

Re: [PHP] Unable to display images on browser

2002-02-27 Thread Stewart G.
try using gd if you have >= 1.8.3 then you will have to use ImagePng() and Content-type: image/png instead of ImageGif() to export the image. header ("Content-type: image/gif"); $im = ImageCreateFromString ($fileContent); ImageGif ($im); =S. On Tue, 26 Feb 2002, Narvaez, Teresa wrote: > Hello

RE: [PHP] Crontab

2002-02-27 Thread Stewart G.
This is why I love lists. I was going to have to do something similar this week and was planning on using perl, never thought about running php from the command line. Thanks, =S. On Wed, 27 Feb 2002, Sven Jacobs wrote: > I've use a script that I put in my cron.weekly to execute a php script

[PHP] HELP! Open "HTTPS://", and follow rediect header

2002-03-24 Thread Zlutarch G.
Hi All, I need help on two problems: 1) Is there a PHP function similar to fopen() that would open URL begins with "https://";, i.e., SSL address? 2) Does anyone know if it is possible in PHP to read redirect instructions in HTTP header, and then follow the links? Thanks in advance, Zlu __

Re: [PHP] classes- getting their slowly but surely I think

2002-03-28 Thread Jason G.
Hello, It sounds like a problem with your HTML output. First, look at the source of the generated page, and find out if your html is formatted correctly. Then look at the php code to find out the problem. -Jason Garber At 04:44 PM 3/28/2002 -0800, Caspar Kennerdale wrote: >just a quick query

Re: [PHP] parsing a string

2001-10-18 Thread Jason G.
Why don't you do something like this: Then search for a regx something like (I am not sure of the exact syntax). Then parse the found tag, generate your I'm reading some HTML text from a file and echoing it to >stdout. The HTML text contains but I would rather >have the server do the work o

Re: [PHP] Form Question

2001-10-22 Thread Jason G.
Chip, I read all of the posts regarding this topic that I could find, and just *had* to reply. (Take the TIME to look at this. It is about the most Efficient, Powerful way I know of) Do this! __ txtNAME="Required"; if(empty($txtADDRESS))

Re: [PHP] Re: require & include

2001-10-22 Thread Jason G.
From the manual: Unlike include(), require() will always read in the target file, even if the line it's on never executes. If you want to conditionally include a file, use include(). The conditional statement won't affect the require(). However, if the line on which the require() occurs is no

RE: [PHP] OnUNload Scripts

2001-10-23 Thread Jason G.
It may be possible to do something of the following: I know that on rollovers, Javascript can preload the images needed to rollover to... Hmm... Maybe you could have javascript load an image during the unload event with the image's src pointing to a php script... -Jason Garber At 04:51 PM

Re: [PHP] how do i give optional arguments to functions??

2001-10-25 Thread Jason G.
Umm... function top($image = '') { echo("bla bla $image bla"); } Might need to use an IF (because of having 2 spaces if the image is empty) -Jason Garber IonZoft.com At 10:14 AM 10/24/2001 -0700, Richard S. Crawford wrote: >function top ($image) { > if ($image) echo "blah bla

Re: [PHP] Sending two attachments

2001-10-29 Thread Jason G.
I believe one of your boundarys has -- at the end. According to the RFC dealing with this subject, stick -- on the end of only the last boundary. -Jason Garber IonZoft.com At 02:13 PM 10/12/2001 +0530, Sharat Hegde wrote: >Hello, > >I am trying to send multiple attachments by email from

Re: [PHP] Session handling with cookies??

2001-10-30 Thread Jason G.
Set the expire date to be 0. then the browser will delete them after the browser window is closed. -Jason Garber IonZoft.com At 02:39 PM 10/29/2001 +0100, Andy wrote: >Hello, > >I have developed a member login system with cookies. Now I have the prob, >that the session stayes existend when the

Re: [PHP] Trouble with php generated images

2001-10-30 Thread Jason G.
Give ImagePNG a try... -Jason Garber At 10:22 PM 10/29/2001 -0800, costa wrote: >The text printed on this image looks sloppy and grainy. (This image is being >generated on a linux server RH 7.1, Apache 1.3.19, with GD 1.8) I remember >seeing something about adjusting the quality of the image, bu

Re: [PHP] need coments...

2001-10-31 Thread Jason G.
Second comment is that we are not a review board for specific products. At 10:40 PM 10/30/2001 +0300, you wrote: >Good day! > >I try to wrote Web-interface for DNS. Only simple test version now. I'd like >to listen your comets to make real good and useful thing. mail me you >coments >please > >G

Re: [PHP] show png in the browser

2001-10-31 Thread Jason G.
Ever consider reading the online manual? First, say header("Content-type: image/png"); Second, create image. third use ImagePNG() function fourth, destroy image. fifth, go directly to the php script that generates the image, then you will see PHP generated errors. -Jason Garber IonZoft.com At

Re: [PHP] question about variables...

2001-10-31 Thread Jason G.
READ THE MANUAL. variable variables $i=1; $sName = "seat$i"; $value = $$sName; At 04:40 PM 10/31/2001 +1100, sc wrote: >Hey all; > >If i have a variable say, $seat and i want to go through variables with a >number, ie. $seat1 , $seat2 etc. how would i go about it? i have one setup >where $p in

RE: [PHP] defending PHP mail function

2001-10-31 Thread Jason G.
I've just been watching the posts regarding this issue. I can see the following: You SHOULD test it on *nix JUST to narrow down the problem. You ask for help from all the *VERY NICE* people on this list, and then WILL not do what they say will help??? If you do not like the php smtp implementat

Re: [PHP] run php in commandline

2001-10-31 Thread Jason G.
I just did that tonight. Lookup the predefined variables in the manual. $argc gives a count of the arguments $argv is an array of the arguments Ex: php -q myscript.php Apple Orange $argc == 3 $argv[0] == 'php -q myscript.php' or something like that $argv[1] == 'Apple' $argv[2] == 'Orange' -Ja

Re: [PHP] Re: Can you AUTO "Post/Submit" on a mixed HTML/PHP form

2001-11-01 Thread Jason G.
Just a thought... Check out crescent internet toolkit by Progress Software. It has a control for VB that lets you post data to a script, rather than relying on an HTML form... Can you just use a query string? you may have to code your own urlencode() function in VB, but that may be an optio

Re: [PHP] Uncertainties about MySQL commands

2001-11-01 Thread Jason G.
Regarding your mysql_insert_id() function: I believe that it works on a connection by connection basis. Therefore, if you execute an insert, and then call that function, you are guarenteed to have the correct ID. Look up the LAST_INSERT_ID() function in the MySQL manual on www.mysql.com for

Re: [PHP] Mail and mime and attachments

2001-11-03 Thread Jason G.
I tried and tried. I finally got it to work (multipart/alternative) after reading the rfc. Read RFC 1521 at http://www.faqs.org/rfcs/rfc1521.html. Look at section 7.2.2. It will tell you all you need to know. By the way everyone, from faqs.org, WHICH I AM SURE MOST OF YOU USE TIME TO TIME

RE: [PHP] Am i crazy?

2001-11-04 Thread Jason G.
Try putting exit; right after the header() function... -JAson Garber IonZoft.com At 06:54 PM 11/4/2001 +0100, Martin wrote: >Jack Dempsey wrote: > > > you're assigning, not checking for equality...use two ='s > >Still not redirecting ... > >Martin S > >-- >PHP General Mailing List (http://www.ph

Re: [PHP] Question....

2001-11-12 Thread Jason G.
try ".mysite.com" -Jason Garber At 12:07 PM 11/13/2001 +1100, Chris Kay wrote: >I have a simple question that bugging me.. > >I have a site which I am designing with users auth, I have decided to use >cookies as I need to store variables after the user leave the site.. > >Problem I am having is

Re: [PHP] Regular Expression

2001-11-13 Thread Jason G.
I am just learning them, but I think something like this may be in order... I know that you would use the | (or) operator. if(! (ereg('^[a-z|A-Z|0-9|\-]+$', $fn) && (ereg('^[a-z|A-Z|0-9|\-]+$', $fs))) { Either $fn or $sn failed the match } -Jason Garber IonZoft.com At 04:41 PM 11/13/

[PHP] Function Call Line Number

2001-11-13 Thread Jason G.
Hello, Does anyone know of a way, that from within a function, you can determine what line number and file the function was called on? I did try: function myfunc($lineno = __LINE__) { echo $lineno; } but this just outputted the very line that __LINE__ resides on. This would be very hel

Re: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Jason G.
your error reporting must be set to E_ALL. a very simple way is: $checkbox_3 = isset($checkbox_3); Now, $checkbox_3 will be either TRUE or FALSE with no errors! -Jason Garber IonZoft.com At 06:03 AM 11/14/2001 +, [EMAIL PROTECTED] wrote: >In am HTML form, checkboxes NOT checked are not pas

Re: [PHP] array_unique() workaround? SOLUTION!

2001-11-14 Thread Jason G.
it seems that... $newarray = array() foreach($oldarray as $key => $value) if(! isset($newarray[$key])) $newarray[$key] = $value; -JAson Garber IonZOft.com At 10:42 AM 11/14/2001 +0100, Spunk S. Spunk III wrote: >Thanks everyone for the ideas, >Here's what I came up wit

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-14 Thread Jason G.
try this.. Raw html code here for as long as you want More Raw Html Code Here Ok, I figured out that just using echo seems to be the best way to do this >under PHP. In ASP, you can end your code block and

Re: [PHP] Question on variable variables

2001-11-17 Thread Jason G.
It seems to me that the use of a temp variable may be the clearest solution, and I doubt any overhead would matter really. $a = "dog"; $tmp = "MY".$a; //$tmp = "MYdog"; So the following two would be the same: $$tmp = "Spot"; $MYdog = "Spot"; Good Luck, Jason Garber IonZoft.com At 09:47 PM 11

Re: [PHP] Advantages of php

2001-11-17 Thread Jason G.
You could check the list archives... This question flys by every week or two... -Jason Garber IonZoft.com At 01:41 PM 11/17/2001 +0530, Adrian D'Costa wrote: >Hi, > >Is there somewhere on the PHP site that give a list of advantages, speed, >etc in comparsion with other similar programs. I hav

Re: [PHP] Difference of queries in PHP/mySQL?

2001-11-18 Thread Jason G.
Check the return value of mysql_query(). It should either evaluate to false, or true. If false, then output some error messages using mysql_error() and mysql_errno(). -JasonGarber IonZoftDotCom At 01:29 PM 11/17/2001 -0500, Jeff Lewis wrote: >I am wondering if there are any difference betwee

Re: [PHP] extract() question

2001-11-19 Thread Jason G.
I needed this once, but I could not figure out how to just create the vars in current scope. If my_extract() is called from within a function, then the variables will not be available unless you declare them global (which kinda makes the function pointless). Any ideas? -Jason Garber IonZoft.

Re: [PHP] Detecting IP address

2001-11-19 Thread Jason G.
Use the $HTTP_SERVER_VARS['REMOTE_IP'] variable... At 01:58 AM 11/19/2001 -0800, Heidi Belal wrote: >Does anyone have any idea how i can detect a clients >IP address? I've found javascripts on the net but >they only work on netscape and only when java is >enabled. I need it to work on IE. >Than

RE: [PHP] How to create and run background process at Win2K

2001-11-19 Thread Jason G.
the application as a SERVICE. > > Would that do the trick? > > > > > > __John Monfort_ > > _+---+_ > > P E P I E D E S I G N S > >www.pepiedesigns.com > > "The world is waiting, are you

Re: [PHP] Valid Chars Function

2001-11-19 Thread Jason G.
Well, you can make good use of regular expressions, or write your own function. (It turns out i needed the functions, so I just wrote them, and included them here) ** //This regex checks for > 1 letters in a string - anything else will fail if

Re: [PHP] Segmented Code/HTML VS. ECHO??

2001-11-19 Thread Jason G.
We are not writing in perl... Php offers a very handy feature, the ability to go in and out of html/php code by just using and the ability to echo data by using Seperate as much of your HTML from your PHP as possible. It will assist in readability, and maintenance.

Re: [PHP] Adding *another* person to an e-mail *to:* address

2001-11-19 Thread Jason G.
"Bcc: [EMAIL PROTECTED],[EMAIL PROTECTED]" Or "Cc: [EMAIL PROTECTED],[EMAIL PROTECTED]" Or "To: [EMAIL PROTECTED],[EMAIL PROTECTED]" Put a comma between email addresses. -Jason Garber IonZoft.com At 01:00 PM 11/19/2001 -0600, Anthony Ritter wrote: >Hi, >Thanks to all that helped me out yesterd

RE: [PHP] Check contents of variable

2001-11-20 Thread Jason G.
You could also try: if(! ereg('^http://', $url)) $url = 'http://' . $url; -JAson Garber At 11:15 PM 11/20/2001 +0100, Daniel Alsén wrote: > > How about: > > > > if (substr($url,0,7) <> "http://";) > > $url = "http://"; . $url; > >Thanks! > >That´s just the function i am looking f

Re: [PHP] Re: Cookies and Variables

2001-11-20 Thread Jason G.
Keep it mind that EGPCS is in that order for a reason. Changing it can open up security problems... -JAson Garbr At 01:16 PM 11/20/2001 -0800, Fred wrote: >If you want certain variables to over ride cookie variables you need to >change the setting of the variables_order directive in ph

Re: [PHP] Send an e-mail witdh php

2001-11-22 Thread Jason G.
Also, If you have an array of addresses, use the implode() function. $sAddressList = implode(',', $aAddressArray); and then use that with the Bcc: header in the mail function. -Jason Garber IonZoft.com >Hi Henk, > >You don't need a special class, just use: > >$to = "[EMAIL PROTECTED]"; >$sub

Re: [PHP] [php] telnet describe command for mysql

2001-11-25 Thread Jason G.
Yeah, use a real client program like Terra Term. -Jason Garber At 05:07 PM 11/24/2001 +, cosmin laslau wrote: >I've got a huge table that I'm trying to get information about. I use a >MySQL database, and the windows telnet utility to access it. To see info >about the table, the DESCRIBE c

Re: [PHP] Classes

2001-11-25 Thread Jason G.
Miles, I have come from a QBASIC to VFP to VC++ to PHP (VFP and PHP are my primary languages), so I'll try to clear it up a bit. In VFP, there is no constructor. I believe that the equivalent is the init() method. The init() method, or the constructor (in PHP, C++, etc) are useful for doing

Re: [PHP] Classes

2001-11-25 Thread Jason G.
Miles, I have come from a QBASIC to VFP to VC++ to PHP (VFP and PHP are my primary languages), so I'll try to clear it up a bit. In VFP, there is no constructor. I believe that the equivalent is the init() method. The init() method, or the constructor (in PHP, C++, etc) are useful for doing

RE: [PHP] EXAMPLE: Redirect upon execution of script...

2001-11-25 Thread Jason G.
Doing this is very simple, although a pain in the rear... For those of you that have any confusion on this issue, pay very close attention to this script. It effectivly demonstrates how to deal with a form, and display intellegent errors WITHOUT any of that "...Please click your browsers back

[PHP] Cause of:`T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR'

2001-12-01 Thread Jason G.
Hello all, I have ran across this error a number of times, and for those of you who are or will pulling out your hair, read on. When you get a: Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in your_script.php on line 2149 Check to see if you have al

Re: [PHP] session question: session.auto_start vs. session_register.

2001-12-05 Thread Jason G.
You may want to check out something like auto_prepend_file. Look at the PHP configuration help. I was thinking that you may be able to include your class definition there - IF auto_prepend_file IS INCLUDED BEFORE session.auto_start starts the session. Otherwise, use auto_prepend_file to incl

Re: [PHP] SQL Query Question

2001-12-08 Thread Jason G.
Assuming you have the variable member_id (for the member in question)... Get the score for that member and store it to $score... "SELECT score FROM members WHERE id=$member_id" Then to determine rank, just do this... SELECT COUNT(*)+1 as rank FROM members WHERE SCORE>$score; -Jason Garber IonZ

Re: [PHP] How to compute time to load page...

2001-12-08 Thread Jason G.
What about the small difference there will be between server time and local time? -Jason Garber At 10:40 PM 12/8/2001 -0500, Alex Shi wrote: >Basically I agree with you. But the second time to get time must be done >after the page is rendered on local browser. So I suggest to use Javascript >for

Re: [PHP] Branching to a page

2001-12-13 Thread Jason G.
Just send a redirect header. header("Location: nextpage.php"); exit; -Jason Garber IonZoft.com At 08:45 AM 12/11/2001 -0800, Todd Cary wrote: >I open a socket if I am in the middle of a php script to branch to a >page so that I can send the header information. However, I understand >that this

Re: [PHP] Programming Jobs

2001-04-02 Thread David G.
"Jon Jacob" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I hope this is not off topic, but I need to ask a general audience this > question and this seems like the right group. > > I have been out of work for two months and I am not sure why. I am a > talent

[PHP] experienced PHP/MYSQL/Perl/JAVA programmer

2001-04-06 Thread SAM G
Hi, I am experienced PHP/MYSQL/Perl/JAVA programmer, with many applications developed. If you have any projects need help, we can work together. If you are interested, pls send me e-mail for more details. Besides, I am in Toronto, would like to make some friends to exchange programming skill. Th

[PHP] Is there a setInterval function in PHP?

2001-08-04 Thread Zlutarch G.
Hi, I couldn't find a similar function in the official documentation. Does anyone know if there is a setInterval function in PHP? i.e., making repeated calls to a function separated by a given time period. Is such a function even possible in PHP? One way to do it, without a PHP function, is to

Re: [PHP] Codes in PHP

2001-09-20 Thread Jason G.
Please only post a question ONCEE PHP does all of it's work on the server, Going back to a previous page (without reloading it) is done by the Web Browser. The only way I know of is maybe to have php generate an empty page that has: At 03:49 PM 9/20/2001 -0400, Wee Chua wrote: >Hi all

Re: [PHP] Codes in PHP

2001-09-20 Thread Jason G.
Please only post a question ONCEE PHP does all of it's work on the server, Going back to a previous page (without reloading it) is done by the Web Browser. The only way I know of is maybe to have php generate an empty page html that has: onLoad="javascript:history.go(-2);" in the body tag

Re: [PHP] simple question...

2001-09-20 Thread Jason G.
Well, Here is a function that may be helpful. The bad part is that I never finished it, so it only accepts dates in the MDY format... http://www.deltacron.com/source/check_date.php -Jason Garber www.deltacron.com At 08:56 PM 9/20/2001 -0700, you wrote: >ey guys.. how do i check if the pos

Re: [PHP] simple question...

2001-09-20 Thread Jason G.
Well, Here is a function that may be helpful. The bad part is that I never finished it, so it only accepts dates in the MDY format... http://www.deltacron.com/source/check_date.php BTW... If you already have a connection to MySQL, you could send simple queries to it to take advantage of its

RE: [PHP] Just for fun:

2001-09-20 Thread Jason G.
One of my largest is a function of a complete session management class that I wrote - 150 lines. The class is ~ 450 lines. When you find yourself writing HUGE functions, it may be better to split it into smaller, more clearly defined functions or classes and do it that way... -Jason Garber Le

Re: [PHP] string conversion

2001-09-20 Thread Jason G.
Andras, $aRay = split('.', 'mypicture.jpg'); $aRay[0] will be the filename $aRay[1] will be the extension -Jason Garber www.deltacron.com At 03:14 PM 9/20/2001 -0700, Andras Kende wrote: >Hi, > >I trying to cut the last 4 char of a string but sometimes its cut 3 sometime >4 char > >$pic1

Re: [PHP] string conversion

2001-09-20 Thread Jason G.
Sorry, In this case, use explode() instead of split() ... Andras, $aRay = split('.', 'mypicture.jpg'); $aRay[0] will be the filename $aRay[1] will be the extension -Jason Garber www.deltacron.com At 03:14 PM 9/20/2001 -0700, Andras Kende wrote: >Hi, > >I trying to cut the last 4 char of a s

Re: [PHP] Assistance Please - Two-Dimension Arrays

2001-09-22 Thread Jason G.
Mark, PHP, at this point, does not support MultiDimension arrays. However, you can get around this by placing array's inside arrays. Thus: $myarray[0] = array("element00", "element01","element02"); $myarray[1] = array("element10", "element11","element12"); $myarray[2] = array("element20", "el

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