[PHP] Putting php at end of html?

2001-03-15 Thread webmaster
I am creating a site right now and I think many of the pages will use php in the future...But not right now. Should I put the .php extentsion at the end of these pages now even though they currently do not have php on them. So there anything that can go wrong if I do this? Steve -- PHP

[PHP] Hey Everyone

2001-03-19 Thread WebMaster
Hi Everyone, I just wanted to let you know (and thank some of you for all your help!), that I've finally launched my revamped website. There are two main sections in the site: Section 1 is for High School and College Students and has almost 3000 Essays available. Section 2 is for anyone

[PHP] PHP and passwords

2002-02-28 Thread webmaster
Is there a way to connect to your database using php without hard coding a password into the php file? We run PostgreSQL 71 on a Linux 72 server with the latest version of apache I don't want to change the authentication within Postgres to not require a password But I also, for security

[PHP] Best way to store 1000 char in a database

2002-06-06 Thread webmaster
What is the best way to store text with up to 1000 characters in a mySQL database? Sorry for the slightly of topic posting but I am not going to join another mailing list unless I have to. I am going to create a weekly qoute generator thingy for my site. JJ Harrison[EMAIL

[PHP] invalid path

2002-06-08 Thread Webmaster
My OS is XP Pro. I installed my web folders in c:\web instead of c:\apache\htdocs My php folder is: c:/php In the httpd.conf: DocumentRoot /web/myweb ScriptAlias /php/ c:/php/ AddType application/x-httpd-php .php Action application/x-httpd-php /php/php.exe In my Php.ini: include_path =

[PHP] Suggestions for getting started with poll app.

2002-06-08 Thread webmaster
I want to build my own poll(The ones availble from sites such as hotscripts.com are not quite what I need) Could any one tell me of a *good* tutorial? Particularly the number of questions would be different between each poll not a fixed number. JJ Harrison[EMAIL PROTECTED]www.tececo.com

[PHP] Javascript PHP cookies

2002-06-08 Thread webmaster
Is it possible to read cookies from javascript written by PHP and vice-versa? Just out of curiousity JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Suggestions for getting started with poll app.

2002-06-08 Thread webmaster
- Original Message -From: "Nick Wilson" [EMAIL PROTECTED]To: [EMAIL PROTECTED]Sent: Sunday, June 09, 2002 12:15 AMSubject: Re: [PHP] Suggestions for getting started with poll app.* and then [EMAIL PROTECTED] declared I want to build my own poll(The ones availble from sites such

[PHP] PHP function for listing number of columns in table

2002-06-08 Thread webmaster
Pardon the probably stupid question but, Is there a PHP function for listing number of columns in a mySQL table? Thanks in advance JJ Harrison [EMAIL PROTECTED] www.tececo.com

[PHP] Converting week number to unix timestamp

2002-06-12 Thread webmaster
How can I convert the week number(i.e. 1 - 52) to a UNIX Timestamp? Thanks JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Nested Menu Help

2002-06-22 Thread webmaster
When I am in page A (or one of it's children) I wish to show it's one level of children like so: Page A Child 1 Child 2 etc... Page B When I am in page B (or one of it's children) I wish to show it's one level of children like so: Page A Page B Child 1 Child 2 etc... Do you

[PHP] Error(Newbie)

2002-06-22 Thread webmaster
Both the below are in the same dir. The meta.array_create.php file works fine elsewhere when I try and view stat.phpI get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in C:\TecEco(Converting To PHP)\includes\stat.php on line 7 What does

Re: [PHP] Error(Newbie)

2002-06-23 Thread webmaster
I got that auto add slashes thing on. is it enough? If not how should I go about adding them? like this? $_SERVER['REMOTE_HOST'] = addslashes($_SERVER['REMOTE_HOST']); What sort of effects could an attack have? I am intergrating stats into a site. What other vars could I gather info from?

[PHP] creating table help

2002-04-19 Thread webmaster
I'm very new to php and PostgreSQL. I keep getting the following error when I try to create a table: Warning: Wrong parameter count for pg_exec() in /var/www/html/elkan/createtable.php on line 23 The table, ghdsl could not be created Here is the code I'm using: ?php // set variables

[PHP] authorization headers

2002-04-25 Thread webmaster
does anybody know how to pass the correct username and password as a header to a directory with an .htaccess file. i tried header(Authorization: Basic username:password); like that and also where the username:password was base 64 encoded and it isn't working. thanks. -- PHP General Mailing

[PHP] auto_increment

2002-04-26 Thread webmaster
I'm using PHP v.4.0.6. and PostgreSQL 7.2. Does any one know the equivilant of auto_increment for postgresSQL? For example when creating a table: $query = CREATE table $tablename (id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, firstname TEXT, lastname TEXT, emailaddress TEXT, ); this

[PHP] Defining PHP varibles from URL

2002-05-05 Thread webmaster
I can't seem to define a varible from the url entered into a browser. I wish to use the following code or something like it. script language="php" $file = "";//the aboveis defined from the url include "$file"; /script It could be what I was typing in the url bar.

[PHP] Defining PHP varibles from URL

2002-05-06 Thread webmaster
I don't mean to be a pain but could someone send me a working example? I am what you would probably call a 'newbie' For those who don't know here is my previous message can't seem to define a varible from the url entered into a browser. I wish to use the following code or something like

[PHP] Defining PHP varibles from URL Solved!

2002-05-06 Thread webmaster
Sorry I did read all your replies etc. They were helpful. I have now solved the 'problem' and thank you all. I have less than week of experiance in PHP and am still learning. JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] .vcf files and PHP Email Form(Newbie)

2002-05-12 Thread webmaster
I want to create an e-mail form that writes a (person's name).vcf(vCard) file and attaches it to the message. This would allow me to eaisly add people to my address book. The source of a sample .vcf(vCard) file is shown below: BEGIN:VCARD VERSION:2.1 N:Harrison;JJ FN:Harrison, JJ ORG:TecEco Pty.

Re: [PHP] .vcf files and PHP Email Form(Newbie)

2002-05-12 Thread webmaster
I don't have much experiance with MIME. where could I find a tutorial or ready made class? - Original Message - From: Miguel Cruz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 4:41 PM Subject: Re: [PHP] .vcf files and PHP Email Form(Newbie)

RE: [PHP] Re: MySQL or FlatFile

2002-05-13 Thread webmaster
I am very new to PHP(Still awaiting a book, Only done a few tutorials and read bits of the PHP manual). But if you used: mysql_pconnect($host, $user, $password) It would keep a consistant connection to the database so it may speed things up a bit. JJ Harrison[EMAIL PROTECTED]www.tececo.com

Re: [PHP] PHP and mySQL

2002-05-14 Thread webmaster
You are missing a before $booktitle. old:booktitle=$booktitle AND quantity=quantity; new:booktitle=$booktitle AND quantity=quantity; JJ Harrison [EMAIL PROTECTED] www.tececo.com - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 14, 2002

[PHP] Listing the contents of a directory in an array

2002-05-17 Thread webmaster
I am a newbie so be kindI have looked into the manual about directory functions etc.I want to return all the files from a directory into a array. Could some one give me a few pointers or something? I keep getting confused but I have used google and the manual. I canfind functions but I

[PHP] document root variable or function

2002-05-17 Thread webmaster
Is there a variable in PHP which will show the directory of the document root? I have done a few searches and before I go looking harder I thought I'd ask. My problem is that I am using both windows, IIS and linux, Apache. I tried a few things like $document_root which didn't seem to work

[PHP] (newbi)mySQL query question

2002-05-18 Thread webmaster
This doesn't have a huge amount to do with PHP but, I have the following code for my SQL query: $query = "SELECT code FROM links WHERE sort_text = $letter*"; I get an error. What I want to do is be able to specify a letter and have the rest be undefined eg if $letter was t I would get

[PHP] Complex(ish) Question for Newbie

2002-05-18 Thread webmaster
How can I return the last five lines of a mySQL database table? JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem with

2002-05-18 Thread webmaster
I have the following code for a mySQL query in php: $text = "sort_text"; $query = "SELECT code FROM links ORDER BY $text WHERE ".$text." like '".$l."%'"; $result = mysql_query($query) or die("Query failed"); When I do the query I get Query failed. When I remove the sort parameter they are

[PHP] Searching for any number in a mysql query

2002-05-21 Thread webmaster
This isn't a one hundred percent PHP Q but here I go. If I have the following query: $query = "SELECT code FROM links WHERE ".$text." like '".$l."%' ORDER BY sort_text"; and define the letter a letter i.e x. it works fine. I am not sure what to do if I want to say get something that

[PHP] Reverse mySQL date

2002-05-21 Thread webmaster
How can I reverse the date coming out of mySQL? ie 2002-05-21 becomes 21-05-2002 Can do it in the mySQL query or do I need to use PHP? Thanks in advance, JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Confusion with UNIX date/time

2002-05-24 Thread webmaster
What php functions should I use to convert a UNIX timestamp to a human - legible format and back again? I have looked in the manual and used google etc but I am only getting more confused :} JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] Parse Error(Newbie)

2002-05-26 Thread webmaster
I know it is probably something obvious but the following gives me a parse error and as a newbie I am having trouble locating it. $query = "select * from news WHERE id = "$_get['id']""; JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To

[PHP] auto_increment

2002-05-28 Thread webmaster
I think this is any easy question, but I couldn't find an answer in the php Black Book for PostgreSQL. Does anyone know the equivilant of auto_increment for PostgreSQL? This is the php code that I have: $query = CREATE table $tablename (id INT NOT NULL PRIMARY KEY, ip TEXT, customer TEXT,

[PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
I get a parse error on this line $query = "SELECT * FROM news ORDER BY id DESC LIMIT 1"; I believe that it is an error in the SQL statement Thanks in advance JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Here is the function: function print_new_story(){ $query = SELECT * FROM news ORDER BY id DESC LIMIT 1; $result = mysql_query($query); $num_results = mysql_num_rows($result); for ($i=0; $i $num_results; $i++) { $row = mysql_fetch_array($result); echo 'h2a href=#: '; echo

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Line 81 is $query. I showed it in my first email. I suspect this line is the one causing the trouble(It is about four lines above the start of the function and is the only previous PHP statement) mysql_query(delete from conf_event where time ( time() ); - Original Message - From:

[PHP] Periods with UNIX timestamps

2002-05-29 Thread webmaster
Where is the best place to find out the values in seconds(i.e. UNIX time stamps) for standard periods of time such as one day and one week and one month(The month thing would need to be correct for each month) JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List

Re: [PHP] Parse Error(newbie)

2002-05-29 Thread webmaster
Notepad at the moment as I can't change the settings of my computer due to lack of privilages - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 29, 2002 11:26 PM Subject: Re: [PHP] Parse Error(newbie) On Wednesday 29 May 2002 21:22,

[PHP] Month Values in UNIX timestamps and workaround(Newbie)

2002-05-29 Thread webmaster
I began to write a function that correctly diveded up the months into their correct UNIX timestamps and wrote content from a database accordingly. I have had an idea that maybe eaiser to implement but slower. Could one or two people tell me what the think and if it is a good idea. I am

[PHP] Replacing Number with Month(newbie)

2002-05-31 Thread webmaster
Is there a magical function that I can use to convert 4 into April and 5 into May etc? can I use mktime() Oneyes no answer will do fine JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Not sure how to loop this...(Newbie)

2002-06-01 Thread webmaster
I have this code: $end_date = time(); $year = 2002; $month = 4; $monthi = $month + 1; $time = SecondsInMonth($month, $year); $time_i = SecondsInMonth($monthi, $year); $query = "SELECT * FROM news WHERE date $time_i AND date $time ORDER BY id"; $result = mysql_query($query); $num_results =

[PHP] echoing two varibles(newbie)

2002-06-03 Thread webmaster
How can I echo(or include) two variables? ie include $DOCUMENT_ROOT then $row['location'] Thanks in Advance JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Printing Large Blocks of Text

2002-06-04 Thread webmaster
What is the best way to print large blocks of text within a PHP function? JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] string questions

2002-08-02 Thread webmaster
I know there has to be an easy way to do this, but I just can't find the answer. I need to strip out the first part of a text string. I've figured out out to strip out the last part of a string using the following: $address = (4455 N. 45th St.); $test = strstr($address, ); echo $test; The

[PHP] Next and Previous links

2002-08-09 Thread webmaster
Hello, I've been trying write a .php page that displays 10 results per page with links to the next 10 avail. I've found a couple examples on how to do this with MySQL, and I tried to convert it to work with Postgres with no luck. Has anyone ever done this using PHP4.0.6 and Postgres 7.1?

Re: [PHP] Next and Previous links

2002-08-09 Thread webmaster
I found an answer for anyone who may be interested on phpbuilder.com http://phpbuilder.com/annotate/message.php3?id=1010986 -Elkan webmaster wrote: Hello, I've been trying write a .php page that displays 10 results per page with links to the next 10 avail. I've found a couple examples

Re: [PHP] Writing Files

2002-08-30 Thread Webmaster
i write these files in a for-next loop, so at the start of each loop, i've to put an unmask command? - Original Message - From: Jason Wong [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Friday, August 30, 2002 4:11 PM Subject: Re: [PHP] Writing Files On Friday

[PHP] execute remote CGI without redirect

2001-09-24 Thread Webmaster
How do you call for the execution of a CGI on a remote machine without redirecting the output of that CGI to the browser? I basically need to send form info to a CGI of a marketing group, while keeping the browser on my site. Thanks, _Ken [EMAIL PROTECTED] -- PHP General Mailing List

[PHP] best linux choice for php / mysql ???

2001-10-29 Thread webmaster
I've been using PHP/mySQL on my web host's site for a year or so, and I now need to create my own installation ... Given my relatively limited linux background, which distribution woud I find easiest to install? I'll be needing PHP, mySQL, and PDFlib ... I've done my homework, I've studied

[PHP] Your invitation to the Legal Solutions Europe 2001 Conference

2001-08-23 Thread Webmaster
Hi My apologies for writing to you unannounced. I came across your name whilst researching some data for the above event and I thought it might be of interest to you. For more info see below or visit www.lseurope.com This is Europe's largest and most prestigious IT solutions event. It

[PHP] form data used on the same page?

2001-08-31 Thread webmaster
Greetungs. Is it possible to use data collected in a form ON THE SAME PAGE without using the form's submit button? In other words, if a text field is filled in, can I capture (via PHP or other means) the info typed there and display it elsewhere on the same page? I realize the answer may very

[PHP] Problem with PHP y Phorummail

2001-09-05 Thread Webmaster
Hi people: I trying to execute Phorummail script (put email into a web message board) from my shell, but I get this error message. [root@corotu docs]# ./phorummail php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared object file: No such file or directory What can I

[PHP] Unresolved Mistery Error in PHP

2001-09-06 Thread Webmaster
Hi people: I trying to run a script from my shell but I get this error: [root@corotu docs]# ./phorummail php: error in loading shared libraries: libmysqlclient.so.6: cannot open shared object file: No such file or directory Well, some people said to me that usually this library is located in

Re: [PHP] protecting video files

2001-05-11 Thread WebMaster
I did :( went character by character and could find not extra spaces. At 06:16 PM 5/11/01 -0400, Michael Kimsal wrote: Check for extraneous spaces in your script. Tim Schulte wrote: Hi there - I am having some weird problems here. I am try to write a script that will check to see

[PHP] Session Array using array_pop and array_unshift

2005-05-11 Thread Webmaster
Hello, I have an application that occasionally drops a session array element value. Data from the form... $_POST['firstName']; $_POST['lastName']; $_POST['phone']; $_POST['email']; $_POST['cell']; When the form is submitted, the POST variables are checked to make sure they each contain a value.

Re: [PHP] Oracle Interface

2005-06-10 Thread Webmaster
Shane Presley wrote: Where can I find some info on integrating Oracle and PHP? I had some PHP front ends to a MySQL database, worked great. Our DBAs want to change the back end from MySQL to Oracle 10g. How hard would it be to convert my PHP scripts, and where would I go to read up on Oracle

Re: [PHP] change letter to all caps

2005-07-18 Thread webmaster
$uppercasestring=strtoupper($originalstring); - Original Message - From: George B [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, July 18, 2005 6:59 PM Subject: [PHP] change letter to all caps Lets say I have a form. And when user types in the form and clicks go, it

[PHP] curl http file upload post

2006-04-03 Thread webmaster
I am trying to upload a file to a remote server using curl and post method here is what I have: $file = $dir..$dbfile[0]; $this-invoiceno = $dbfile[1]; $uploadpath = http://www.website.com; $postvar = array (); $postvar['cboFileType'] = 837; $postvar['txtDesc'] = Invoice

[PHP] mail() and exim

2006-04-07 Thread Webmaster
Hello, I'm not sure if this is the right list to ask this on or not Here's the situation... my php scripts were generating emails as expected. I was shocked when they told me that exim was not responding to requests on port 25 and had to be restarted. So, PHP communicates with exim

[PHP] Session Array Disappears

2006-04-24 Thread Webmaster
Hello, The site I'm working on works like this... Requires a login that uses sessions to remember username and email address. Upon being verified, the user is presented with a page that displays several questions regarding their background. Upon submitting the background page, a script

Re: [PHP] Session Array Disappears

2006-04-24 Thread Webmaster
://www.php.net/manual/en/ref.session.php http://www.php.net/manual/en/function.session-start.php Brady -Original Message- From: Webmaster [mailto:[EMAIL PROTECTED] Sent: Monday, April 24, 2006 1:49 PM To: php-general@lists.php.net Subject: [PHP] Session Array Disappears Hello

Re: [PHP] Session Array Disappears

2006-04-24 Thread Webmaster
Hello, Thank you for the reply. Interesting function. I have not heard of that one previously. I've read the manual pages for it.If I understand ignore_user_abort(TRUE)...you are thinking that maybe the user is being disconnected (using stop button or having ISP issues) prior to the

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Hello, Thank you for the reply. Richard Lynch wrote: On Mon, April 24, 2006 2:48 pm, Webmaster wrote: In reading the www.php.net/manual/en/ref.session.php page, I'd like to point out we do not use cookies. The session id is propagated in the URL (although it's not visible in the URL bar

Re: [PHP] Session Array Disappears

2006-04-25 Thread Webmaster
Richard Lynch wrote: I'm thinking the guy who suggested ignore_user_abort(TRUE) is just doing Voodoo Programming :-) I love the term Voodoo Programming! I'm guilty of doing it myself. :-) My 2 cents.I could see times when ignore_user_abort(TRUE) could be very handy. I'm wondering

[PHP] Fw: `�.�MPEG`�.�

2006-06-12 Thread webmaster
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

AW: [PHP] how can I CALL a PHP script from different TEXT LINKS with differentPARAMETERS?

2005-11-18 Thread Webmaster
Hi, i hope I got you right. You can send data to the next php file by HTTP-GET. Simply add a ? behind the link and then variablename=value. Example ./jumpto.php?to=searchProduct In the jumpto.php you would ask the Global Array for Get Variables for the entry and then decide what to do.

[PHP] pasring complex string question

2005-04-07 Thread Webmaster
Hello, i have a string looking like this. ## /T (KEY1)/V (VALUE1)|| ## /T (KEY2)/V (VALUE2)|| ## /V (VALUE3)/T (KEY3)|| I know want to separete it in to keys and values and insert them into an array. Note that /T always shows that teh upcoming value in() is a Key and that /V always

AW: [PHP] Re: pasring complex string question

2005-04-08 Thread Webmaster
Thank you very much. If anybody has some good links to ereg tutorials, I would love to get that teached. Thanks Mirco Blitz -Ursprüngliche Nachricht- Von: Eli [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 8. April 2005 06:40 An: php-general@lists.php.net; Webmaster Betreff: [PHP] Re

[PHP] Another array sorting Problem

2005-04-16 Thread Webmaster
Hi, I have a multidimensional array looking linke this Rowid title kat 123 nr1 3 442 nr2 2 547665 nr3 5 4532nr4 3 3244nr5 1 124 nr6 2 776

AW: [PHP] Apache - IIS Migration

2005-04-18 Thread Webmaster
Hi, abolutly right. I never had problems with migrating from Apache to IIS or vice versa. Best Regards Mirco Blitz -Ursprüngliche Nachricht- Von: Pablo D Marotta [mailto:[EMAIL PROTECTED] Gesendet: Montag, 18. April 2005 23:09 An: php-general@lists.php.net Betreff: [PHP] Apache - IIS

[PHP] Accessing objects of other objects?

2003-08-29 Thread Webmaster
Hi, I have the following problem: On page A of my homepage I create an object 1 which itself creates an object 2. Now how can I access the properties of object 2 from A ? It doesn't seem to work. I am fairly new to Object Oriented Programming. Thank you very much. -- PHP General Mailing List

[PHP] Can Objects be passed to another page?

2003-09-03 Thread Webmaster
Hi, is it possible to pass an Object to another php page? I want to pass a whole bunch of varibales to another page. For example the session ID, the language that the user choose,etc. All those variables are in one or more objects. Do I have to copy all those object attributes to variables and

[PHP] Question regarding OOP and interitance

2003-09-04 Thread Webmaster
Good day, I would like to know a constructor function is also inherited to a child class. I mean the child class also needs to have a constructor function but it must have the same name as the class name. How does that work? Thank you very much. BW -- PHP General Mailing List

[PHP] Passing objects as a reference and extracting the index of an associative array.

2003-09-04 Thread Webmaster
Hi, i am using the smarty template engine. Here is the problem that I would like to ask about: function initTop($page, $array) { for ($i=0; $isizeof($array) { $page-assignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do

[PHP] Passing Objects between scripts and guarateeing that a language has been choosen.

2003-09-04 Thread Webmaster
Hi, I am just starting to understand how the session handling routines work in php. I can pass objects to other scripts. So I can put the language into the object that the visitor chose at the very first page. But what if a visitor bookmarked my homepage and comes back after a few weeks. How can

[PHP] IP adress problem

2003-09-16 Thread Webmaster
Hi, why doesn't this work? ## IP FUNCTIONS ## function assignClientIP() { if (getenv('HTTP_X_FORWARDED_FOR') == '') { $this-aCustomer-setClientIP((!empty($HTTP_SERVER_VARS['REMOTE_ADDR']) ) ? $HTTP_SERVER_VARS['REMOTE_ADDR'] : ( ( !empty($HTTP_ENV_VARS['REMOTE_ADDR']) ) ?

[PHP] Creating Objects!

2003-09-23 Thread Webmaster
HI, let us say there is Class A. In the constructor of this class I create an Object B of Class B. Now what is the difference between these two ? this-B = new B; and B = new B; Thank you very much! Wenmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Creating objects

2003-09-23 Thread Webmaster
Hi, let us say there is Class A. In the constructor of this class I create an Object B of Class B. Now what is the difference between these two ? this-B = new B; and B = new B; Thank you very much! Wenmaster -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] WHAT IS PEAR?

2003-09-24 Thread Webmaster
I checked the PEAR HOMEPAGE but still I don't quite understand what the project is about. I am familiar with writing classes and functions. Now, I can not figure out what the deal is. Does Pear consist of a class library that comes with the installation? There is a directory pear which is full of

[PHP] Need Older version of file upload script

2003-07-02 Thread Webmaster
that it will be running on is v4.0.3pl. Upgrading is not an option. Does anyone have a file upload script that will work on this older version of php that they would be willing to share? Thanks. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo mailto:[EMAIL PROTECTED]

[PHP] Help with upload

2003-07-03 Thread Webmaster
']); //or die($php_errormsg); //or die(Couldn't copy the file!); echo error=.$php_errormsg; } else { die(No input file specified); } Thanks. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo mailto:[EMAIL PROTECTED]

[PHP] More on file upload

2003-07-04 Thread Webmaster
php.ini settings are: file_uploads 1 doc_root no value post_max_size 8m upload_max_file size 2m upload_tmp_dir no value Anthing else to check? Is there a way to get a more descriptive error msg? Thanks. Mark Roberts, Roberts Computing Systems Webmaster Services $29.50/mo mailto:[EMAIL PROTECTED]

RE: [PHP] More on file upload

2003-07-04 Thread Webmaster
PROTECTED] Sent: Friday, July 04, 2003 10:57 AM To: Webmaster Cc: [EMAIL PROTECTED] Subject: Re: [PHP] More on file upload What is the message now? Is the file being uploaded and move_uploaded_file() does not move the file? Then check the directory permissions. Webmaster wrote: First of all

RE: [PHP] More on file upload

2003-07-04 Thread Webmaster
for your response. Mark Roberts, Roberts Computing Systems eCommerce, yeah, we do that! Graphics, Scripting, Databases, shopping carts mailto:[EMAIL PROTECTED] -Original Message- From: Andrew McCombe [mailto:[EMAIL PROTECTED] Sent: Friday, July 04, 2003 11:16 AM To: Webmaster; Marek

[PHP] problem with SUM and Postgres

2002-10-09 Thread webmaster
I can't figure out why the following code is not returning a column total: $sql1 = SELECT SUM(hostingcost) FROM $tablename WHERE webserver = '$webserver'; $hosting = pg_exec($connect, $sql1); echo $hosting; This returns: Resource ID #3 The only thing I can think of is that the hostingcost

[PHP] output buffering problem

2002-11-15 Thread webmaster
I'm trying to enable output buffering to speed up the load time of some of our php web pages. I've consulted the manual and enabled the following: output_buffering = On output_handler = ob_gzhandler At the beginning of my .php script, I include the following: ob_start(ob_gzhandler); This

[PHP] Sessions

2003-10-07 Thread Webmaster
Hi! I started to use the php own session functions today. Now I am getting such lines in the address bar: /pages/news.php?option=1015PHPSESSID=PHPSESSID=d117dba208d4b205cd4e521f606b b44e#result Why do I get PHPSESSID=PHPSESSID= ? Thank you. Webmaster -- PHP General Mailing List (http

[PHP] Smarty problem

2003-10-08 Thread Webmaster
Hi, I already posted this question in the Smarty group, without success. I have a problem with Smarty. I wrote the following function that gets data from a mysql database: function showHeadlines() { global $db; $entry_events = array(); if ($this-showold == true) {

[PHP] About php

2003-11-10 Thread webmaster
We have a data base in access 2000. Could you advise which version of php will connect to the access. Please advise also how can i open the connection . Thank you in advance for your assistance. Best regards Marlyn Estefanos Businesslink. -- PHP General Mailing List

RE: [PHP] Communicating with remote server

2003-11-17 Thread Webmaster
Well, I know how to run MySQL queries and connect to the db and things like that. But I would like to be able to connect to a remote site (ex: http://my-site.com/functions.php). Here I would like to run functions from the remote functions.php file and have it connect to it's own server's db.

RE: [PHP] Communicating with remote server

2003-11-17 Thread Webmaster
Yes, the remote server does have PHP. This sounds like a good idea. Is it relatively easy to do? I have never worked with HTTP protocol functions for this. Do you know of a tutorial I could look through to learn a little of this? Thanks, Matt -Original Message- From: Marek

RE: [PHP] Communicating with remote server

2003-11-17 Thread Webmaster
to communicate back and forth between the servers. I just have no prior experience doing it so I need a little guidance. Thanks, Matt -Original Message- From: Vail, Warren [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 7:09 PM To: 'Webmaster'; 'Jeff McKeon' Cc: [EMAIL PROTECTED] Subject

[PHP] serialize and unserialize

2003-12-22 Thread webmaster
Hello all i need a little help with serialize and unserialize here is my code ?php session_start(); if(!isset($_COOKIE['data'])) { //Check to see if cookie is there. include(cookie_num.dat); $y = $password; //Assign a special number

[PHP] need help getting one variable

2003-12-22 Thread webmaster
hello all i need help to enter one variable in a cookie and then retreive it back later, i know this probably sounds dumb to most but this is really the first time ive tried working with cookies so please bear with me, thanks for any help.

[PHP] need a little help all

2003-12-28 Thread webmaster
Here is what i have i call 2 cookies in the top of my script, now i need to call another when another script is called but it keeps givin me the error headers already sent, now ive seen this done in other scripts but wont work for me so please help me is it in my php.ini or is it just not possible

[PHP] need help with php and mysql

2003-12-31 Thread webmaster
i made a bobo and now mysql server is returning a to many connections error i dont have access to reboot so is there a comand i can use to close all connections.

[PHP] need help with php and mysql

2003-12-31 Thread webmaster
hi all i had an to many connections error with mysql i dont have anyway to reboot the server so is there someway i can give php a command and shut down all open connections on mysql thank you

[PHP] I need a little help

2004-01-11 Thread webmaster
Hello all i have probably a pretty dumb one here. i need help with getting the proper count on my referrals the way i set it up was i was just going to count down the line by using the member table, i enter the referral in the member table when the new user is added, this may have been a bad

[PHP] I am totally nuts/banana. Please somebody help me with an include problem.

2004-01-12 Thread Webmaster
/test.php); echo This is a test page.; ? and put this into the design directory: ?php php_info(); ? and it works fine. What could be the problem. Really I am getting grey hair. Is there ANYTHING in the php.ini file httpd.conf that could cause this? I looked them over about 50 times. Thx webmaster

[PHP] Simple question

2004-03-19 Thread webmaster
Im sure this question seems primitive to most of you, im new to using foreach with forms my question is how is the best way to keep from getting the submit button from comming through with the variables below is my code. form method=post action=?fm=newAdvertisera=insert centerpreb Advertiser

  1   2   >