[PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
h. Ok. Can somebody explain this one? Why won't it work correctly? for($m=1;$m=5;$m++){ $div_idd[$m]=${'row-sub' . $m . 'd'}; } Can it not be done with a 3 parter? The columns in the table that $row gets, are sub1d, sub2d, sub3d, sub4d and sub5d. Or is it the - that is

Re: [PHP] still on sessions

2002-07-26 Thread Tyler Durdin
Alright this is my last question. I have closed the session, but can i make sure it is closed? i want to use something like if the session is closed then print a message session closed. _ Send and receive Hotmail on your mobile

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
If you have session cookies disabled in your browser then you have to add the session ID to the redirect. If you have your cookies enabled and you are still losing the session then there must be some other problem. no cookie compatible: header(Location:

[PHP] including just created file

2002-07-26 Thread Marek Kilimajer
Hi all, I just coded a cache mechanism for some slow code that looks like this: $cache_file_name = cache/$id/$tid. ($showall ? '_all.php' : '.php'); $cache_dir_name= cache/$id; if(!file_exists($cache_file_name) || filectime($cache_file_name) + 30 time() ) {

Re: [PHP] pg_pconnect() question

2002-07-26 Thread Varsha Agarwal
I changed the user name in pg_pconnect(), also i checked the pg_hba.conf for authentication. The authentication type is trust. But still I am getting the same warning while connecting to the database. Can anyone figure what might be the problem? --- Lejanson C. Go [EMAIL PROTECTED] wrote:

RE: [PHP] Netscape 4.7 with php gd, very slow

2002-07-26 Thread Harry Yu
I have no problem with Netscape 4.7 when connecting to Windows 2000 running the same script. Also, I don't have any nested tables in the html. Any other ideas? Thanks, Harry --- Bob Lockie [EMAIL PROTECTED] wrote: [snip] I'm trying to generate dynamic buttons with text from mysql

[PHP] Re: Spambot Defense Code

2002-07-26 Thread Richard Lynch
Worked on this a bit tonight, thought it might help someone out there! I looked at the bottomw of phpclasses.org at what they'd done to obfuscate their e-mail address using JavaScript. While theirs is much more complex, I couldn't figure a way to do it their way when you don't know the exact

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
So doing it the new way ($_SESSION['variable']) how do you close or unregister a session? _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
Still the same message. It has been actually logging me out all along, but it will not run through that if statement. Could you trye if (!empty($HTTP_SESSION_VARS['valid_user']) use $HTTP_SESSION_VARS _ Chat with friends

[PHP] How to UPDATE two MySQL Tables

2002-07-26 Thread Monty
I have two tables: member_basic and member_detail. When a member edits their record, they can edit or add data for either table, but, the data stored in member_detail isn't required, so, they can possibly leave these fields blank. By the way, both tables would be linked by a member id. Here's my

RE: [PHP] Close A Databse Connection

2002-07-26 Thread Peter J. Schoenster
Hi, The question was about the use of mysql_close. Use it or not (not when to use it or when not to). So far: Agreed... you should always clean up after yourself. PHP will close the connection automatically will be closed and all information cleared. I advised a newbie to always use

[PHP] filling an array

2002-07-26 Thread Steve Buehler
Thank You Andrey, Matt and Martin for your answers. To summarize for everyone, here are the answers: From Andrey (tested, works): for($m=1;$m=5;$m++){ $div_id[$m]=${'divid'.$m}; } From Matt: for($m=1;$m=5;$m++){ $varName = 'divId' . $m; $div_id[$m]=${$varName} } From Martin: for($i =0; $i

[PHP] Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread Marcus Unlimited
Hello, I just installed the nice and easy one click PHP install to my Windows 98se machine. I just want to be able to test and practice My basic PHP /MySQL stuff without up loading. So now what do I do. I ran the php info scripts and got bunch of weird messages. How do I get the PHP to work

[PHP] Re: File upload memory usage.

2002-07-26 Thread Richard Lynch
I'm currently locked in a battle with PHP and file uploads. I've searched the list to no avail. I actually found a guy with the same problem who ended up using perl to make this work. I'm trying to avoid that. The problem is, I'm dealing with huge POST uploads (100+ mb). And Ye Gods! I

[PHP] POSTing Form Vars as Array ??

2002-07-26 Thread Monty
Is it possible to pass variables from a form as an array to another PHP file? For example, I have this: input type=text name=db['email'] value=? echo $db['email']; ? When the form re-loads after being submitted (it calls itself when SUBMIT is pressed), the var $db['email'] doesn't exist

Re: [PHP] filling an array

2002-07-26 Thread Andrey Hristov
for($m=1;$m=5;$m++){ $div_id[$m]=${'divid'.$m}; } Regards, Andrey - Original Message - From: Steve Buehler [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Friday, July 26, 2002 10:48 PM Subject: [PHP] filling an array Can anyone tell me what I am doing wrong? I am essentially

[PHP] Close A Databse Connection

2002-07-26 Thread Jay Blanchard
Well, it's Friday afternoon and the pre-pub run debates have started :^] The choice of arguement today is born of the fact that I advised a newbie to always use mysql_close() to close the connection to the database. It's good form and will cover any ills where the database connection fails to

[PHP] phpMyAdmin and apqache 2.0.39 cache problems

2002-07-26 Thread electroteque
hi guys i am having major caching issues in phpMyAdmin when i moved to apache 2.0.39 has anyone else expeirence this ? its sending me round the bend , i cant view my mysql tables when i create them , i have to removed temp internet files and hit refresh to get them to view -- PHP General

RE: [PHP] Changing a variable's value when a link is clicked

2002-07-26 Thread Jay Blanchard
[snip] Is there a way to change the value of a global variable when someon clicks a a href URL link on a web page? [/snip] If the variable is sent via GET i.e.; http://something.com/foo.php?bar=stuff then you could; $bar = $_GET['bar']; //where $bar is the global to be changed, $bar would now

RE: [PHP] selcet statement question

2002-07-26 Thread Jay Blanchard
[snip] I know that i can retrieve records 1-24 in my db with a select statement like SELECT whatever FROM tablename ORDER BY id ASC LIMIT 23, but how can I get records 25 to 50 if I have 100 records in my DB? [/snip] Different DB's have differing ways of doing this, like MySQL; SELECT * FROM

[PHP] High Resolution Images

2002-07-26 Thread [EMAIL PROTECTED]
Hello, I am creating a script that takes an uploaded image, creates a thumbnail from it, and saves both files. The script works great, but the problem is, the files It will have to handle, are high-resolution files (300dpi, 24 bit-depth).. it works fine on regular files (72 dpi), but when I

[PHP] Table formatting

2002-07-26 Thread César Aracena
Hi all. Last nite I’ve came across a problem I wasn’t able to figure out by my self. It’s not difficult to make a loop that will make new *TABLE ROWS* (tr) to show several DB objects in a nice way… what I need to do, is to display 2 or maybe even 3 of this objects stored in a DB per table row,

Re: [PHP] Re: sessions

2002-07-26 Thread Tyler Durdin
Still getting the same message. This script used to work perfectly in an older version of php. Could it be a problem with how I am setting the sessions. Has anything changed with how we code sessions? It's because you are unregistering the valid_user variable, but, the old_user var you

[PHP] RE: Paying Job...

2002-07-26 Thread Jason
I just thought I would share a personal experience that I am currently going through that relates to this. I was approached by a client to develop a full e-commerce solution for his company. I am only one guy, and I had never done any PHP code on this scale before. I knew this, but I wanted to

RE: [PHP] Netscape 4.7 with php gd, very slow

2002-07-26 Thread Bob Lockie
I have no problem with Netscape 4.7 when connecting to Windows 2000 running the same script. Also, I don't have any nested tables in the html. Any other ideas? Thanks, Harry --- Bob Lockie [EMAIL PROTECTED] wrote: [snip] I'm trying to generate dynamic buttons with text from mysql

RE: [PHP] still on sessions

2002-07-26 Thread John Holmes
Alright this is my last question. I have closed the session, but can i make sure it is closed? i want to use something like if the session is closed then print a message session closed. You don't have to close it; it's automatic. Just treat $_SESSION like the regular variable it is. Anything

[PHP] Red Hat 7.2 enabling MySQL on preinstalled PHP

2002-07-26 Thread Joel Lopez
I installed PHP when I installed Red Hat 7.2 without MySQL. I have now added MySQL but I can't figure out how to enable it in PHP. Can anyone help? thanks, Joel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread Tech Support
You need a web server like M$ IIS or Apache. I would rather chew tin foil than run an IIS server even if it was on a win machine. You can install the win version of the Apache web server and then just browse to http://localhost/ to view your work. Jim Grill Support Web-1 Hosting

[PHP] Re: File upload memory usage.

2002-07-26 Thread Reid Sutherland
I don't think HTTP POST upload is going to be reliable for *that* size files, no matter *what* you do... Well from the tests I have done it has worked fine. There is no reason why it shouldn't either. Give them an FTP account or something. No an option for hundreds of people with

Re: [PHP] mysql question

2002-07-26 Thread Lowell Allen
From: Christian Calloway [EMAIL PROTECTED] Sorry this may be a little offtopic, but I am currently moving a site I was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading somewhere that there is a utility that will convert/transfer (data and structure) a MSAcess database

Re: [PHP] High Resolution Images

2002-07-26 Thread Tech Support
This may sound silly, but you are uploading in binary mode right? Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 5:24 PM Subject: [PHP] High Resolution Images Hello, I am

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] I have a redirect i would like to do using php. It will go something like this if (mysql_db_query ($dbname, $query, $link)) { {redirect would go here} } else { {a different location on this redirect here} How can i accomplish this? i just do not know php well enough to code

Re: [PHP] Help: header function

2002-07-26 Thread Bob Lockie
From: Tech Support [EMAIL PROTECTED] To: k a m e s h [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, July 26, 2002 11:20 AM Subject: Re: [PHP] Help: header function Try just header(Location: $PHP_SELF); or header(Location: $SCRIPT_NAME) ...leave out http:// ...and your quotes are in the

Re: [PHP] php redirect

2002-07-26 Thread Tech Support
I know what you mean about everything being M$. I'm a die hard GNU fan and therefore hate everything M$, but I can think of more than one occasion where that attitude cost me some money. I somehow still believe that if I stick to my beliefs and maybe try to convert some M$ people to host their

Re: [PHP] time question.

2002-07-26 Thread 1LT John W. Holmes
How do I compare time in php? Eg. If I have a mysql time field I retrieve stored in $result[0][0] how do I say : if (($result[0][0] $result[0][0] plus ten minutes) ($result[0][0] '00:00:00')){ MySQL and PHP timestamps are in different formats. MySQL uses MMDDHHMMSS and PHP uses a

[PHP] Re: Windows installation help.

2002-07-26 Thread Richard Lynch
(This was from an email sent to Gabor, and the site said this address was for help) This is not a definition of the $blah variable. $blah = 1; would be a definition. I've never had any problems using just $blah; before, it never errored on me once, is there any reason it does this? (by the

Re: [PHP] Re: New way to make select boxes auto select

2002-07-26 Thread Nathan Cook
From: lallous [EMAIL PROTECTED] I use javascript for that! :) I try to steer away from javascript as much as possible (and anything else client-side), unless I know my audience extremely well and they are locked into a certain browser and version, i.e. internal applications. But I like that

[PHP] Re: php redirect

2002-07-26 Thread Brian McGarvie
if( ___ ) { header(Location: http://www.domain.com/itworked.php;); } else { header(Location: http://www.domain.com/error.php;); } Tyler Durdin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... I have a redirect i would like to do using php. It will go something like this if

Re: [PHP] filling an array(2)

2002-07-26 Thread Steve Buehler
Ok. That makes since. Thanks Steve At 04:20 PM 7/26/2002 -0500, you wrote: var names can only be letters, numbers, and underscores. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Steve Buehler [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent:

Re: [PHP] PHP UPGRADE on LINUX

2002-07-26 Thread Tech Support
It really depends on what version you have now. I'd say the biggest thing to look out for is the register_globals, which is now defaulted to Off. This will break lots of sites!!! Turn it on unless you want your phone to ring for days. Users should, however, be urged to get used to coding with it

Re: [PHP] How can I get my session variable to pass to anotherpage?

2002-07-26 Thread Martin Clifford
You have to have session_start() in each page in order to carry over session variables. :o) Martin Clifford Homepage: http://www.completesource.net Developer's Forums: http://www.completesource.net/forums/ DonPro [EMAIL PROTECTED] 07/26/02 04:06PM Hi, I have a form that calls a PHP script

Re: [PHP] Help invoking a regexp

2002-07-26 Thread Analysis Solutions
Hi Niklas: On Fri, Jul 26, 2002 at 01:54:25AM +0200, Nicklas af Ekenstam wrote: Hi I have this regular expression: (((http|https|ftp|gopher)|mailto):(//)?[^ \t]*|www\.[-a-z0-9.]+)[^ .,;\t\):] Which is supposed to match hyperlinks. I would like to use this from php to grab all

RE: [PHP] php redirect

2002-07-26 Thread Martin Clifford
Learning about HTTP protocol helps a LOT with understanding headers. Basically, the headers are generated by the server to tell the client (browser) what to do. If you send ANYTHING (even a hard return) before the header function is invoked then you will get this error. In essence, if you

[PHP] adding Databases

2002-07-26 Thread Joel Lopez
Hi, Right now my PHP is set up to use Postgresql. I want to use MySQL now. How do I let PHP know that MySQL is now installed? thanks, Joel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
Kamesh's trouble was he was refering to something like http://mypage.php . I figured it would save time to just get rid of the protocol and go relative. I'm aware of the spec for header, but I have always used a relative URI and just about all the code I've seen uses relative also. I would be

[PHP] Re: How to check if a field is auto increment

2002-07-26 Thread Mathieu Dumoulin
Oh, and also, i need to know how to get the default value... Btw, i CAN be done, or else, how does phpMyAdmin does it =P InsaneCoder How can i check if a field has auto-increment extra activated on it? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP Meetup, how many of you have signed up?

2002-07-26 Thread Monty
so with Guinness and bread, who needs to buy a meal? :-) Ooof. I feel bloated just reading that. :) Monty -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sessions

2002-07-26 Thread Matthew K. Gold
re php info: put this into a file, put it on your server, and call up the page in a browser: ?php phpinfo(); ? it will show the settings for php on your server. As Jim suggested below, you should check the register_globals setting. If register_globals is on, you'll need to use the _Get

[PHP] Re: Authentication session problem (php/server implementation?)

2002-07-26 Thread Richard Lynch
I have a user authentication system using sessions it checks username and password against a database. if correct it sets a variable in the session cookie (via $_SESSION) and redirects to the protected page which checks for that variable. if the user/pass is wrong it redirects to an error page.

[PHP] Re: mail() function

2002-07-26 Thread Richard Lynch
what has to be configured, and how, on a bsd server to allow the mail() function to work in php? using sendmail? php.ini Use the path to sendmail there, with the -t as suggested, and *YES* the quotes *ARE* supposed to be part of it: sendmail_path = /path/to/sendmail -t You may also need to

RE: [PHP] PHP / Apache 2.0.39 issues

2002-07-26 Thread Frank S. Kicenko
Yes I found it... thank you! -Original Message- From: Aaron Gould [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 9:56 AM To: Frank S. Kicenko; [EMAIL PROTECTED] Subject: Re: [PHP] PHP / Apache 2.0.39 issues Searching the list archives will reveal the answer. I've answered this

Re: [PHP] sessions

2002-07-26 Thread Pushkar Pradhan
Try removing the quotes in sessio_register ie. (valid_user2) Here is the code that starts and registers the session. It is login page that logs in to itself so the form that produces $_POST[username] is actually on the same page, but nothing happens until the user logs in. It there is

[PHP] Re: probelm : delete files using PHP

2002-07-26 Thread Richard Lynch
Hi Gurus, I am using PHP 4.1.1, Postgresql 7.2 and Perl 5.6.0 on Linux. I want to delete files in a directory,which were created 15 days back. I can not do it, with PHP filesystem and directory functions, as PHP runs as "nobody" user. Can anybody pls. help me ? Well... There are several

[PHP] Re: ldap_connect()

2002-07-26 Thread Richard Lynch
I am new to using PHP on RedHat 7.3 and am running into a problem with ldap_connect(). When I attempt to run ldap_connect, I get the error: Call to undefined function: ldap_connect() Even though you said --with-ldap=shared it just didn't work You'll have to do ./configure again and figure out

[PHP] mysql question

2002-07-26 Thread Christian Calloway
Sorry this may be a little offtopic, but I am currently moving a site I was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading somewhere that there is a utility that will convert/transfer (data and structure) a MSAcess database to Mysql, and vice versa. Anyone know? Thanks

Re: [PHP] sessions

2002-07-26 Thread Tyler Durdin
Here is the code that starts and registers the session. It is login page that logs in to itself so the form that produces $_POST[username] is actually on the same page, but nothing happens until the user logs in. It there is something in this code that is not correct or making the other code

[PHP] sessions

2002-07-26 Thread Tyler Durdin
I used this logout page using sessions a while ago and it used to work great, but now it doesn't work. The only thing i have changed is my version of php. Can someone take a look and see what i have to change? ? session_start(); $old_user = $valid_user; $result =

RE: [PHP] Netscape 4.7 with php gd, very slow

2002-07-26 Thread Harry Yu
Both are running Apache. I'm using the Windows machine as a development box. The web server and php configuration are very close. --- Bob Lockie [EMAIL PROTECTED] wrote: I have no problem with Netscape 4.7 when connecting to Windows 2000 running the same script. Also, I don't have any

Re: [PHP] Closing file pointer

2002-07-26 Thread Marek Kilimajer
The filepointer is closed after your script finishes executing, you cannot do it. V_Suresh wrote: Hi All, Suppose I'm opening a socket connection to a server on some port, and I do some transactions, and generate html. But I 'm not closing the file pointer(socket). Only after the user

[PHP] invalid use of group function (mysql)

2002-07-26 Thread Alexander Ross
Why am I getting this error? My statement is: SELECT * FROM shots WHERE shot_num = MAX(shot_num) LIMIT 1; There is one record in the table shots. Its shot_num value is 0. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: mysql question

2002-07-26 Thread Julio Nobrega
Christian Calloway em Friday 26 July 2002 17:30 foi agraciado com uma resposta por: Sorry this may be a little offtopic, but I am currently moving a site I was developing from coldfusion+MSAccess to PHP+MySQL. I remembered reading somewhere that there is a utility that will convert/transfer

Re: [PHP] (newbie) questions abot vars and args

2002-07-26 Thread Martin Clifford
1) To echo the variables name instead of it's value, surround it instead by single quotes, not double. echo '$var' OUTPUTS $var echo $var OUTPUTS the contents of $var 2) Checkout the func_get_args() function. http://www.php.net/manual/en/function.func-get-args.php HTH! Martin

Re: [PHP] sessions

2002-07-26 Thread Tyler Durdin
yes they are off. I did just recently discover this whole form thing, but i did not know about the session variables. I put the session registration code up in another post, if you would not mind looking at that and recommending changes. in the mean time I'll try and get up to speed on the

[PHP] Re: timing header(Location: )

2002-07-26 Thread Richard Lynch
Is it possible to make the browser wait say, 5 seconds before redirection by outputting headers? I know you can do it with meta tags but not how by outputting headers The header version pretty much hits the browser long before your HTML, and then the browser will immediately move to the new

[PHP] Re: PHP Meetup, how many of you have signed up?

2002-07-26 Thread Richard Lynch
Top 10 Locales -- Washington DC (9 members) Amsterdam (7 members) Leeds, UK (7 members) London, England (7 members) Atlanta (5 members) Manhattan (below 42nd St) (5 members) Melbourne (5 members) Oakland-Alameda, CA (4 members) Nashville, TN (4 members) St. Louis, MO (4 members) I am somewhat

[PHP] Re: Sessions, how they exist and die

2002-07-26 Thread Richard Lynch
My question is, if I have a user on my web site, and they leave and come back does their session still exist? the file in the /tmp folder exists until it is deleted by the OS? If the user comes back will they get assigned the same session they had before? I know the questions are pretty newbish

[PHP] How can I get my session variable to pass to another page?

2002-07-26 Thread DonPro
Hi, I have a form that calls a PHP script which sets a session variable and redirects to anopther URL as such: session_start(); $HTTP_SESSION_VARS['userid'] = someidnumber; Header('Location: ' . 'http://www.mydomain.com/welcome.html'); On welcome.html, I have the following code: script

[PHP] Re: Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread JJ Harrison
If you got it installed. insert a script called php_info.php on the companies webserver. here is it's contents: ?php phpinfo(); ? That will give you lots of info about the configuration of PHP. do the same thing on your PC. if they are differant: Use windows explorer/my computer to browse

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
I here ya' there Martin. ASP is about next on my list. I'm just trying to get javascript and PHP under my belt a little better firstwell ok, I'm waiting for my next paying client. I've found that you do have to use what you know to know whatever you need to do. I couldn't live without

Re: [PHP] Help: header function

2002-07-26 Thread Tech Support
Try just header(Location: $PHP_SELF); or header(Location: $SCRIPT_NAME) ...leave out http:// ...and your quotes are in the wrong place too. Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: k a m e s h [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: [PHP] mysql question

2002-07-26 Thread Tech Support
Congrats! Good choice! Take a look here: http://www.convert-in.com/acc2sql.htm or here: http://www.google.com/search?hl=enlr=ie=ISO-8859-1q=convert+access+databa se+to+mysql Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Christian Calloway [EMAIL

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
unset($_SESSION['variavble']); Andrey - Original Message - From: Tyler Durdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 10:14 PM Subject: Re: [PHP] Re: sessions So doing it the new way ($_SESSION['variable']) how do you close or unregister a session?

Re: [PHP] Sorry for another newbie PHP and Apache 2.0.39 question..

2002-07-26 Thread Bob Lockie
On Fri, 26 Jul 2002 12:24:31 -0500, Frank S. Kicenko wrote: Ugg.. been compiling and configuring for too many days..everything is just a fog..:-) I appreciate all the help here.. but I'm afraid I need a little more.. :-) I can't seem to get Apache to recognize PHP... The logs state: [notice]

[PHP] Re: The page before for newman.

2002-07-26 Thread Richard Lynch
I'm looking for the global veriable that lists the page before the page that i just came from. Anyone know what i'm talking about? ?php phpinfo();? will tell you what you want to know. -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported

[PHP] imagettftext, GD2, and Freetype

2002-07-26 Thread Sean Coates
Hello, I'm playing with imagettftext: http://sean.caedmon.net/ttf_example.php?text=PHP This works fine with some fonts, and not fine with others: http://sean.caedmon.net/ttf_example.php?text=PHPfont=a The (broken) font in question is available at:

Re: [PHP] Possible to have optional values in function?

2002-07-26 Thread JJ Harrison
I just realised why my search returned nothing. I was searching the function list instead of the whole site :} Sorry :( -- JJ Harrison [EMAIL PROTECTED] www.tececo.com Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Friday 26 July 2002 23:33, Tech Support wrote:

Re: [PHP] Paying Job...

2002-07-26 Thread Matt
From: Gerard Samuel [EMAIL PROTECTED] Sent: Friday, July 26, 2002 1:07 PM Subject: Re: [PHP] Paying Job... Someone posted a link to template contracts yesterday, but I cannot find it in the mailing list archive. Bret Find a contractor or find a contract at Tech-Temp.com

[PHP] Re: pulling records from mysql

2002-07-26 Thread Richard Lynch
I have a column in my table named firstname with twenty records in it. How can i use php to pull out individual records (say for ex. record 16)? Also, select firstname from blah where id = 16 how could i pull out all records upto number 15? Thanks in advance. select firstname from blah where

[PHP] Re: 'Previous' 1, 2, 3, 4, etc. 'Next'

2002-07-26 Thread Richard Lynch
// Set the limit per page $sql_text = $sql_text . LIMIT $start, $maxresult; echo $sql_text; $result2 = mysql_query($sql_text); if (!$result2){ echo mysql_error(); } // The navigation between pages -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input

[PHP] Re: New way to make select boxes auto select

2002-07-26 Thread Richard Lynch
You may already be doing it like this, but I think I found a new way to make select boxes auto-select (what data they put in) a lot easier. All you have to do is put a variable in each select tag that is equal to the value of the select option i.e.: option value=teacher $teacher -- then all you

[PHP] Re: mySQL Queries using PHP's SESSION variables

2002-07-26 Thread Richard Lynch
Hello, I am stuck here. In the name of efficiency I want to lower the number of callls to the database. So I am trying to give the most stringent query possible. This is the problem: I have stored the surfers shopping cart, where each item is stored as a session variable.Now on the database I

[PHP] php 4.2.2 on redhat 7.3

2002-07-26 Thread Fifield, Mike
I am trying to figure out how to upgrade php from 4.1.2 (which is the default that comes with redhat 7.3), to version 4.2.2. From the small amount of documentation I have been able to find on the subject, it looks like I need to download a rpm. Is this the best way to do it or would it be better

[PHP] Re: Implement PHP within a string

2002-07-26 Thread Richard Lynch
Is it possible to run PHP that is embedded within a string? I have a file that is read into a string and returned to the browser, how can I run that PHP? http://php.net/eval -- Like Music? http://l-i-e.com/artists.htm I'm looking for a PRO QUALITY two-input sound card supported by Linux (any

[PHP] exec() not working in one script...

2002-07-26 Thread Jay Blanchard
Frustrating! I have scripts that do this exact thing, on this exact server, for that matter in this exact set of directories, now it will not work; $filename = NIIRTQWCDR. . date(Ymd) . . . $cycle; //open new file and write records to it $cdrfile = fopen(/usr/local/www/data.default/rcr/ .

Re: [PHP] adding Databases

2002-07-26 Thread Gurhan Ozen
You don't let PHP know that it is installed. You just have to make sure that PHP is supporting mysql functions (compiled with mysql support) and start using mysql function.. Check out what phpinfo() prints , whether or not there is mysql related info in its output.. Gurhan Joel Lopez [EMAIL

RE: [PHP] Close A Databse Connection

2002-07-26 Thread Andrew Hill
+1 right. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access Virtuoso Universal Server -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 2:22 PM To: [EMAIL

Re: [PHP] still on sessions

2002-07-26 Thread Martin Clifford
I always just register an extra variable to track logged in users. If the user has logged in, it is set to TRUE, if not, FALSE. Then I just do comparisons on that variable. ?php session_start() if($loggedin == FALSE) { header(Location: login.php); } ? Something along those lines.

RE: [PHP] php redirect

2002-07-26 Thread Tyler Durdin
I already tried that and i got an error that said Cannot add header information - headers already sent by (another snippet of code I have in the page. Use the header() function http://www.php.net/manual/en/function.header.php *

[PHP] Re: Help! mysql problem

2002-07-26 Thread Richard Lynch
Hi there, I've got a quick question concerning PHP and mySQL. I've got a fresh server with recent versions of Red Hat Linux, mySQL, PHP and apache. My problem is that when I call mysql_pconnect, my PHP code hangs and doesn't proceed. I can't check mysql_error because it doesn't go beyond

[PHP] Re: unset array here?

2002-07-26 Thread Richard Lynch
Hello, I have this example code: function doprint($a){foreach($a as $value)echo $value;} doprint(array('1','test','hello','and')); Question, is the array in memory after the function call? So, should it be better to use this: function doprint($a){foreach($a as $value)echo $value;}

Re: [PHP] sessions

2002-07-26 Thread Tyler Durdin
I don't know. Tell me where I would find it and I'll look : -) Sorry, pretty new to all of this. Do you have register globals off? Jim Grill Support Web-1 Hosting http://www.web-1hosting.net - Original Message - From: Tyler Durdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday,

RE: [PHP] php redirect

2002-07-26 Thread Jay Blanchard
[snip] Learning about HTTP protocol helps a LOT with understanding headers. Basically, the headers are generated by the server to tell the client (browser) what to do. If you send ANYTHING (even a hard return) before the header function is invoked then you will get this error. In essence, if

RE: [PHP] php redirect

2002-07-26 Thread David Buerer
What's ASP I don't know if and haven't learned it so it couldn't be. After all, how many programming languages does one need to know?? -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED]] Sent: Friday, July 26, 2002 8:27 AM To: 'David Buerer'; [EMAIL PROTECTED]

Re: [PHP] Re: How to check if a field is auto increment

2002-07-26 Thread Justin French
on 26/07/02 10:50 PM, Mathieu Dumoulin ([EMAIL PROTECTED]) wrote: Oh, and also, i need to know how to get the default value... Btw, i CAN be done, or else, how does phpMyAdmin does it =P Well then look at the source code of phpMyAdmin :P Justin -- PHP General Mailing List

[PHP] [Getting OT] Re: [PHP] php redirect

2002-07-26 Thread Chris Garaffa
On Friday, July 26, 2002, at 11:32 AM, David Buerer wrote: ASP is about next on my list. I'm just trying to get javascript and PHP under my belt a little better firstwell ok, I'm waiting for my next paying client. I've found that you do have to use what you know to know whatever you need

[PHP] pg_pconnect() question

2002-07-26 Thread Varsha Agarwal
I am trying to connect to postgre_sql database using pg_pconnect(). When I try to run it i get the following error Warning: Unable to connect to PostgreSQL server: FATAL 1: IDENT authentication failed for user postgres in /var/www/html/test.php on line 3 connection failed Please tell me what

Re: [PHP] sessions

2002-07-26 Thread Tech Support
okay... if register_globals is off then your session handling is going to change dramatically. You can read more on it here: http://www.php.net/manual/en/ref.session.php Basically, You still use session_start(); at the top of your page, but you never use session_register, session_is_registered,

Re: [PHP] Installed PHP on home Win98se, now how can I get browser to see it?

2002-07-26 Thread Jadiel Flores
Obiously you need a WebServer too, you can install Apache or Personal Web Server, and configure php to work with it, next you can browse you own server with the address http://localhost or http://127.0.0.1, maybe you will have to install mysql for windows too if you wanna work with databases

Re: [PHP] Re: sessions

2002-07-26 Thread Andrey Hristov
do the following function a(){ var_dump('pre',$GLOBALS,'/pre'); } a(); and see what variables you have and whether your variables are set somewhere. HTH Andrey - Original Message - From: Tyler Durdin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, July 26, 2002 9:28 PM

[PHP] filling an array

2002-07-26 Thread Steve Buehler
Can anyone tell me what I am doing wrong? I am essentially trying to do this: $divid[1] = $div_id1; $divid[2] = $div_id2; $divid[3] = $div_id3; $divid[4] = $div_id4; $divid[5] = $div_id5; But I was looking for a tighter way, like the following (which does not work): for($m=1;$m=5;$m++){

  1   2   >