[PHP] question about taking post to session

2002-09-20 Thread Randy Johnson
hello, how could i take all the variables in $_POST[""] and move them to $_SESSION[""]? example $_POST["name"]=$_SESSION["name"] Thanks in advance Randy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploading problem

2002-09-20 Thread Chris Shiflett
Ramesh, Images are not in HTML. Rather, they are only referenced in HTML. So, if you are reading the file, the references to the images need to still be valid. Consider this: If this is in HTML located at http://www.example.org/, then it means (if the image shows up) there is an image at:

[PHP] Uploading problem

2002-09-20 Thread Ramesh Nagendra Pillai
Hai all I had developed an application which uploads html files to the server. My problem is after uploading HTML files with images I tried to view it with read file function, I am not getting the images in the HTML file, I am using all php file uploading functiond for uploading, Please tell me

Re: [PHP] Re: session & cookies

2002-09-20 Thread Chris Shiflett
You've already posted this, and you never answered the questions that were asked. Thus, your question is every bit as unclear as the previous time. Perhaps if you put forth a little effort, we might also. Just a helpful suggestion, Chris Jeff Bluemel wrote: >still looking for some solutions

[PHP] Re: session & cookies

2002-09-20 Thread Jeff Bluemel
still looking for some solutions on this - anybody else have any suggestions? "Jeff Bluemel" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > OK guys... > > here's my question - I'm using 4.2.3 and apache 1.3.26, and I've got > sessions setup. however, it seem

Re: [PHP] Attack of the ghost double slash??

2002-09-20 Thread Chris Shiflett
Gerard, The most likely reason is a php.ini configuration called magic_quotes. When enabled, PHP will automatically add slashes to single and double quotes, as well as slashes themselves (to escape them). This is helpful in some environments to help protect against attacks that can be used to

[PHP] Attack of the ghost double slash??

2002-09-20 Thread Gerard Samuel
A few months ago, I wrote a bit of code to stripslash() "PATH_TRANSLATED" on a w2k box, because, php was reporting it with double slashes like C:\\winnt\\some_dir Today I noticed that the code is broken because PATH_TRANSLATED is now reported with one slash like C:\winnt\some_dir Does anyone kn

Re: [PHP] Date Time

2002-09-20 Thread Sascha Cunz
You have to add (or subtract) 28800 seconds to/from current time and use this as the 2nd input to date. echo date("Y-m-j", strtotime("now") + 28800); Sascha > Hi,, > > my server is located in the US and i live in Sweden, so when i try to run > the following command i get a 8hour diffrence,, an

[PHP] Re: Dynamic HTML Email

2002-09-20 Thread Joseph Szobody
Mike, Here is how I send an HTML e-mail. Say I have a contact form with the values $name, $email, and $message. The form submits to say. process.php. Contact Us Submitted $date Name: $name E-mail address $email     Message: $me

Re: [PHP] Date Time

2002-09-20 Thread Tom Rogers
Hi, Saturday, September 21, 2002, 12:30:48 PM, you wrote: P> Hi,, P> my server is located in the US and i live in Sweden, so when i try to run P> the following command i get a 8hour diffrence,, anyone got any idea of how P> to solve this? P> date("Y-m-j") P> regards P> Patrick A quick fi

[PHP] Date Time

2002-09-20 Thread Patrick
Hi,, my server is located in the US and i live in Sweden, so when i try to run the following command i get a 8hour diffrence,, anyone got any idea of how to solve this? date("Y-m-j") regards Patrick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

Re: [PHP] my i ramble for a while?

2002-09-20 Thread Justin French
If *I* were publishing data for others to USE in their own web sites (often called a web service), I'd make the data available in one of a few ways: - raw text -- let them format it as they see fit - CSV a simple CSV file can hold a wealth of information, and it is easy for the receiver to munch

Re: [PHP] Re: java in php4 on debian testing distribution?

2002-09-20 Thread Sascha Cunz
> I sincerely believe that the problem lies in my php installation, not in > my java installation, which is why I'm asking whether the debian php4 > package in the testing distribution, which is more specifically > PHP/4.1.2 according to X-Powered-By in phpinfo(), has java support > compiled in, w

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Sascha Cunz
> what he really needs is to completely remove ..., plus > many many other examples. > > completely removing everything outside the body would be another option, > perhaps saving the contents of ... since a

[PHP] Re: java in php4 on debian testing distribution?

2002-09-20 Thread Monique Y. Herman
I have java 1.4 installed, and I've put it in /usr/local/sun-j2sdk1.4.1 -- that's why I use the ini_set() method. I've compiled and run apps using this java installation, so I'm pretty sure all is kosher there. I sincerely believe that the problem lies in my php installation, not in my java ins

[PHP] Re: All Queries TRUE even when they should be FALSE

2002-09-20 Thread B.C. Lance
you should use mysql_num_rows() to check for records returned instead of using mysql_query(). this is because if $query is a valid $sql statement, mysql_query() will always return a resource link. which evaluates to true. so this will work for you: if (mysql_num_rows($result)) echo "record

Re: [PHP] Why isn't there much info on apache2?

2002-09-20 Thread Rick Widmer
At 11:35 AM 9/20/02 -0400, pierre.samson wrote: >Well, I'm in no hurry, so I'll try to make it work. >It just seemed to me that with ssl and mpm's incorporated it worth the >upgrade. From today's Apache week newsletter: "the Apache 2.0 interface is still undergoing steady change, " Don't ex

[PHP] Re: All Queries TRUE even when they should be FALSE

2002-09-20 Thread Philip Hallstrom
Could be wrong, but the fact that $result isn't empty doesn't mean there are rows... it would be better to say: if ( !empty($result) ) { echo "VALID QUERY"; } else { echo "INVALID QUERY"; } Although you should probably check $result against TRUE and FALSE instead. If you want to know h

RE: [PHP] Reg Exp issue

2002-09-20 Thread Thoenen, Peter Mr. EPS
Not that familiar with MySQL's flavor of RegEx (and the documentation seems to be extremely bad ... or at least I can't seem to find any with casually searching) but have you tried escaping the RegEx special characters? eg REGEXP ('ok\/2.0 \(hah 3\.0; BAM oh 5\.1; \.hi CLR 1\.0\.4725\)'); -Peter

[PHP] All Queries TRUE even when they should be FALSE

2002-09-20 Thread Monty
Even though I have no record in my MySQL DB with that has "005" in the ID field, the following statement always reverts to Record Found, or True, no matter what ID I use. What's wrong? I'm using PHP 4.2.2. Has something changed that makes this work differently? Thanks. $query = "SELECT

[PHP] Reg Exp issue

2002-09-20 Thread Taylor York
Hello, I am trying to find a string in another string with mysql. Normally, this would work. select 'foo' REGEXP ('foo'); And that would simply return 1, since it found it. But, my strings are more complicated than that. One good random example is something like this..Ya i know, its wierd but g

RE: [PHP] Dynamic HTML Email

2002-09-20 Thread Fifield, Mike
$header .= "MIME-Version: 1.0\r\n"; $header .= "Content-Type: text/html; charset=iso-8859-1\r\n"; $header .= "From: $sender_email\r\n"; mail("$rcpt_email", "$subject", "$msg", $header); This works it is what I use. -Original Message- From: Mike Dunlop [mailto:[EMAIL PROTECTED]] Sent

Re: [PHP] Re: MySQL > Access

2002-09-20 Thread Liam MacKenzie
Thanks. That's fine, it's either $55 for this or a couple of hundred to pay someone to do it manually. Go figure ;-) Cheers, Liam - Original Message - From: "M1tch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, September 21, 2002 3:51 AM Subject: [PHP] Re: MySQL > Acces

Re: [PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
Hrmm... Well the base64_* bit would work for the payload, but I'm working with raw sockets (ICMP at the moment) and of course the header needs to be really binary. Are the socket_*() planned on being binary safe in the near future? Anyone do traceroute/ping in PHP yet? Hans --- Evan Nemers

RE: [PHP] Dynamic HTML Email

2002-09-20 Thread Daniel Kushner
Try this class: http://phpclasses.websapp.com/browse.html/package/9.html Regards, Daniel Kushner _ Need hosting? http://thehostingcompany.us > -Original Message- > From: Mike Dunlop [mailto:[EMAIL PROTECTED]] > Sent: Friday, September 20, 2002 4

RE: [PHP] Dynamic HTML Email

2002-09-20 Thread Jesse Cablek
Mike Dunlop scribbled; > > Hello, > > I am wondering how it would be possible to generate an html response > email via a PHP script. I have tried and all that has happened is the > html source code appears in the message body as plain text. I believe > this is happenin

[PHP] Dynamic HTML Email

2002-09-20 Thread Mike Dunlop
Hello, I am wondering how it would be possible to generate an html response email via a PHP script. I have tried and all that has happened is the html source code appears in the message body as plain text. I believe this is happening because the email needs an additional header stating the em

[PHP] How do you stop certain headers from going out?

2002-09-20 Thread Steve Ramage
I'm having problems with headers being sent out that cause generated images to become garbled, Does anypone have any ideas on how to stop certain headers, such as Connection, Keep-Alive and Transfer-Encoding from going out to the browser, or filtering them out of the output? Im running apache 1.3

[PHP] Import & Stamp PDF's

2002-09-20 Thread Miles Thompson
Each evening I distribute a newsletter to approx 500 subscribers, and I want to stamp each copy I send with the name, email address and subscriber number of the recipient. I've not done any programmatic PDF manipulation, but could this be done using PDFlib? I receive the newsletter as a PDF fro

Re: [PHP] Binary Safety and Sockets

2002-09-20 Thread Evan Nemerson
Don't assume either way, especially since sockets are currently experimental. If you're worried it isn't binary safe, you could base64_encode() and base64_decode everything... Extra bandwidth, but at least it will work. On Friday 20 September 2002 10:10, Hans Zaunere wrote: > I'm working with

[PHP] Re: odbc_fetch_row()

2002-09-20 Thread Scott Fletcher
Found the workaround to the problem. It had to be a PHP bug because odbc_fetch_row() should return true if there is 1 row, not false. I also file a PHP bug at bugs.php.net, the bug number is 19528. Here's the workaround I made, I added "$bug_workaround" to the script. --clip-- $cid = odbc_conn

Re: [PHP] array_merge_recursive

2002-09-20 Thread Kevin Stone
Ahh I see what you mean. Yes that doesn't seem right does it. The function is passing the parameters by reference and affecting them as well as the return value. I don't have a solution for this apart from just being conscious of it and setting the unmodified arrays to new variables before using

[PHP] my i ramble for a while?

2002-09-20 Thread Lee Doolan
I am posting this message to the php.general newsgroup because I used php to construct the dynamic portion of our site and because I value the opinions of many people who frequently post here. I hope that this will not be viewed as off-topic --if it is, I will take it elsewhere. At affero we

[PHP] why php4.2.3 caches my pages?

2002-09-20 Thread Raphael Hamzagic
Hi everyone, I'm using php 4.2.3 and putting the code that prevents caching. But this works in php4.1 but in 4.2.3 doesn't. I don't know if this is because I must change some directive in php.ini or if is someone that we can't change in php 4.2.3. Thanks in advance Rapha -- PHP General Mail

[PHP] Re: MySQL > Access

2002-09-20 Thread M1tch
I had the problem a few days ago. Here's some software that makes it easy as clicking a button -> http://www.convert-in.com/sql2acc.htm Be warned though, it's only free to copy table structure. It requires registration to copy data. "Christian Calloway" <[EMAIL PROTECTED]> wrote in message [EM

[PHP] session problem

2002-09-20 Thread yasin inat
can anyone tell me where my false conf. in php.ini ? when i change the page it makes a new session ... instead of the first one ... cannot remember the first session data ... here is my infophp: Session Support enabled Directive Local Value Master Val

[PHP] array_chunk() - use or not use?

2002-09-20 Thread cLeAnEr
Hi! I got this problem getting my uploaded pictures listed in a table 3 by 3. The script below works fine and make a nice listing vetically... Now, how the heck do I script so that I get 3 pictures in a row, in separat colums and adding a new row so next 3 pictures get the same formatting? I lo

[PHP] Binary Safety and Sockets

2002-09-20 Thread Hans Zaunere
I'm working with the socket_* function (--enable-sockets) and have been seeing some wierd issues. I'm guessing it has to do with socket_recvfrom/sendto etc not being binary safe. This is 4.2.3 on FreeBSD 4.6.2. My question is: what functions, specifically socket_* functions, are binary safe?

RE: [PHP] Is php even right for this design?

2002-09-20 Thread John Holmes
> I don't know if this is possible, but in VB (I'd like to find something > similar in php) I would open a record set, and then filter / unfilter it > for > similar issues (in a loop). I'm assuming you could use a similar approach > somehow in php. Seems like a waste of resources. Why not do the

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Robert Cummings
Jeff Bluemel wrote: > > I don't know if this is possible, but in VB (I'd like to find something > similar in php) I would open a record set, and then filter / unfilter it for > similar issues (in a loop). I'm assuming you could use a similar approach > somehow in php. Sounds like a DB issue. Se

Re: [PHP] Is php even right for this design?

2002-09-20 Thread Jeff Bluemel
I don't know if this is possible, but in VB (I'd like to find something similar in php) I would open a record set, and then filter / unfilter it for similar issues (in a loop). I'm assuming you could use a similar approach somehow in php. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message [E

Re: [PHP] array_merge_recursive

2002-09-20 Thread Michiel van Wessem
Hello Kevin, Yes, and that's the good part. The bad part is that $a is affected (try print_r($a)). I don't think it should be. Michiel At 12:41 PM 9/20/2002, Kevin Stone wrote: >Worked fine for me.. >";print_r($r);echo "";?>---Array >( > [k] => Array > ( > [0]

Re: [PHP] array_merge_recursive

2002-09-20 Thread Kevin Stone
Worked fine for me.. ";print_r($r);echo "";?>---Array ( [k] => Array ( [0] => a1 [1] => b1 ) ) ---Access the merged array with with $r['k']; with values at $r['k'][0] and $r['k'][1]. Is this not what you wanted? -Kevin - Original M

Re: [PHP] HTML 2 TEXT

2002-09-20 Thread Justin French
He is going to want to strip stuff *inbetween* tags for example, not just strip the tags themselves...