[PHP] Re: hide a select tag

2002-07-08 Thread colin mcdonald
why not use a "hidden" field instead of a select? Anil Garg wrote: > Hi, > > sorry for going a lil out of way of php. > can i hide a drop down menu.(as i always want to pass the default value > selected in the drop down. > > thanx and regards > anil > -- PHP General Mailing List (http://ww

Re: [PHP] Linux Newsgroup???

2002-07-08 Thread Chris Hewitt
Scott, There are many mailing lists at https://listman.redhat.com/mailman/listinfo though mainly RedHat orientated. I expect other distributions have their equivalents too. There are also those a vger.kernel.org, which includes a linux-newbie one, the others tending to more aimed at the kerne

Re: [PHP] Editing Word Documents

2002-07-08 Thread Chris Hewitt
David Russell wrote: > snip-- > 5. The client then closes the file, it "auto-saves" and he goes about > his business. By coincidence, I'd be very interested in this too, particularly from a linux server. Regards Chris -- PHP General Mailing List (http://www

[PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Youngie
Hi Follks I'm writing an application that requires the user to login to gain access to the rest of the site. The login dailog is on index.html, once verified by login.php the user is presented with a menu from which he can select several options option1.htm which executes a query through option1.

[PHP] UNSETing Session Variables

2002-07-08 Thread jepadilla
I am having a slight problem unseting some session variable. here is an exaple of what I have Page1: choice: 1 choice: 2 choice: 3 choice: 4 Click on Submit button after choosing 1, 2, 3, or 4 Page 2: Loads information from previoius choice. Start over again I am using a session var

Re: [PHP] Editing Word Documents

2002-07-08 Thread Kevin Stone
Of course you can open and edit any file in PHP you just need to know the file format. But I highly doubt there is any method using PHP that will allow you to prompt the opening of a file into an external application. Editing of the file would have to be done in memory, or manually in the browser

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Kevin Stone
unsset($_SESSION['choice']); // .. or .. // session_unregister('choice'); -Kevin - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 11:54 AM Subject: [PHP] UNSETing Session Variables > I am having a slight problem unseting some session va

Fw: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Kevin Stone
Simply put you can not protect HTML pages through your login system. You must have some kind of continuous login/check at the top of each page. Give the page the .php extension so it can parse and execute the check. If you're using Cookies that's perfect.. you can just check for the existance o

[PHP] Best Content Management METHOD...

2002-07-08 Thread Monty
I'm setting up a simple content-management system for a webzine. I'm not sure which method would be the most efficient: 1) Put all content in a database and dynamically flow content into a few different "article" template files. Or... 2) Build the content as actual pages with dynamic elements

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread jepadilla
I tried to enter the comand as such unset ($_SESSION["choice"]); I thought everything in php was double quotes. but even with single quotes it still isn't quite working. If I do it on the first page then it won't let a later command assign anything to the variable, but if I do it on a seper

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Lowell Allen
> From: Monty <[EMAIL PROTECTED]> > > I'm setting up a simple content-management system for a webzine. I'm not > sure which method would be the most efficient: > > 1) Put all content in a database and dynamically flow content into a few > different "article" template files. > > Or... > > 2) B

[PHP] Executing WinZip command line not working.

2002-07-08 Thread Kevin Stone
I'm trying to executing winzip command line via the system() function. I know it can be done but I'm recieving a "Warning: Unable to fork" error every time. The server is running the latest PHP v4.21. Warning: Unable to fork [c:\Inetpub\WinZip\WINZIP32.EXE -e e:\NLObjects\Arches_n_Tunnels.zip

Re: [PHP] getting the IP address off a visitor

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Justin French wrote: > 1. in the case of most dial-up users with an ISP, the IP address is usually > dynamically assigned, so next time they dial-up (or re-connect) they will > more than likely have a different IP address. > > 2. in the many cases of computers with a static IP

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Kevin Stone
Okay sorry for the misunderstanding. You can set the lifetime of the cookie to die when the browser window is closed. Or if you use sessions this will happen automatically. http://www.php.net/manual/en/function.setcookie.php -Kevin - Original Message - From: "Youngie" <[EMAIL PROTECTED]

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Kevin Stone
We're going to need to see some of your code to help you further. -Kevin - Original Message - From: [EMAIL PROTECTED] To: Kevin Stone ; [EMAIL PROTECTED] Sent: Monday, July 08, 2002 12:15 PM Subject: Re: [PHP] UNSETing Session Variables I tried to enter the comand as such

[PHP] seeking experienced PHP programmer in Houston, TX (no telecommuting)

2002-07-08 Thread Peter J. Schoenster
Hello, I'm posting this ad for the company looking for a PHP programmer. I have no clue if the company is good or not. Do your due dilligence. __BEGIN JOB POST We are a Houston, Texas based company in need of 1-2 VERY GOOD AND EXPERIENCED PHP programmers for 4-6 weeks to build a new web site.

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
On Fri, 5 Jul 2002, [iso-8859-1] João Paulo Vasconcellos wrote: > I don't feel that. I run a web site with a big deal of traffic, and in speed > and scalability, MySQL is better than PGSQL or Sybase. I know because I tryed > each one of these before getting to MySQL in definitive. Sybase is WAA

Re: [PHP] Checking for a successful login and setting a global flag.

2002-07-08 Thread Pete James
You could also try using Javascript to popup a window when they close the current one, and reset your cookies (and/or destroy your session) in that window. Pete. Kevin Stone wrote: > > Okay sorry for the misunderstanding. You can set the lifetime of the cookie > to die when the browser window

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
> PostgreSQL also has a number of things that it lacks when compared to MySQL. > For example, it does not support unsigned integers, which forces you to use > int8 to store timestamps, which will eventually reach 4.2 billion. In case Is there a reason you can't use the timestamp data type? It's

[PHP] Re: Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Philip Hallstrom
> > How many here feel PostgreSQL has surpassed MySQL as the better backend for > > PHP? This would be based on performance (speed, scalability, etc.) and > > features. > > I've been using MySQL/PHP for quite some time. Several months ago, I > wanted to port a project over to PostgreSQL. I foun

Re: [PHP] Checking for a successful login and setting a globalflag.

2002-07-08 Thread Martin Clifford
No need to open a new window to reset the cookies. Just have a function that is trigged onunload(). Martin >>> Pete James <[EMAIL PROTECTED]> 07/08/02 03:18PM >>> You could also try using Javascript to popup a window when they close the current one, and reset your cookies (and/or destroy your

[PHP] storing data from multi-line text boxes into mysql

2002-07-08 Thread Phil Schwarzmann
I want to store user inputed data from a HTML multi-line text box into a mysql database. But unfortunately, it doesn't remember any of the hard returnsis there a painless why to do this? Thanks!

Re: [PHP] storing data from multi-line text boxes into mysql

2002-07-08 Thread Kevin Stone
nl2br(); http://www.php.net/manual/en/function.nl2br.php Switch beween Unix and HTML line breaks. -Kevin - Original Message - From: "Phil Schwarzmann" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 1:29 PM Subject: [PHP] storing data from multi-line text boxes i

[PHP] GD Lib

2002-07-08 Thread Yang
Hi there; I installed Apache2.0.39 and PHP4.2.1 on RedHat Linux 7.2. The installation procedure is fine. The php installation inlcude gd and some extension, but I can't find the php-gd.so on my computer. Anybody can help? Yang -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] storing data from multi-line text boxes into mysql

2002-07-08 Thread Brendan P. Caulfield
try nl2br() http://www.php.net/manual/en/function.nl2br.php -brendan > I want to store user inputed data from a HTML multi-line text box into a > mysql database. But unfortunately, it doesn't remember any of the hard > returnsis there a painless why to do this? > > Thanks! -- PHP Gene

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread jepadilla
I more or less figured that. below is the code for the two pages in question. Page 1: Borrowers "; echo "Name"; echo ""; echo ""; echo "Phone"; echo ""; echo ""; echo "Address"; echo ""; echo ""; echo "Admin"; echo ""; echo ""; if($users) while($row=mysql_fetch_ro

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Kevin Stone
$_SESSION['currentbid'] isn't available until you do session_start(); session_start(); unset($_SESSION['currentbid']); Or is this what does connect.inc contains? -Kevin - Original Message - From: [EMAIL PROTECTED] To: Kevin Stone Cc: [EMAIL PROTECTED] Sent: Monday, July 0

Re: [PHP] don't want to receive but email please

2002-07-08 Thread Cal Evans
only if user stupidity can be considered a virus. =C= - Original Message - From: "Lazor, Ed" <[EMAIL PROTECTED]> To: "PHP List" <[EMAIL PROTECTED]> Sent: Monday, July 08, 2002 11:37 AM Subject: RE: [PHP] don't want to receive but email please > So is this a new virus? > > -Origi

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread jepadilla
Sorry about that I should have been more detailed. session_start() and all of my session_register() calls happen on login.php here is a sample session_register call. session_register("currentbid"); I am under the impression that I only need one session register call. Jed "Kevin Stone" <[EM

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Kevin Stone
I fear you're missing something fundemental here. The active session needs to be requested for each script. So session_start() needs to be called at the top of each script (or at least before any output). Example.. page 1 -- page 2 - - Original Message - From

[PHP] Difference between executable and Apache server

2002-07-08 Thread Jay Blanchard
Good afternoon, We have some cases where we run PHP as a standalone executable for scripting certain processes that can be called from CRON, and we also have PHP for Apache. Does the php.ini affect both? Specifically script times? Thanks! Jay -- PHP General Mailing List (http://www.php.net/

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread jepadilla
/me feels kinda dumb now. Well even after adding session_start to my connect.inc, it doesn't work. I only need to do session_register() once correct? Or do I need to do that everytime I do session start? If I have to do it everytime then what is the point of sessions? Jed "Kevin Stone

[PHP] PHP Script Speed

2002-07-08 Thread Crane, Christopher
I have a question on speed but also dealing with the method of scripting. I have a few pages where I get things like weather and stocks. I get the data, which is usually in the form of a Comma delimited string like the stock quotes from Yahoo.com. In the past, I also wrote a function to get the da

Re: [PHP] UNSETing Session Variables

2002-07-08 Thread Martin Clifford
You only have to register the session variables once. If you need to register the same variables again (such as for a different user), then you should use session_destroy() before registering the variables again. The variables should be available throughout your pages as long as session_start(

[PHP] Re: PHP Script Speed

2002-07-08 Thread Peter
I understand what you're getting at, I'm not sure of the answer though. I know it would stop you using FrontPage or Dreamweaver but if for example you had Index page"; print "Current: $_Current"; print "Percent Change: $_ChangePercent"; print ""; ?> You'd eliminate that problem. "Christopher Cra

[PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Peter
On my system, the PHP executeable looks for the PHP.INI file in the same directory as the executeable, whereas the Apache module uses the one in my C:\WINDOWS directory. Are you using Windows? Due to this, I suppose you can have two different PHP setups if you wanted. "Jay Blanchard" <[EMAIL PROT

RE: [PHP] is their a jobs mailing list?

2002-07-08 Thread César Aracena
The only problem I see if projects are thrown to developers, is that the beginners will have less work... maybe it would be a good idea to divide it into two categories: 1) Developers for hire (local & foreign) 2) Projects to Develop (Interested developers *BID* at them) C. > -Original Me

RE: [PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Jay Blanchard
Nope, not Windows, Linux and FreeBSD -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 11:44 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: Difference between executable and Apache server On my system, the PHP executeable looks for the PHP.INI file in th

Re: [PHP] Editing Word Documents

2002-07-08 Thread Joshua Alexander
It sounds like a job for WebDAV to me... -Josh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Pete James
I also would like to hear the answer to this... I try set_time_limit(3600), but my script still appears to time out early Jay Blanchard wrote: > > Good afternoon, > > We have some cases where we run PHP as a standalone executable for scripting > certain processes that can be called from CRON,

[PHP] Re: Difference between executable and Apache server

2002-07-08 Thread Peter
I'm not too familiar with Linux systems. See if there are two copies of your PHP.ini file. One might be in the conf directory and the other in the PHP directory. Make modifications to one and see what effect it has-have a fiddle! "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">new

Re: [PHP] is their a jobs mailing list?

2002-07-08 Thread Peter
I think a mailing list would be a good idea, but the job's always going to be awarded to the best person, and companies are more likely to go with someone experienced than someone cheap :o( "César aracena" <[EMAIL PROTECTED]> wrote in message 003401c226c0$8dc3a220$2fed0dd1@gateway">news:003401c2

RE: [PHP] is their a jobs mailing list?

2002-07-08 Thread César Aracena
Well, if someone offers his/her services lets say in Panama and it's the only one there, a Company in Panama will try to talk to this person first... Not the same as in New York City I guess, but it can give work to many unknown people from across the street... right? C. > -Original Message-

[PHP] storing an array in mysql - what's the best data type?

2002-07-08 Thread Steven Jarvis
I have an array that I want to store in a field of a mysql db. I've got it set as type text currently, but when I retrieve it, I can't get the arrary to parse. If I look at the listings in the mysql cli, it just says "Array" for that field. Here's my retrieval code: $storyid = $_REQUEST['storyi

[PHP] Re: GD Lib

2002-07-08 Thread Norman Zhang
Check out http://rpmfind.net/linux/rpm2html/search.php?query=php-gd&submit=Search+...&; system=&arch= "Yang" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > can't find the php-gd.so on my computer. > -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] Difference between executable and Apache server

2002-07-08 Thread Chris Wesley
On Mon, 8 Jul 2002, Jay Blanchard wrote: > We have some cases where we run PHP as a standalone executable for scripting > certain processes that can be called from CRON, and we also have PHP for > Apache. Does the php.ini affect both? Specifically script times? Check the output of phpinfo() for

Re: [PHP] storing an array in mysql - what's the best data type?

2002-07-08 Thread Kevin Stone
You can store arrays as strings with.. $str = serialize($ary); .. and turn a serialized string back into an array with.. $ary = unserialize($str); The string can be stored in either a TEXT or TINYTEXT field. Is this what you wanted to know? I had trouble following your code after the

[PHP] PHP and Object-Orientated Programming

2002-07-08 Thread CM
I have a medium sized project that I'm started in PHP and mySQL. I think an object-orientated approach may be the best to reduce the amount of code. My question is if I'm using PHP should I even try to do it an object-orientated manner. I've seen some posts that say that doing it this way will r

[PHP] Re: [PHP-DB] PDF

2002-07-08 Thread Peter Janett
I needed to create invoices, one per page, that could be printed, and chose to use http://www.fpdf.org/. It was easy to take my HTML formated output and change it to PDF. HTH, Peter Janett New Media One Web Services New Upgrades Are Now Live!!! Windows 2000 acc

Re: [PHP] PHP and Object-Orientated Programming

2002-07-08 Thread Jerome Houston
oh, mucho disagree-o. i dunno, maybe the people who say that it will slow you down have HUGE projects, and HUGE classes with hundreds of member variables, but i use OO for all the DB interactions (i have a class with get, update, insert, delete methods, etc. for each table) and i think it work

RE: [PHP] Linked drop down selection lists and dynamically generated links

2002-07-08 Thread Lazor, Ed
The only problem is that this page isn't completely dynamic. For example, column #3 should automatically update when column #2 changes. Plus, imagine what happens when the page and the form both become more complex. I guess I'm just spouting off my opinion that Javascript is the easier solution

Re: [PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Chris Shiflett
Stefen, There is no built-in way to do what you are speaking about here (that I know of), but there is a pretty easy technique. However, even this requires a lot of work to integrate into your existing code, but it will ease all future additions and maintenance. Keep a variable called somethi

Re: [PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Chris Shiflett
I made an error in my explanation (below). The reason you don't want to include the query string separator character in your variable is to allow flexibility with the types of URLs you can easily integrate this in with. My example should have looked like this: http://www.site3.com/?">Site 3 T

RE: [PHP] Survey: MySQL vs PostgreSQL for PHP

2002-07-08 Thread Lazor, Ed
Thanks to everyone who contributed on this thread. It proved to be very informative and enjoyable. -Ed This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain in

[PHP] Re: [PHP-DB] PDF

2002-07-08 Thread Chris Boget
> > If someone has any idea, please let me know > I would strongly suggest that you use a PDF class of some sort. There're > quite a few available. I've had good results with pc4p. Typically, most PDF classes require that it be working from some sort of static template. If that is fine, then def

[PHP] Re: Storing images in MySQL bad idea, performance-wise?

2002-07-08 Thread Andy
if the images are not to big I would recommend saving them to blobs. It saves you a lot of work, since you have to think about lots of stuff. Even a garbage collector should be programmed since there is not a transaction possibility between FS and DB. Andy "René fournier" <[EMAIL PROTECTED]>

Re: [PHP] Storing images in MySQL bad idea, performance-wise?

2002-07-08 Thread Analysis & Solutions
On Mon, Jul 08, 2002 at 04:34:20PM -0600, René Fournier wrote: > > Do I store all such images in the DB? (Which I understand reduces > performance.) You can, but it's a pain and inefficient. > Or do I--somehow--store the images as files on the client's web server? > And if so, how? (Because

[PHP] HELP !!! : Sablotron and not good HTML

2002-07-08 Thread Markas
Sablotron seems not to like, when in my xsl file occurs "not good" html, like (without closing tag), so how can I deal with this problem?!!! Checking and fixing all my HTML , which I want to use in XSL is not the way for me..., so I really HAVE to produce bad "not XML like" HTML, so I'll have to

Re: [PHP] HTTPS vs. HTTP ?

2002-07-08 Thread Richard Lynch
>>>How do you know their certificate hasn't been stolen, and they haven't even >figured it out yet? How do you know they were trustworthy people in the >first place?<< > >Why do you ASSUME that they're NOT trustworthy people? Do you go through >your entire life in that shell? Everybody gets a

Re: [PHP] Re: Help needed with hexdec();

2002-07-08 Thread Richard Lynch
>I wrote a less-limited hex2dec function years ago, and threw it up on >Sklar, >or, uhhh, the *other* PHP code repository. There were really only two, >back >then... :-) Another option would be the BC Math package which will let you compute arbitrarily large numbers, albeit a bit slower. Just h

Re: [PHP] HELP !!! : Sablotron and not good HTML

2002-07-08 Thread Michael Sweeney
The way out is to write standards compliant markup (meaning 'good' HTML). Read the RFCs, use a validator, Sablotron will stop complaining. (eg: ) <- (note method to close an image tag) ..mike.. On Mon, 2002-07-08 at 16:52, Markas wrote: > Sablotron seems not to like, when in my xsl file occurs

Re: [PHP] HTTPS vs. HTTP ?

2002-07-08 Thread Analysis & Solutions
Folks: Allow me to emphasize Richard's point about not trusting certificate authorities. I have an SSL certificate. It was fairly simple to get, despite several discrepancies in my documentation. While it made things easier for me, which I'm thankful for. Fortunately, I'm a legitimate opera

[PHP] Re: PHP Script Speed

2002-07-08 Thread Christopher J. Crane
I use to do it that way, but i like to be able to see it in Dreamweaver for more control, not so much Frontpage, I don't know how to use front page. I hope someone helps me figure this out. "Peter" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I understand w

Re: [PHP] storing an array in mysql - what's the best data type?

2002-07-08 Thread Analysis & Solutions
On Mon, Jul 08, 2002 at 04:23:08PM -0500, Steven Jarvis wrote: > > $row = mysql_fetch_array($results); > while ($element = each($row)) Nay! Combine those two rows into this: while ($element = mysql_fetch_array($results) ) { --Dan -- PHP classes that make we

[PHP] tree structures

2002-07-08 Thread Alexander Ross
I am creating a message board (pretty standard) using php and mysql. In order to manage all the posts and replies I am using a treenode structure (so that I can recursively add, delete, display, etc...) Everything works so far (www.bleen.net/forum). I want to be able to display 10 posts (includi

[PHP] help pls..

2002-07-08 Thread Peter
howdy all my aim is to have a user submit a form and then from there replace cell colours with in a table. I'm referencing the cells by cell id's eg id="ph1">1 id="ph2">2 id="ph3">3 id="ph4">4 now using a switch st

[PHP] Storing images in MySQL bad idea, performance-wise?

2002-07-08 Thread René Fournier
I'm working on a simple content management system that uses PHP and MySQL for updating a web site's text (stored in a MySQL database). (The PHP scripts that do the updating (my stuf) live on one web server, the actual DB data to be updated (my client's stuff) live on another.) So far, I've onl

[PHP] Re: Storing images in MySQL bad idea, performance-wise?

2002-07-08 Thread Gerald R. Jensen
Rene: I think a good deal depends on the size of the image files themselves. There are a number of apps that store small files (i.e.: icons, small gif's, etc.), which seems to make sense. Larger files may be problematic. There was quite a discussion on this issue here just last week ... do a sea

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Justin French
I'm a firm believer in option 1. 750,000 page views per month is only 1 page every 3.4 seconds (ish) on average, so I don't believe you'd see any server load even in peak periods. If there IS server load, you can have an option 3, which basically combines option 1 and 2. Keep the raw article da

Re: [PHP] HTTPS vs. HTTP ?

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Analysis & Solutions wrote: > Allow me to emphasize Richard's point about not trusting certificate > authorities. I have an SSL certificate. It was fairly simple to get, > despite several discrepancies in my documentation. > > While it made things easier for me, which I'm

[PHP] HTML Get POST forms

2002-07-08 Thread Varsha Agarwal
Hi, I want to create a simple form and reteive the data and print it. I have done the following in Foo.php. *Name: *Email : Note: * fields are necessary. The browser gives me error that undefined index 'usename'. Can anyone tell me what could be wrong as i am very new to HTM

Re: [PHP] HTML Get POST forms

2002-07-08 Thread Analysis & Solutions
On Mon, Jul 08, 2002 at 08:06:27PM -0700, Varsha Agarwal wrote: > > The browser gives me error that undefined index > 'usename'. Can anyone tell me what could be wrong as i > am very new to HTML and PHP. I'll bet this is happening the first time you view the page. That's happening because you

Re: [PHP] HTML Get POST forms

2002-07-08 Thread Jason Wong
Varsha Agarwal said: > Hi, > I want to create a simple form and reteive the data > and print it. I have done the following in Foo.php. > > > *Name: > *Email : > > > Note: * fields are necessary. >print $_POST[ 'username' ]; > print $_REQUEST[ 'username' ]; > >

Re: [PHP] Best Content Management METHOD...

2002-07-08 Thread Peter J. Schoenster
On 9 Jul 2002 at 11:54, Justin French wrote: > I'm a firm believer in option 1. 750,000 page views per month is only > 1 page every 3.4 seconds (ish) on average, so I don't believe you'd > see any server load even in peak periods. > > If there IS server load, you can have an option 3, which bas

[PHP] Stripslashes help

2002-07-08 Thread Chris Kay
I have a script which emails users from a website form, I have just run the script and got the following in the email A worm of many subjects \\\"The Klez\\\" worm arrives in an e-mail message with one of 120 possible subject lines. There are 18 different standard subject headings, including \\

[PHP] my PHP scripts hangs over a simple error

2002-07-08 Thread Joseph Szobody
Folks: I just setup a Redhat/Apache/PHP box for testing purposes as I develop some PHP websites. The weird thing, is that the server takes FOREVER to respond when I make a very simple error in the code. On other servers it comes up with a 'Parse Error' message immediately, but not so with this

[PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
I am hoping that someone can help can japanese user input into my pgsql database ... I am still having trouble but am sure it is a simple thing; something about mbstring probably. I tried to directly insert user input into my DB but I got the following error: Warning: PostgreSQL query failed:

Re: [PHP] Stripslashes help

2002-07-08 Thread Chris Shiflett
Chris (nice name), Chris Kay wrote: >A worm of many subjects \\\"The Klez\\\" worm arrives in an e-mail > Anytime you see three backslashes in a row, the likely case is the addslashes() has been performed twice. For example, the following two iterations: 1. "The Klez" -> \"The Klez\" 2. \"Th

Re: [PHP] is their a jobs mailing list?

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Peter wrote: > I think a mailing list would be ... I think the basic question is WHERE this thing will be. HOW it works becomes a secondary decision, once you know whether it makes sense to spend time on the project or not. IF php.net wants to add up a job-oriented location this makes

Re: [PHP] $_REQUEST???

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Scott Fletcher wrote: > Can the $_REQUEST be trusted?? The documentation said it is the combination > of $_GET, $_POST, $_COOKIE & $_FILE. If the PHPSESSID is found in > $_REQUEST, I can tell it is from $_COOKIE. I wonder if the PHPSESSID can be > stored into $_REQUEST if hte $_COOKIE

RE: [PHP] Stripslashes help

2002-07-08 Thread Martin Towell
Chris (or should I be addressing Chris :) ) Chris S - I think you're confusing stripslashes w/ addslashes, but everything else I'm an agreement w/. Chris K - Somewhere you've got addslashes twice. As mentioned, one of those might be in your php.ini file. That's why you need to stripslashes() tw

[PHP] if statement

2002-07-08 Thread rdkurth
Is it possible to do something like this all on one line. What I need is if any one of these are true then run the script if($type=="test1")or($type=="test2")or($type=="test3"){ -- Best regards, rdkurth mailto:[EMAIL PROTECTED] -- PHP General Mailing List (http

[PHP] Re: if statement

2002-07-08 Thread Joseph Szobody
try this: if($type=="test1" || $type=="test2" || $type=="test3"){ Joseph <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Is it possible to do something like this all on one line. > What I need is if any one of these are true then run the script > > if($ty

RE: [PHP] if statement

2002-07-08 Thread Martin Towell
You can do this: if ($type == "test1" || $type == "test2" || $type == "test3") { or, what I prefer in this case if (in_array($type, array("test1", "test2", "test3"))) { Martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 2:11 PM To

Re[2]: [PHP] if statement

2002-07-08 Thread rdkurth
Hello Martin, Thanks the array worked just perfect. Where do you find stuff like this I looked all over the manual and could not find anything that told me how to do this. Monday, July 08, 2002, 9:01:44 PM, you wrote: MT> You can do this: MT> if ($type == "test1" || $type == "test2" || $type =

[PHP] Re: Best Content Management METHOD...

2002-07-08 Thread Philip Hallstrom
> If there IS server load, you can have an option 3, which basically combines > option 1 and 2. Keep the raw article data in a database which is there > forever. Then run a program which batch-creates 'HTML' pages from templates > and the database, and publish a static website (as per option 2).

Re: [PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Stefen Lars
Hello Chris And thank you for your comments and suggestions. I think that the solution you offer is a great idea. However, in my case, I may not be able to implement it as I, as the webmaster, do not always get the chance to add ‘$next_query_string’ to the a href. Some of the cross-site links

RE: Re[2]: [PHP] if statement

2002-07-08 Thread Martin Towell
I was looking for a similar functionality to Pascal's "in" statement and when I looked at someone's code one day and saw this in_array() thing and thought, "Aha! That's how you do it!" and ever since I've made good use of it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTE

Re: [PHP] Stripslashes help

2002-07-08 Thread Chris Shiflett
Martin Towell wrote: >Chris S - I think you're confusing stripslashes w/ addslashes, but >everything else I'm an agreement w/. > You're absolutely right. *blush* Chris K - Ignore my last paragraph, and everything else should make at least partial sense. :-) Ignore this: >Well, here's where y

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Warning: PostgreSQL query failed: ERROR: Invalid EUC_JP character > sequence found (0x8140) in /www/htdocs/test.php on line 31 > > So I assumed that I should first convert user input into EUC-JP. Now, let's make sure we have a clear background: 1)

Re: [PHP] Cross-Site Sesison ID Propagation

2002-07-08 Thread Chris Shiflett
Stefen Lars wrote: > I think that the solution you offer is a great idea. However, in my > case, I may not be able to implement it as I, as the webmaster, do not > always get the chance to add '$next_query_string' to the a href. Some > of the cross-site links are added to discussion forums by

[PHP] Zip Problem

2002-07-08 Thread Mathew Joseph
Hi There, I am trying to incorporate zipping and unzipping files on a windows platform via PHP. I came across ZZiplib but wasnt able to find any information with regard to windows installation. Is there anyone who has tried something similar ? If yes, could you give me installation deta

[PHP] Re: Time to Calculate Time

2002-07-08 Thread Lord Loh.
"; $i=0; do{ $i++; }while($i<=100); $stop=getmicrotime(); $difference=($stop-$start)/3600; echo $start."".$stop."".$difference." Hours"; ?> Does this help... - Lord Loh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Session data not being deleted on browser close.

2002-07-08 Thread Youngie
Why would my session data not be deleted after my browser is closed? I can set some session variables, close my browser, reopen them and the old values are still present, I can verify this by seeing that the file still containts my session data and values. Thanks John. -- PHP General Mailin

[PHP] Re: PHP and Object-Orientated Programming

2002-07-08 Thread Manuel Lemos
Hello, On 07/08/2002 06:56 PM, Cm wrote: > I have a medium sized project that I'm started in PHP and mySQL. I think an > object-orientated approach may be the best to reduce the amount of code. > My question is if I'm using PHP should I even try to do it an > object-orientated manner. I've seen

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! As for deciding what your user language/charset requests are (in terms of his/her browser settings) you might use this function // this function remains unchanged. It returns an array // 0 : negotiated charset // 1 : negotiated lancode function negotiated_langset()

Re: [PHP] Re: PHP and Object-Orientated Programming

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Manuel Lemos wrote: > Hello, > > On 07/08/2002 06:56 PM, Cm wrote: > >> I have a medium sized project that I'm started in PHP and mySQL. I >> think an >> object-orientated approach may be the best to reduce the amount of code. >> My question is if I'm using PHP should I even try to do

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Jean-Christian Imbeault
Thanks for the ideas Alberto but what I relly want is to understand how to use the mbstring library, not how to implement a new solution. mbstring is supposed to do everything I want, I guess I am just not quite understanding how to use it yet. Also in regard to some things you said, > Now, l

Re: [PHP] Cannot start Apache

2002-07-08 Thread Alexander Skwar
So sprach Alexander Skwar am 2002-07-08 um 10:11:16 +0200 : > I thought that I had PHP 4.2.1 compiled just fine on SuSE 7.2, > however when I start Apache 1.3.19, it seg faults. I've now found out, that this was caused by --with-recode. When I compile PHP like I did but don't use recode, it wor

Re: [PHP] mbstring: Japanese conversion not working for me

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Impossible, though it would be nice. Postgres can only accept one > charset for it's input not multiple. I hope you mean one charset per language. Otherwise I can just cancel POstgres from my list of usable engines. But yes, it can't be just one. >> *c

<    1   2   3   >