[PHP] Apache Directives for php as module

2002-06-26 Thread Jason G Trusty
Hello, I read the support pages at php.net regarding php.ini. Am I correct in the assumption that so long as you have php compiled as a module for apache that you can than use apache style directives to override the default php.ini? Furthmore, are these override directives allowed in a vhost con

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

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.

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

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

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

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

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

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

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] [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] 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] 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] 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] 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] 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] 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] How to create and run background process at Win2K

2001-11-19 Thread Jason G.
I believe that there is something like crontab for windows... If not, then you could write one in C or C++ or VB etc... From apache/mod_php, set a marker in a file, or in a db. Every minute, or 5 minutes, or 15 minutes (you decide), your crontab equivalent will call a cgi/php script that che

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

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

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

2001-10-02 Thread Jason G.
Take a look at the exec() and system() functions. -Jason Garber www.ionzoft.com At 08:55 PM 10/2/2001 +0200, Bjornie wrote: >Hi everybody! > >I have a problem :/ >I just said yes to a project, which includes webmail. I know how to send >mail and how to receive mail with imap, but can I in any w

Re: [PHP] formular multiple select trouble

2001-10-02 Thread Jason G.
Give the select tag an ID. You can then reference the element by its ID. alert(aname.value); -Jason Garber IonZoft.com At 01:25 PM 10/2/2001 +0200, Sebastian wrote: >Hi all > >If i use multiple select fields in a from >i use name[] to access it in php afterwards > >test1 >test2 > > >

Re: [PHP] Re: Making variable global / accessing variable

2001-10-01 Thread Jason G.
t wrote: >But how would you use this to create new global variables with $td as the >prefix? > >$td = "foo"; > >then we want new global variables > >$foo_error and $foo_ok created. > >-- >Justin Garrett > >"Jason G." <[EMAIL PROTEC

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
want to access $sHello_error and >> > $sHello_ok in this function. >> > >> > Any idea how I can make this variable gloabl and whats the easyst way to >> > access this var then? >> > >> > Martin >> > >> > >> >> >> >

Re: [PHP] Re: Making variable global / accessing variable

2001-09-30 Thread Jason G.
I have used: global $$td; in the past with success... -Jason Garber IonZoft.com At 07:38 PM 9/30/2001 -0700, Justin Garrett wrote: >Maybe something similar to this? > >function test($td){ > > $global = "global \$$td"."_error, \$$td"."_ok;"; > eval($global); > > $set = "\$$td"."_e

Re: [PHP] handling errors

2001-09-27 Thread Jason G.
&zE: wrote: > >From: Jason G. <[EMAIL PROTECTED]> >Date: Thu, Sep 27, 2001 at 03:25:16AM -0400 >Message-ID: <[EMAIL PROTECTED]> >Subject: Re: [PHP] handling errors > > > Placing an @ symbol before the function name will suppress any errors. > > @GetI

Re: [PHP] array

2001-09-27 Thread Jason G.
check out the serialize() and unserialize() functions in the manual. replace this: print(" sort "); with this sort Excerpt from the manual: http://www.php.net/manual/en/function.serialize.php If you are passing serialized data between pages in hidden form fields (or in a query string), you n

Re: [PHP] handling errors

2001-09-26 Thread Jason G.
Placing an @ symbol before the function name will suppress any errors. @GetImageSize() At 09:09 AM 9/27/2001 +0200, * R&zE: wrote: > >From: Joseph Bannon <[EMAIL PROTECTED]> >Date: Wed, Sep 26, 2001 at 11:09:39AM -0500 >Message-ID: ><[EMAIL PROTECTED]> >Subject: [PHP] handling errors > > > How d

Re: [PHP] Does PHP + PHP CACHE can vs JSP ?

2001-09-26 Thread Jason G.
A good question is: Do you REALLY need the speed difference, or should you be asking which is the best language to do Dynamic Web Development in??? Which is better supported, which is most cost effective, which is Open Source, which is Better... -Jason Garber deltacron.com At 02:48 PM 9/27/

Re: [PHP] mysql_fetch_array() doesn't work

2001-09-26 Thread Jason G.
echo " Missing end quote and semicolon on this line may be the reason... Try properly indenting and formatting your code. Also take advantage of going in and out of php mode to seperate your code from your display of content... Ex: instead of this: $sContent"); ?> Try this: Or even this:

Re: [PHP] Accessing lots of variables

2001-09-25 Thread Jason G.
Try This... for($i=1; $i<=35; $i++) { $sVarName = "link$i"; if(empty($$sVarName)) { //Do Something } else { //Do Something Else using $$sVarName... } } -Jason Garber deltacron.com At 01:42 PM 9/25/2001 -0400, Jordan Elver wrote: >Hi, >I'm feeling a

Re: [PHP] A simple PHP form not working

2001-09-24 Thread Jason G.
First of all, you need to type header("Location: thankyou.html"); exit; Try that... -Jason Garber deltacron.com At 09:26 AM 9/25/2001 +0600, Tshering Norbu wrote: >Hi list, >I can not get the form (from thesitewizard) working. When I submit the form, >I get this error: "Warning: Failed to Con

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

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

[PHP] Using Ingres II Functions

2001-08-28 Thread Jason G Ngo
The php manual mentions about compiling php with Open API headers for Ingres. We are using the commercial version of Ingres II for NT. Is this a different animal from Ingres for Linux or should I contact Computer Associates to get those headers? How do I get php to access directly to Ingres II