[PHP] Need Older version of file upload script

2003-07-02 Thread Webmaster
ll 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
x27;img1']['name']); //copy($HTTP_POST_FILES['img1']['tmp_name'], "$ufolder".$HTTP_POST_FILES['img1']['name']); //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
: Marek Kilimajer [mailto:[EMAIL 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. Webmast

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] 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? Also,

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&

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 Fr

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

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

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

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

[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

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

[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.php I 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 doe

Re: [PHP] Error(Newbie)

2002-06-22 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? Th

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

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

[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 (http://www.php.

[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; $iassignVars(, $array[$i]) } } The function is supposed to know which object's attributes she is supposed to change. Do I have to pass the object as a

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

[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']) ) ? $HTTP_ENV_VARS['REMOTE

[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: http:/

[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: http://

[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] 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=1015&PHPSESSID=PHPSESSID=d117dba208d4b205cd4e521f606b b44e#result Why do I get "PHPSESSID=PHPSESSID=" ? Thank you. Webmaster -- PHP General Mail

[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 (http://www.php.ne

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. The

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 Kilimajer

RE: [PHP] Communicating with remote server

2003-11-17 Thread Webmaster
asy way 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'

[PHP] serialize and unserialize

2003-12-22 Thread webmaster
Hello all i need a little help with serialize and unserialize here is my code 'cart', 'y' => $password); session_register("y"); $var = serialize($data); //$chksum = md5($data . md5('secret salt here')); //$var = serialize(array($data,$chksum)); setcookie('data', $var, time() + 3600); }

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

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

2004-01-12 Thread Webmaster
and put this into the design directory: 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 General Mailing List (http://www.php.net

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

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

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 che

[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: thanks for any help. -- PHP

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

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

[PHP] Defining PHP varibles from URL

2002-05-04 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. ="php">

$file = "";
//the above is defined from the url

inc


[PHP] Defining PHP varibles from URL

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

[PHP] Defining PHP varibles from URL Solved!

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, v

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

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)

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(Newbi

RE: [PHP] Re: MySQL or FlatFile

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.co

Re: [PHP] PHP and mySQL

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

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

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 can find functions but

[PHP] document root variable or function

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 bu

[PHP] (newbi)mySQL query question

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 TecE

[PHP] Complex(ish) Question for Newbie

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

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

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 start

[PHP] Reverse mySQL date

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: http://www

[PHP] Parse Error(Newbie)

I get a parse error on line 114 can anyone see the problem?   Sorry if it is something obvious :} for ($i=0; $i <$num_results; $i++) 110. { 111. $row = mysql_fetch_array($result); 112. echo ''; 115. echo $row['description']; 116. echo ''; } JJ Harrison[EMAIL PROTECTED]www.tececo.com -- PHP G

[PHP] Confusion with UNIX date/time

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 u

[PHP] Parse Error(Newbie)

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 unsub

[PHP] auto_increment

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, dslp

[PHP] Parse Error(newbie)

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: http://www

Re: [PHP] Parse Error(newbie)

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 ': '; echo $row['title']

Re: [PHP] Parse Error(newbie)

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: "Ja

[PHP] Periods with UNIX timestamps

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 (http://

Re: [PHP] Parse Error(newbie)

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)

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 als

[PHP] Replacing Number with Month(newbie)

Is there a magical function that I can use to convert 4 into April and 5 into May etc?   can I use mktime()   One yes 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)

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)

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] PHP and passwords

Is there a way to connect to your database using php without hard coding a password into the php file? We run PostgreSQL 7.1 on a Linux 7.2 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 rea

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

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 every

[PHP] Double your website traffic

Do you want to double the number of visitors to your homepage everyday? The perfect solution is PopUp Window Exchange! It's a brand new concept from LinkExchange. It will pop up websites instead of traditional banners. As a result, it can bring you REAL web traffic instea

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

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 incorpor

[PHP] form data used on the same page?

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

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

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 /u

[PHP] execute remote CGI without redirect

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 (http://

[PHP] Installing PEAR on Windows

I've had no luck with the PEAR General List... so... I've successfully "manually" installed PEAR onto my windows server after trying many attempts at installing it properly - however, it's prooving a pain in the arse to upgrade the packages, and install any new ones. So, can anyone assist in why

Re: [PHP] Installing PEAR on Windows

Hi Matt (et al), I've added the c:\www\pear path to both the windows path and also the path in the php.ini file. However it's still coming up with the same error. Is there a way of putting in a temporary path in the go-pear.php file? Nunners Quoting "Matt M." <[EMAIL PROTECTED]>: > > Warning

[PHP] Nueva web necesita enlaces php

Apreciados colegas, estoy desarrollando una web en php que si bien no es muy complicada espero sea útil. Se trata de http://www.rutaweb.com/ La web principalmente está dedicada a enlaces de calidad pero en breve estrenaré sección de PHP con tutoriales y scripts. De momento agradecería que le

[PHP] pasring complex string question

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 i

AW: [PHP] Re: pasring complex string question

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

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

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 Mi

[PHP] Session Array using array_pop and array_unshift

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. I

[PHP] php and mysql help

Hello i need help with mysql_create_db i found the solution once but cant remember what it was if someone could tell me the proper way to create a database with php and mysql i would be greatly thankfull. Thank you.

RE: [PHP] Holding links in a database

Quoting Jay Blanchard <[EMAIL PROTECTED]>: > [snip] > I have created a site that is begining to accumulate a large number of > pages. I have been considering holding links to all pages in a database > so that the sub menus alter dynamically rather than being hand coded. > Has anyone else done this

RE: [PHP] PHP Web Mail

Try www.horde.org It's not only a webmail client, but has a whole load more! Nunners Quoting "I.A. Gray" <[EMAIL PROTECTED]>: > Thanks- looked at Squirrel Mail. Looks really good, however we use POP3- I > don't think Squirrel Mail uses POP3 does it? > > > > -Original Message- > From: J

[PHP] Session_Start Problem (Fatal Error)

I'm using Mambo Open Source CMS to run a site I'm building, and seem to have a problem logging into the Administration Tool. It comes up with: Fatal error: session_start(): Failed to initialize storage module. in /home/hetbweb/public_html/administrator/index.php on line 64 I've looked at various

[PHP] curl http file upload post

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'] = "I

[PHP] mail() and exim

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 inte

[PHP] Session Array Disappears

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 check

  1   2   >