Re: [PHP] Sessions

2003-07-08 Thread Jason k Larson
SID. If you are posting form data, make sure there is an input for the session name with a value of the session id, etc. Hope that helps. -- Jason k Larson Dave Alger wrote: Hi All, I'm struggling with a session problem and I'm not sure where I should be looking for the answer. Most o

[PHP] stupidity check: (to disable transparent session id)

2003-07-02 Thread Jason k Larson
ferent servers, both PHP version 4.3.2. Any thoughts, comments, suggestions would be kindly appreciated. Regards, Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OCI8 Issues

2003-06-27 Thread Jason k Larson
mode. Unless you decide to do a ocicommit () afterwards, it's not being committed due to the OCI_DEFAULT mode. Or maybe you could try this: $execute = ociexecute($stmt, OCI_COMMIT_ON_SUCCESS); -- Jason k Larson Moore, Christie wrote: I don't receive any errors from this code but when I l

Re: [PHP] Setting focus on a textfield

2003-06-27 Thread Jason k Larson
This hardly belongs on the PHP list ... but try looking into JavaScript focus(). -- Jason k Larson Angelo Zanetti wrote: Hi guys how do I set the cursor to start in a particular textfield (password field) when my php page starts? TIA -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] solved Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Jason k Larson
*woot!* :) I love being right. ;) -- Jason k Larson Emma Jane Hogbin wrote: What ended up working was passing the session ID to the pop-up window "manually" by including it in the function (and thus the URL). emma -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] sessions, IE and pop-up windows

2003-06-09 Thread Jason k Larson
Try adding the SessionID to the URL. openEdit("add=event&cellid=10&"); or a little better: $thisSession = Session_Name().'='.Session_ID(); openEdit("add=event&cellid=10&"); Then of course the editsmall.php must still do a session_start somewhere. --

Re: [PHP] SESSION ISSUES

2003-06-08 Thread Jason k Larson
http://us2.php.net/manual/en/function.session-set-cookie-params.php set the domain strictly to "test.com" not "subdomain.test.com" etc etc -- Jason k Larson Dale wrote: HELP? I AM ABOUT TO PULL MY HAIR OUT? I have already spent time reading over the online php manual and

Re: [PHP] Capturing HTTP Response

2003-06-07 Thread Jason k Larson
This is all dependent on how you are performing the transaction. Are you using raw sockets to connect or perhaps cURL? The answer lies in that when whatever is making the connection and reading the data returned, the headers will be sent there. -- Jason k Larson Ralph wrote: Hi, I&#

Re: [PHP] Web Server Firewall Suggested

2003-06-07 Thread Jason k Larson
e excess that I use, or prerouting tables, for that matter. -- Jason k Larson Luis Lebron wrote: I know there is a lot of expertise on running web servers in this group. So, I'm going to ask a couple of questions. I am currently a public web server with an iptables firewall. A securit

Re: [PHP] Installation problem

2003-06-01 Thread Jason k Larson
Call it a hunch ... ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql=/usr/local/mysql -- Jason k Larson Ron Dyck wrote: I'm currently attempting to upgrade to the latest version of php. When I run: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-mysql

Re: [PHP] problem with pop3 check

2003-06-01 Thread Jason k Larson
("{mail.hot.ee:110/pop3/notls}INBOX", "pop3testing", "testing"); Hope that helps. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with pop3 check

2003-06-01 Thread Jason k Larson
Shouldn't the correct suntax for pop3 be: $mbox = imap_open ("{mail.hot.ee:110/pop3}", "pop3testing", "testing"); http://us2.php.net/imap_open -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] flawless script

2003-05-28 Thread Jason k Larson
est. Hope that helps. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] id & name when identifying html elements

2003-05-28 Thread Jason k Larson
an identical 'name' attribute could be used several times without conflict. For PHP use, you have to use the 'name' attribute, but you've already figured that out. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] About Guest Book\'s messages....

2003-05-28 Thread Jason k Larson
g. note that this is completely untested, I just wrote it here in email. Hope that helps. -- Jason k Larson fongming wrote: Hi, Sir: There

Re: [PHP] Wierd PHP Image

2003-04-01 Thread Jason k Larson
I hope you all can take a joke, cause this is just a result of April Fools day. Try looking at your phpinfo script again tomorrow. And ignore Don Read ... his suggestion is just plain evil. -- Jason k Larson Sebastian wrote: sorry what is Thies?, I have this too in my phpinfo... do i need it

Re: [PHP] whats this!!!!

2003-04-01 Thread Jason k Larson
It's an April Fools joke ... nicely done too. Chris Edwards wrote: read: http://php.weblogs.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jason k Larson
s my values prior were magically recreated after the object was instanciated. Rasmus, any ideas here? I'm thinking this is a bug. -- Jason k Larson Jens von Pilgrim wrote: Hello, Jason wrote: JL> Maybe I'm missing something here ... but what is the point of trying JL> to create

Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-28 Thread Jason k Larson
PHP3 it is in all versions of PHP4. If you can't use foreach, writing the while loop differently (not using each()) should work better. HTH, Jason k Larson Patrick Teague wrote: I'm currently having a problem with another array in a class & I can't figure it out - class myClas

Re: [PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jason k Larson
Maybe I'm missing something here ... but what is the point of trying to create a reference to a new object ... it hasn't been ceated prior to make reference to. Can't you simply create the new object and then make whatever (if needed) references? -- Jason k Larson Jens von Pi

Re: [PHP] last questions

2003-03-27 Thread Jason k Larson
Search the list archives, this question gets asked (and answered) a lot. http://marc.theaimsgroup.com/?l=php-general HTH, Jason k Larson Haseeb Iqbal wrote: thanx to all those who replied to my previous question. 1 more question.i need help with reqular expressions.i want to check valid (email

Re: [PHP] Banner ad solution?

2003-03-20 Thread Jason k Larson
I use phpAdsNew in a production environment and it has been rock solid stable. I am hugely impressed with phpAdsNew and would recommend it to anyone for a real banner ad solution. But then again, I'm only serving maybe 5 million views in a month with it. -- Jason k Larson Boaz Yahav

Re: [PHP] md5() number of aruments

2003-03-19 Thread Jason k Larson
mhash (PHP 3>= 3.0.9, PHP 4 ) mhash -- Compute hash Description: string mhash ( int hash, string data [, string key]) ^ salt/seed/key - whatever you want to call it -- Jason k Larson Dennis Gearon wrote: I don't see anywhere on that page

Re: [PHP] md5() number of aruments

2003-03-18 Thread Jason k Larson
First of all, the example you gave is only using one argument to the MD5 function. Secondly, if you *want* to seed/salt the MD5 with a key you can use: http://www.php.net/manual/en/ref.mhash.php -- Jason k Larson aka: der Ritter Dennis Gearon wrote: The usage of md5() in PHPLIB show TWO arguments

Re: [PHP] base64 to 8bit unsigned int

2003-03-18 Thread Jason k Larson
d base64 value that you then need manipluated into an array, maybe yes? -- Jason k Larson Hilmi Hilmiev wrote: Dear All, I have stream data encrypted BASE64. My problem is that I must decode this BASE64 to 8-bit unsigned array and I don't know how :( Have a native possibility in PHP fo

Re: [PHP] Ereg sass

2003-03-18 Thread Jason k Larson
It's seeing the - as a range identifier, escape it to get the literal hyphen. How about this: [a-zA-Z0-9_\-.]* In my tests, the period didn't need to be escaped with the \. HTH, Jason k Larson Liam Gibbs wrote: I'm not sure why, but I can't include a period in my eregi sta

Re: [PHP] If 1 IF fails, do the rest anyway...

2003-03-13 Thread Jason k Larson
That's exactly what logical operators are for. http://www.php.net/manual/en/language.operators.logical.php use || instead of && for allowing either to be true. if ((test1) || (test2) || (test3)) { \\ if any of these can return true, this will execute } HTH, Jason k Larson Liam G

Re: [PHP] need help with parsing form input ...

2003-03-11 Thread Jason k Larson
How about: preg_match_all ('/([a-zA-Z0-9]+)/', $subject, $matches); HTH, Jason k Larson Justin French wrote: Unfortunately, I'm no good with regexp's, so you'll have to hope someone who IS reads your post :) Justin French on 12/03/03 5:14 AM, Kenn Murrah ([EMAIL PROTE

Re: [PHP] Dollar signs in values

2003-03-06 Thread Jason k Larson
And what about: print htmlspecialchars('[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~December,2003~on~fjskl'); It seems to work for me. -- Jason k Larson Niklas Lampén wrote: print htmlspecialchars("[EMAIL PROTECTED]@#%:[EMAIL PROTECTED]@[EMAIL PROTECTED]|#:~De

Re: [PHP] define variables.

2003-03-05 Thread Jason k Larson
http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Vincent M. wrote: Hello, I do a lot of define like that: define ("_LANG1", "Server options"); define ("_LANG1", "Manage your system"); etc.

Re: [PHP] multiarray

2003-03-05 Thread Jason k Larson
ue; } else { foreach ($value as $subkey => $subvalue) { $destination_Array[] = $subvalue['code']; } } } -- Jason k Larson Konference wrote: Hi all, i have o question, is there some solution how

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread Jason k Larson
Include can handle URLs as the path if allow_url_fopen is set correctly in the php.ini. But it does have some limitations if being done on a Win32 platform instead of (*)nix. Try reading this, it might shed some needed light. http://www.php.net/manual/en/function.include.php HTH -- Jason k

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread Jason k Larson
not trim whitespace from begin/end of lines -v : show lines that do NOT match pattern -- Jason k Larson {R}ichard Ashton wrote: On Wed, 5 Mar 2003 10:21:30 -0500, 1LT John W. Holmes wrote: $ts = '/(' . $trigger_string .')/is'; echo "trigger_string is $ts "; $matche

Re: [PHP] http benchmark tools

2003-03-04 Thread Jason k Larson
How about Apache Bench? http://httpd.apache.org/docs/programs/ab.html -- Jason k Larson Tamas Arpad wrote: Hi, I'm searching for a good http benchmark tool. Of course I found some, but don't know them and don't know which one to choose. I found JMeter slow, in other aspects it w

Re: [PHP] Restate: using php to rotate ad banners

2003-02-27 Thread Jason k Larson
mance even better. It's always nice to write your own stuff to learn, but seriously, if you are planning to do anything that other people need to rely on for a banner management system and server, use phpAdsNew. You can find it on SourceForge. Regards, Jason k Larson Joseph Bannon wrote: An

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
trouble. I'd like to see that. That is, unless it's not a PHP behavior problem, but a scripting or logic issue due to poor development. -- Jason k Larson Leif K-Brooks wrote: I think you mean worse. Short tags cause nothing but trouble. Jason k Larson wrote: or even better: -- P

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
e complex ways too and, of course, the use of ()s ... but I think I've made my point. HTH, Jason k Larson M.A.Bond wrote: With the output you are getting you will not see the output from the .' '. As it inserts a space into the ouputted text. There is an error after the $_SERVER[

Re: [PHP] When is garbage collection initiated?

2003-02-27 Thread Jason k Larson
My understanding is: - each time a request causes a *session file to be created or accessed*. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
. is a string concatenation operator. ' or " are strings. Read http://www.php.net/manual/en/language.operators.string.php By the way, __LINE__ is available in addition to __FILE__. Hope that helps, Jason k Larson Stephen Ford wrote: Partial success. The code and output are shown be

Re: [PHP] How do I display the script file name?

2003-02-27 Thread Jason k Larson
The 'magic constant' __FILE__ is one way. or even better: HTH, Jason k Larson Stephen Ford wrote: How can I display the script file name? Presumably something like-: While I'm learning php and developing various Web page versions, I want to be sure the that the disp

Re: [PHP] Mail (), BBC: recipients not receiving my Newsletter

2003-02-26 Thread Jason k Larson
What about using a ';' semicolon seperated list. Ricardo Fitzgerald wrote: Hi to all, I wrote a small form which dumps data to a php script that uses mail () to send an html newsletter, so far is working except that it's not sending to BCC: headers, in my form I have a field to enter a comma deli

Re: [PHP] Re: MIME help needed please...

2003-02-25 Thread Jason k Larson
e to wonder if you are asking the list stupid questions. -- Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Auto Incrementing a Variable name?

2003-02-25 Thread Jason k Larson
$name1 = 'Hello, World!'; $i = 1; $var = 'name'.$i; print ${$var}; HTH, Jason k Larson Jeff Pauls wrote: Hi, I've been playing with this for a while now. Say I had the following variables: $name1 = "joe"; $name2 = "janis"; $name3 = "joanne"; I

Re: [PHP] Keep cariage returns

2003-02-24 Thread Jason k Larson
carriage returns in a text field (textarea) are different than how HTML formats data to be displayed. Look into the nl2br() function. http://www.php.net/manual/en/function.nl2br.php HTH, Jason k Larson Daniel Guerrier wrote: Is it possible to maintain the carriage returns in a database insert

Re: [PHP] upgrade to 4.3.0 nearly doubled execution time

2003-02-22 Thread Jason k Larson
I've read up on and hasn't addressed any of these issues). Regards, Jason k Larson Rhett Livingston wrote: I upgraded my development system from PHP 4.1.2 to PHP 4.3.0 last week and the performance of my scripts took a dive. Specifically, the average time to parse my scripts (time from

Re: [PHP] session emergency

2003-02-21 Thread Jason k Larson
Sessions have a list of options that can be set, but I don't see anything remotely similar to a 'data size'. What error are you getting, or please explain further in more detail. Regards, Jason k Larson Joseph Bannon wrote: Where can I set the session

Re: [PHP] Re: Mysql DB connect failure

2003-02-21 Thread Jason k Larson
hp If the track_errors feature is enabled, any error message generated by the expression will be saved in the global variable $php_errormsg. This variable will be overwritten on each error, so check early if you want to use it. Hope that clears things up a bit. Regards, Jason k Larson Hans Prins

Re: [PHP] syntax question

2003-02-19 Thread Jason k Larson
as you shown. Hope that helps ... Jason k Larson Anthony Ritter wrote: This is what I was getting at. The following is correct mysql syntax in which a comma must be added after each field - except for the last field - in this case price: i.e., . CREATE TABLE chairs( id int(5

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Jason k Larson
use: --with-mysql=/usr/lib/mysql HTH, Jason k Larson PathFinder Software wrote: Hi, During the configure I get this error message. configure: error: Cannot find header files under /var/lib/mysql a whereis mysql produce the following output: mysql: /usr/bin/mysql /usr/lib/mysql /usr/include

Re: [PHP] Wrong version displayed after upgrading to php-4.2.3

2003-02-18 Thread Jason k Larson
file to determine if the PHPv4.2.3 install overwrote the older one successfully or not. If you still have problems, then you might need to check the path you are giving to the --with-apxs for compiling PHP. HTH, Jason k Larson PathFinder Software wrote: Hi, I upgraded PHP from 4.0.3pl1 to ph

[PHP] sockets: resource(20) of type (Unknown)

2003-02-10 Thread Jason k Larson
ave made recent upgrades and changed environments. However the code consistently dies in the exact place, a place where other fsocket reads and writes are successfully been made. Any suggestions would be appreciated. Regards, Jason k Larson -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] Why does this happen?

2003-02-08 Thread Jason k Larson
Because all of your field names are overwriting each other until the last one wins. name="date" This needs to be different for each field so PHP can assign that name as the variable. HTH, Jason k Larson CF High wrote: Hey all. Got a problem with I'm sure a simple solution:

Re: [PHP] stripping %20 and other characters from query string

2003-02-06 Thread Jason k Larson
Try these: http://www.php.net/manual/en/function.urldecode.php http://www.php.net/manual/en/function.rawurldecode.php HTH, Jason k Larson Sarah Gray wrote: Hello, Forgive me if this is an obvious question, but I am passing a value (a string with spaces and quotations) back in a query string

Re: [PHP] php problem

2003-02-04 Thread Jason k Larson
#x27;surname']; $email=$row['email']; $comments=$row['comments']; HTH, Jason k Larson Aaron Downes wrote: Dear Sir/Madam, trying to displaying records by php get error : Parse error: parse error in /hsphere/local/home/ozhomene/ardownes.com/ViewConta

Re: [PHP] __LINE__,__FILE__ + custom error handlers

2003-01-26 Thread Jason k Larson
, Jason k Larson electroteque wrote: hi guys i am trying to create callback error functions handlers , i was wondering if there was a way to get the file and line caught in a error function say with a database abstraction query without having to explicitly put the line and number in the query function

Re: [PHP] changing a key in an array

2003-01-23 Thread Jason k Larson
reference to the array. The second line removes the first reference without removing the second. See this for more info: http://www.php.net/manual/en/language.references.unset.php Regards, Jason k Larson David T-G wrote: Brent, et al -- ...and then Brent Baisley said... % % I had to do s

Re: [PHP] Is this just not possible?? ..create new odbc connection..pleasehelp

2003-01-22 Thread Jason k Larson
Are you wanting to have PHP dynamically create ODBC datasources instead of creating them via the typical Control Panel method? If so, and if possible, would be tricky, but I'll bet it can be done. Regards, Jason k Larson Edward Peloke wrote: Thanks Jason, I know how to connect to an

Re: [PHP] Is this just not possible?? ..create new odbc connection..pleasehelp

2003-01-22 Thread Jason k Larson
http://www.php.net/manual/en/function.odbc-connect.php Edward Peloke wrote: Haven't had a single response so I am not sure if this isn't possible or just really easy and something I should already know. Thanks, Eddie -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] which is better? PHP's Session handler or Mohawk's Sessionhandler

2003-01-22 Thread Jason k Larson
high availability point of view). HTH, Jason k Larson Heo, Jungsu wrote: (Sorry for disturb you if this kind of message posted earlier. but I can't find answers on mailint list archive) Hello, there! I'm developing web service. There are several web servers for one Service. (Linux virtual

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Follow the ISAPI module install instructions. http://www.php.net/manual/en/install.iis.php Regards, Jason k Larson Mike Potter wrote: Do you know how do do this? Thanks, Mike "Jason K Larson" wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >Discus

Re: [PHP] setcooke(...) before header("Location: XYZ") - Cookie doesn'tset!

2003-01-21 Thread Jason k Larson
Discussion on this list has suggested that it can work if PHP is set to run as ISAPI, not CGI. HTH, Jason k Larson Mike Potter wrote: HELP! I know I'm new at this so please don't laugh. But I can't get this to work! I am using Microsoft IIS with the latest PHP installed.

Re: [PHP] Re: fscanf

2003-01-21 Thread Jason k Larson
t/manual/en/function.preg-split.php HTH, Jason k Larson Philip Hallstrom wrote: Why not: $array = split("[ ,]", $line); ? On Wed, 22 Jan 2003, Kris wrote: Hi I'm having dramers with fscanf I have a line: text, text, text I can't work out how to scan removing the comma

Re: [PHP] changing a key in an array

2003-01-21 Thread Jason k Larson
he moment is to create a copy and unset the original as you described as brute force. HTH, Jason k Larson David T-G wrote: Hi, all -- If I have an associative array Array ( [t] => Array ( [t1] => temp1 [t2] => temp2

Re: [PHP] re-ordering keys in an array

2003-01-21 Thread Jason k Larson
ksort.php HTH, Jason k Larson David T-G wrote: Hi, all -- If I have an associative array $a like Array ( [t] => temp1 [u] => ugh [m] => moo ) is there any way to re-order the keys so that foreach (array_keys($a) as $k) { print "$k\n" ; } will p

Re: [PHP] Can php works as a scheduler?

2003-01-20 Thread Jason k Larson
Unix/Linux use: cron (crontab) Windows use: at HTH, Jason k Larson Jack wrote: Dear all I built a page which will import data from csv files to database, i want this task to be done automatically at the midnight of each date. so does anyone know if there is any function work as similar as

Re: [PHP] whois script or class

2003-01-18 Thread Jason k Larson
http://phpwhois.org/ Ashley M. Kirchner wrote: I'm looking for a script, or class, that I can feed a domain name to and get back whois information, preferably already parsed into things like, the registrar, the registrant, ns servers, created/expire dates... Regardless of who the registrar

Re: [PHP] global variables

2003-01-17 Thread Jason k Larson
_4_1_0.php Regards, Jason k Larson Dara Dowd wrote: Is it "better" to pass variables through functions or to simply declare them as global within the function's scope? The variables in this particular case are things like MySQL database connections and tablenames. Thanks,Dara

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
Forms have two distinct methods. GET and POST. if the form has a method of POST vars are stored in $_POST, ditto for GET. Use $_POST['id'] not $_GET['id'] if your form uses the POST method. HTH, Jason k Larson Jason k Larson wrote: $query = "SELECT Newsheadline

Re: [PHP] Question about $_GET

2003-01-15 Thread Jason k Larson
$query = "SELECT Newsheadline, News, Contact FROM news WHERE Newsid = '$_GET['id']'"; It looks like here that again $_GET['id'] has an empty value; Jason k Larson Frank Keessen wrote: Thanks, but not working: The error message: Error in query: SELE

Re: [PHP] Setcookie() and header()

2003-01-14 Thread Jason k Larson
could alternatively use a meta-refresh for the redirect. This would give you the chance for the headers to be read and the cookie created. Hope that helps, Jason k Larson J. Alden Gillespy wrote: After I set a cookie and then send a redirect header, the cookie doesn't show up, bu

Re: [PHP] Gotchas with Php and Postgresql?

2003-01-14 Thread Jason k Larson
ostgres offer. PHP uses Postgres' pglib for it's interface which puts the stability and compatability in Postgres' hands, which of course is the best possible thing to do. So you can rest assured that PHP knows how to talk to Postgres. HTH, Jason k Larson John Wells wrote: I

Re: [PHP] emptying hte array??

2003-01-14 Thread Jason k Larson
That's not going to 'empty' the array it's going to undefine it. Just overwrite the array with a new empty array like: $a = array(); That keeps the variable an array variable type and is of course empty. HTH, Jason k Larson Justin French wrote: on 15/01/03 7:52 AM, Sc

Re: [PHP] pls help with session

2003-01-13 Thread Jason k Larson
print the before and after session ids, if they change, you are just creating new empty sessions, which should explain the lacking session variables. HTH, Jason k Larson James Tan wrote: Dear Sir/Madam, I've been coding session for quite sometime, but this is the first time i encount

Re: [PHP] Png Could not find/open font

2003-01-12 Thread Jason k Larson
s font files if you want. So just copy, for instance, arial.ttf where you need it. HTH, Jason k Larson Breno Cardoso Perucchi wrote: How I can resolve this ? This is my configuration of php (phpinfo) Somebody can help me ? This is very important GD GD Support enab

Re: [PHP] Session vars vs. POST/GET vars?

2003-01-11 Thread Jason k Larson
FYI: Don't like auto register globals ... try the following at the beginning of your script. ini_set ('register_globals','Off'); Works for me places I'm hosted at. HTH, Jason k Larson Noel Wade wrote: Hi all, So I have a session variable; but with register_gl

Re: [PHP] ftp and www

2003-01-06 Thread Jason k Larson
Sounds vague. Here's the reference page for starters. http://www.php.net/manual/en/ref.ftp.php HTH, Jason k Larson Mukta Telang wrote: Hi, I am told to " merge ftp and www " ! I cant understand what it means.. May be it means that it should be possible to browse ftp directory

Re: [PHP] mmmmm SELECT

2003-01-06 Thread Jason k Larson
Your SQL statement is selecting from two tables, it doesn't know which table the 'active' column belongs to. Try one of the following as appropriate to your schema: tasks.active="yes" or users.active="yes" HTH, Jason k Larson Bruce Levick wrote: I h

Re: [PHP] undefined constant?

2003-01-06 Thread Jason k Larson
How about if you quote index/key names in arrays like: if($_GET['test'] == "test") { echo "A"; } HTH, Jason k Larson Markus Jäntti wrote: If have this piece of code (test.php): if($_GET[test] == "test") { echo "A"; } else { echo "B&quo

Re: [PHP] DUMB QUESTION I'M SURE

2003-01-02 Thread Jason k Larson
ps.name FROM shops WHERE name = '".$name."'"; $result = mysql_query($query); while ($record = mysql_fetch_assoc($result)) { while (list($feildname, $feildvalue) = each ($record)) { echo $feildname. ": " .$feildvalue. ""; } echo""; } ?> HT

Re: [PHP] multiple select problem

2003-01-01 Thread Jason k Larson
What about if you use this instead: HTH, Jason k Larson Elaine Kwek wrote: i am now facing a problem in multiple select. This is my example code in html. 123 234 345 i select all the value and pass to php...it should be a array. but when i display the destList value, it just

Re: [PHP] Zerofill

2002-12-30 Thread Jason k Larson
How about: http://www.php.net/manual/en/function.str-pad.php HTH, Jason k Larson Cesar Aracena wrote: Hi all, Sorry to bother you all, but I need something I haven't used in quite a long time. Dows anyone remembers the PHP function to fill a number with zeros until it reaches a de

Re: [PHP] Auto_incerement value

2002-12-30 Thread Jason k Larson
http://www.php.net/manual/en/function.mysql-insert-id.php Cesar Aracena wrote: Hi all, This is a fast question. Does anyone remembers how to obtain the ID auto assigned after an INSERT statement under MySQL? Thanks in advanced, Cesar L. Aracena [EMAIL PROTECTED] [EMAIL PROTECTED] (0299) 156-3

Re: [PHP] HTML module problem under Linux/APache2.0

2002-12-30 Thread Jason k Larson
do the following (in your welcome.php file). $user = $_GET['user']; HTH, Jason k Larson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 4.2.3 and XML...

2002-12-28 Thread Jason k Larson
What version of PHP were you using prior to 4.2.3? I'm using DOMXML support extensively (pun?) in my build of 4.2.3. So, what errors are you getting or what makes you think its shot? Jason k Larson At 01:47 PM 12/28/2002 -0500, Russell P Jones wrote: My sysadmin just complied 4.2.3

Re: [PHP] How To Use The next() and prev() functions on multi-dimensionalarrays

2002-12-26 Thread Jason k Larson
ll, have fun ... Jason k Larson @ Nilaab wrote: Hello Everyone, I have a multi-dimensional array called $cat_data, and I need to access certain elements in the array using the next() and prev() functions. I did consider using loops like for, foreach, and while...but for this particular applic

Re: [PHP] Cheap Hosting

2002-12-26 Thread Jason k Larson
I can personally recommend www.icdsoft.com as they are CHEAP! But offer everything you could hope for. Support has been awesome and service has been very reliable. Jason k Larson Stephen wrote: Hello, I need a nice, reliable host for my new website. It needs to be fast, reliable, needs a

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Jason k Larson
I created a static link from my dev site to your referer2.php script, and your phpinfo listed a HTTP_REFERER as expected. Jason k Larson John Nichel wrote: Is this something that can be turned on/off in the .ini file or via the webserver itself? Neither my test servers, nor the ISP which

Re: [PHP] Re: REMOTE_HOST

2002-12-23 Thread Jason k Larson
You can't use REMOTE_PORT reliably for this purpose, it will always be different, until they get recycled by the server. How are you performing the redirect? via PHP, or maybe with Apache and a Rewrite rule or something? Jason k Larson John Taylor-Johnston wrote: >[SERVER_POR