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

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! > Can you explain that SPAN thing a bit more. You said to use: > > your text > > I can understand the charset param but what is the lang param used for? Basically it might even be useless. But id does not harm to use it. Like this: this text uses the header charset language setti

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

2002-07-08 Thread Markas
But how with the case when I need xml like tag for some reason, but which in fact is NOT an xml/html tag, and generally the output doc is not xml/html document. but I just need this constructtion <...> or any of these symbols??? Or you mean that XSL is only capable of generating another (and the o

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

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: > > Now THAT'S NEWS! :) Tell me about it! > Okay, just put the SPAN thing around your different > output sections and you'll be able to check both in and out on the same > page :) Can you explain that SPAN thing a bit more. You said to use: your text I can underst

[PHP] problem with ftp_put/upload files

2002-07-08 Thread jusob
Hello I would like to create a php script to upload file. With the POST method, I can't upload files whose size are more than 1 Mo (but my php.ini should allow up to 30 Mo, and the hidden field MAX_FILE_SIZE too!). So, I use a ftp connection to upload. But I have always the same error: Warning: e

Re: [PHP] Re: Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: > > That was my first idea, yes. Normalizing to utf and get read of whatever > trouble might lie on the way. Then I read on the MBlib docs that > japanase chars may take up to 6 byte each, and that would hardly fit > into a utf-16 format. True but I think that is for an

[PHP] imagecopyresized() problems

2002-07-08 Thread Lance Earl
I am trying to create a piece of code that will create and display thumbnail image. When trying to send the image to a browser, I see binary data rather then an image. You can see the problem at www.dallypost.com/a/test.php The troubled cose for this page follows: "); if(file_exists($master_ima

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

2002-07-08 Thread Philip Olson
> 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. A good way to learn this sorta thing is with experience. The more you learn and understand, the easier it is to write your own usef

Re: [PHP] Re: Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Don't know the answer to your question exactly but how about > transforming all user input into something like unicode/UTF-8 (or > UTF-16) and *then* putting it into the DB? > > That way all the DB input has the same charset. That was my first idea, ye

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

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Found my problem.There was no problem. I was trying to test my code by > displaying the INPUT and OUTPUT in a web browser. I forgot to realize > that my input and oupts were in different encodings. > Now THAT'S NEWS! :) Okay, just put the SPAN thing arou

[PHP] Re: Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Jean-Christian Imbeault
Don't know the answer to your question exactly but how about transforming all user input into something like unicode/UTF-8 (or UTF-16) and *then* putting it into the DB? That way all the DB input has the same charset. Jc Alberto Serra wrote: > ðÒÉ×ÅÔ! > > Jean-Christian Imbeault wrote: > >

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

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Worry and worry a lot ... I already do :( The most terrorizing thing is that desolating "There are no user contributed notes for this page." that appears almost on every function in the online manual. And the fact that there is no pointer for people in

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

2002-07-08 Thread Jean-Christian Imbeault
Found my problem.$B!!(BThere was no problem. I was trying to test my code by displaying the INPUT and OUTPUT in a web browser. I forgot to realize that my input and oupts were in different encodings. The browser can only display one encoding charset so of course either the input or the output st

[PHP] Postgres and chinese, korean, japanese charsets

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! Jean-Christian Imbeault wrote: > Alberto Serra wrote: >> 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. > > I'm no pgsql expert but I think that yes, it will only accept input in > one cha

[PHP] RE: [PHP-DB] Session data not being deleted on browser close.

2002-07-08 Thread Beau Lebens
have you closed all browser windows? eg. if you open your browser, then spawn a new window (ctrl-n or similar) then do something with one of them which creates session vars, then close that window, then open a new one again, the session has probably remained active because the first window was st

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

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: > > I'll be extending an existing content-repository > to add chinese text management in the winter so I'll better start to > worry about it. Worry and worry a lot ... > As for your problem, I am afraid you would better turn to a japanese > programmers' mailing list.

Re: [PHP] Editing Word Documents

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, David Russell wrote: > I have just had a request about editing Word Documents... > > I have an intranet, which provides access to, amongst others, Word > Documents about policies, etc. What the guys are looking for is a way to > do the following: > > 1. Show a list of files

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

2002-07-08 Thread Jean-Christian Imbeault
Alberto Serra wrote: > > 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. I'm no pgsql expert but I think that yes, it will only accept input in one charset. But for charsets that use only 8-bits I

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

2002-07-08 Thread Alberto Serra
ðÒÉ×ÅÔ! > Jean-Christian Imbeault wrote: >> My page is always in the same charset, the problem is that the user >> input might not be ... Okay, I went thru a bit of docs on the japanese multibyte problem and got some surface understanding of the problem. Yes, since char dimensions are going to

Re: [PHP] PHP Script Speed

2002-07-08 Thread Miguel Cruz
On Mon, 8 Jul 2002, Crane, Christopher wrote: > I hope I am explaining this well enough to understand. Doing it the newer > way for me with the global variables makes it easier to design the web page, > but I am wondering if it is at the cost of a slower page loading. The reason > I think this is

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

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 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] 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 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()

[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

[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: 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] 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

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

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] 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: 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] 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

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

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

[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

[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

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

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] 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] 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

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

[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] 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 \\

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

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] 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

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

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

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

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] 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

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

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] 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] 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

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

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] 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] 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] 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

[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

[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

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

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

[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

[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

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-

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

[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

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

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

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] 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

[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

[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

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] 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 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] 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 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

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] 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 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] 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] 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

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

  1   2   3   >