[PHP] How PHP recover value from another frame?

2003-03-05 Thread M
Hello, I know probably this question already solved, but I couldnt find msgs about. I have page with two frames. frameA is built by frameA.php and frameB is built by frameB.php scripts. Into frameA is form variable named 'varA', frameA.formA.varA.value = 'ok' . I know PHP knows this variable as

[PHP] How retrieve database data from email?

2002-08-15 Thread M
Hello People: I have my pages built in PHP / Mysql, all working ok, but now I need solve a problem I don't know how to solve or even how search about. Case this problem was already discussed in this list, I would be grateful if someone pass to me correct date so I can search about. My problem is

[PHP] How to program very basic chat on PHP?

2002-09-07 Thread M
Hello, this question is about dynamic communication between browsers. I have a site to meet people (PHP/Mysql).These people have their profiles and pictures stored into the site. I would like to make some kind of chat (very single chat), so when people log into system, I can trace their nicknames

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
"Philip J. Newman" wrote: > You could create a scema, or module that is called with each page load, that > checks for messages when the user is logged in. So when the message is > stored into the databace, when the user loads the anypage while logged in it > checks for new messages, and if the u

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
timo stamm wrote: > Hi Mig, > > to create something that behaves more like a true "chat", you > need an active client side. > For example, you could let a frame with the PHP be reloaded in a > short interval. > > To create a real chat, you need a socket connection. The best > solution would be Fl

Re: [PHP] How to program very basic chat on PHP?

2002-09-08 Thread M
Gerhard Hoogterp wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > Hello Phil, your idea is interesting. I am evaluating it because it is not > > a true 'chat' (if user doesnt load any page he will never see incoming > > msg), but your idea is the only thing I have to this time. > >

Re: [PHP] How to program very basic chat on PHP?

2002-09-09 Thread M
Justin French wrote: > An extremely basic chat would be a frame or iframe which has a meta tag > refresh (or javascript refresh) of a plain HTML page every 10-20 seconds. > > As far as the flash stuff goes, have a look at macromedia.com or the 1000's > of flash sites... I'm positive you'll find s

[PHP] Why MySql doesn't free space when erasing BLOB fields?

2003-11-22 Thread M
Hello, sorry this mysql question here, but I cant't answer this one. I have database with BLOB fields to hold pictures (60-90 kb each). Actually I am erasing these BLOB fields (move '' into and update rcord) to free some space from my DB, but space is not released by mysql. I verified BLOB fields

[PHP] About thumbnail functions

2002-02-12 Thread M
From: "Torkil Johnsen" <[EMAIL PROTECTED]> Subject: How do I check GD version? To: <[EMAIL PROTECTED]> Cheers all... This mail got rather long, so here are my 3 questions in a short version: 1) What is GD? (fore use with imagecopyresampled function) 2) How can I run a function that wil

[PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
Hello, I am interested on some info - how do robots work to fill web forms authomatically? Sometimes I notice a blurr code to be manually writen to avoid these robots when filling forms, but I am interested in programm just one of these machines. Is it necessary PHP of another script for this tas

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
"1LT John W. Holmes" wrote: > > You need to get a little more specific. Is this a specific form, or do you > want to be able to post any form? What kind of script is processing the > form? Is it looking for GET or POST data? GET data is as simple as creating > a URL with the nec. fields. POST is

Re: [PHP] How program automatic 'filler forms' robots?

2002-05-15 Thread M
"SHEETS,JASON (Non-HP-Boise,ex1)" wrote: > You need to tell PHP to input the value and you should be using "'s > > example: > > > > This example assumes you are using at least PHP 4.1, also you may use > $_REQUEST instead of $_GET if you are going to be using both GET and POST > methods. > > Jas

[PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Hello, you know all GD functions work via image pointer , which appoints to some file, or else empty image $img_pointer = imagecreatefromjpeg("$image_file_name"); or $img_pointer = imagecreate($width,$height); I have stored lot of images into BLOB Mysql fields, and need recover it to resize. H

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-09 Thread M
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel &g

Re: [PHP] How creat image pointer from JPG/GIF string?

2002-04-10 Thread M
Robert Cummings wrote: > M wrote: > > > > I have stored lot of images into BLOB Mysql fields, and need recover it > > to resize. How can I create some image pointer from string stored into > > BLOB field? > > > > Thanks > > > > Miguel &g

[PHP] Running WML (WAP services) under PHP

2001-12-09 Thread M
Hello, I am trying to develop some WML apps using PHP. To run WML apps into my local Apache (win98) server, I added AddType application/x-httpd-php .wml into httpd.conf. This works ok when calling directly from netscape http://localhost/mywml.wml , treating script like a true PHP program. BUT..

[PHP] Uploading files with on webhostings

2001-12-10 Thread M
Hello, first of all, thanks very much for your answer about WAP and WML php headers. I corrected headers and page works ok now. == Now a question about uploading files (.gif .jpg) using to be stored into Mysql blob fields. I hope somebody here having sites on www.blueboxinternet.co

[PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M
Hello, I posted a question some days ago, but no answers received. I notice many people discussing OPEN_BASEDIR apache restriction here, but all discussion are from server admin point of view. Let me ask question in another way: Is it possible to tell HTTP command the complete path/name into lo

Re: [PHP] OPEN_BASEDIR from user point of view (instead server admin)

2001-12-18 Thread M
Jim Lucas wrote: > php will return you four $vars to work with. > check this out. > http://www.php.net/manual/en/features.file-upload.php > > then work with the tmp file and get done with it what needs to be done > before the script closes cause php will delete the file when the script is > done.

[PHP] passing variables from - to frames

2001-06-26 Thread M
Hello, sorry this question here (it is not true PHP question), but I use some variables into PHP scripts and need pass these variables from one frame to another. I want pass variable values between frames, these definded via input hidden tags into form definition. I have first frame name=framea c

[PHP] RE: Dynamic Thumbnail From Database Solution!

2001-08-01 Thread M
> Subject: Dynamic Thumbnail From Database Solution! > Date: Mon, 23 Jul 2001 17:37:56 -0700 > From: "Jason Bell" <[EMAIL PROTECTED]> > To: "PHP Users" <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > > Using getpic.php in conjuction with the tag can display the fullsize picture. > > Now

[PHP] How to index HTML fields for Javascript and PHP at same time?

2001-09-03 Thread M
Hello, I have table with lot of fields. I need to refer these fields like vector in PHP and Javascript mode. When I write then I can see values in PHP sccript, BUT can't see values in javascript mode, thats to say document.form.myfield[index].value doesnt work. On the other side, when I make I

[PHP] About old msg on attachements using PHP mail function

2001-09-20 Thread M
Hello, regarding old email from [EMAIL PROTECTED] about mail attachements From: py" <[EMAIL PROTECTED]> 21/05/01 08:25 Subject: Re: [PHP] sending attachements with mail To: "Tolga \"thorr\" Orhon" <[EMAIL PROTECTED]> CC: <[EMAIL PROTECTED]> Here is a nice class that handles e-mail attac

[PHP] Javascript document variable names for complex forms

2001-09-24 Thread M
Hello people. First , let me thanks all of you who answered my mime-mail question (special Richard Lynch). Next question (probably not for proper list, but I couldn't get answer, so please sorry me). I have http frame page (classical 'top', 'left' and 'center' frames), then 'center' frame open

[PHP] User IP

2004-08-04 Thread M
How can I get a user's IP who is behind a proxy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Issue when inserting Slovak characters in database via PHP code

2006-11-05 Thread M
The important steps: 1. display the form on utf-8 page: header('Content-Type: text/html; codepage=utf-8'); ... and the same in tag 2. use pg_set_client_encoding('UTF8') after connecting to posgres 3. have your database, tables and rows in UTF8 (you have already) 4. again, when ret

Re: [PHP] Sending UTF-8 mail with mail()

2006-06-13 Thread M
Peter Lauri wrote: How can I send UTF-8 mails with the mail() function. Right now I am doing: mail('[EMAIL PROTECTED]', 'Subject', 'Message', "From: The Sender <[EMAIL PROTECTED]> \n" . "Content-Type: text/plain; charset=utf-8 \n" . "Content-Transfer-Encoding: 7bit\n\n") The message is being

[PHP] How check if URL is running ok before try open it?

2004-02-19 Thread M
Hello, I decided to make a pre-URL caller into my script, so when user try link to another URL, instead show these annoying http errors (when URL off), I could direct him to more user friendly environment. I checked FOPEN($url-name,'R') command, but in some cases it will pop up fire-walls alerts f

[PHP] PHP ImageCreateFrom.. malfunctioning in last PHP releases...

2005-06-12 Thread M
Hello people, I use ImageCreateFromString PHP functions to resize (thumbnails and so) dynamically my JPG images. I use third party WEB hosting provider , so I have no control about new releases and updates of server softwares. I have not changed my images in last 3 years (they are used for virtu

Re: [PHP] whitch class can I read EXCEL .xls file

2005-11-03 Thread M
Manish Marathe wrote: On 11/2/05, bala chandar <[EMAIL PROTECTED]> wrote: Hi, On 11/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Dear all: whitch class can I read EXCEL .xls file I want to read data from a excel's .xls file on Linux use php,please tell me way. There is a phpexce

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: Hi there! File_exists doesn't seem to work with URLs that point to another domain. What to use? $x = fopen(http://www.stammis.com/getstart.php); if file_exists($x) file_exists() takes filename as parameter, not file pointer. besides, spare the one http r

Re: [PHP] FileExists?

2005-11-07 Thread M
Gustav Wiberg wrote: - Original Message - From: "M" <[EMAIL PROTECTED]> To: "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Monday, November 07, 2005 11:12 PM Subject: Re: [PHP] FileExists? Gustav Wiberg wrote: Hi there! File_exists doesn't seem to

Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-08 Thread M
張 峰銘 wrote: > Hello: > > I'm try to design WMV movie upload system im my school. > > when teachers upload the wmv movie to the web , > I hope I can grab the first frame picture of wmv > and save it to a jpeg file. > > Dose any one do that before ? Is is difficult to implement in PHP ? >

Re: [PHP] PEAR on PHP 5+?

2005-11-09 Thread M
Minuk Choi wrote: I can't seem to get pear to work correctly. if I type [/]# pear install DB I get the usage printed out back(no error message, no action) and if I go to the PHP-5.0.4/lib/php directory, I get [PHP-5.0.4/lib/php]# pear install DB Fatal error: Call to undefined function: geto

Re: [PHP] Re: Session's across Domains...

2005-11-09 Thread M
Ben Ramsey wrote: B is a secure page, with a CC info form that when submitted will process their card, charging the amount of money passed in the encrypted packet, and if the charge succeeds, redirecting back to A. A would probably need to send an order number to B, and B could pass that back

Re: [PHP] Unable to send variables to MySQL table

2005-11-09 Thread M
Stewart Priest wrote: What is the structure of that table? +---+--+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | +---+--+--+-+-+---+ | invoice_no| int(10) | YES |

Re: [PHP] Re: Select and $_POST

2005-11-10 Thread M
Chris Shiflett wrote: Ben Ramsey wrote: $clean = array(); $sql = array(); Glad to see someone spreading this habit. :-) Thanks, Ben. if (ctype_alnum($_POST['pass'])) { $clean['pass'] = $_POST['pass']; } I think it's fine to cheat a bit with the password and trust the output forma

Re: [PHP] php session in ie

2005-11-11 Thread M
sunaram patir wrote: Hi, i am having problem with internet explorer. i am working on a project on building a website where i need to keep track of the users i.e. i use a login system in there in short. with the following code i check whether the user is logged in or not. It might not fix your p

Re: [PHP] php session in ie

2005-11-11 Thread M
Stephen Leaf wrote: For security.. *never* store the password in a cookie.. OP stores the password in session -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Catch the WMV first frame picture in PHP script?

2005-11-12 Thread M
張 峰銘 wrote: > Mr. M: > Hello, thanks for your kind help. > But my Linux system is Fedora Core 1 , > there isn't any totem-video-thumbnailer. > What should I do? > > Do I have to upgrade the Linux system to FC 3 or heigher ? > (the Totem exists in FC3 ) > or Is

Re: [PHP] Regex to wrap tag around a tag

2005-12-01 Thread M
The second parameter to preg_replace is the replacement string (with optional backreferences), not another patern. Use '/(.*)(?=<\/p>)/' for patern, 'href="edit_paragraph&text=$1">$1' for replacement string, however, this does not urlencode the text parameter. You can use preg_replace_callback

Re: [PHP] need session_start() to recall session data.

2005-12-04 Thread M
Matt Monaco wrote: Yes, I actually changed the destructors to handle the session as you indicated a few minutes after I posted, however I still have no clue as to why I would need to do a session_start() to get data from the session. How else would php know you want session started? You can tu

Re: [PHP] href links not working in XP

2005-12-10 Thread M
Marlin Unruh wrote: Sure, here is the main function and the function that sends the files/links to the browser. This works fine on two w2k machines, but not on our XP machine. If I place the mouse pointer over the link on the web page it shows correct in the IE status bar. Example:( file:///c:

Re: [PHP] Transfer-Encoding: chunked problem

2005-12-10 Thread M
kumar kumar wrote: Hi i am sending encrypted data(AES-CBC) every large files to the php pages as streams, in php i am decrypting the data . The code is working fine for the filesize less than 12MB each (if 30files each of 12 Mb total = 360 Mb) its working file . If i am trying to upload a fil

Re: FW: [PHP] IE6 not returning POST data from a textarea

2005-12-12 Thread M
Jay Blanchard wrote: [snip] Everyone keeps asking it. Of course it's named or Mozzilla wouldn't work. [/snip] You can insert a textarea into a page without a name and mozilla will work. Are you sure? I just tried it using FF and textarea is not posted. Even if I set id attribute. -- PHP G

Re: [PHP] HTML rendering extension?

2005-12-21 Thread M
Marcus Bointon wrote: Has anyone seen such a thing? I'm looking to be able to generate web page previews dynamically and automatically, so I need to render the page on the server. The most efficient way would be if there was a PHP HTML rendering extension - gecko or KHTML perhaps. HTML2PDF

Re: [PHP] MySQL update killed my login...

2006-01-03 Thread M
It seems the upgrade was from Mysql 4.0. PASSWORD() function changed between 4.0 and 4.1, it uses longer hashes now. You can still use OLD_PASSWORD() function instead. William Stokes wrote: Hello, My ISP updated their MySQL DB to 5.0.18 and that killed my login procedure which was OK yesterd

Re: [PHP] Problems requesting page

2006-01-03 Thread M
PHP Superman wrote: Hey everyone, i'm on a windows box with PHP 5 on Apache 2 and I have a strange problem. When i try to access a page it seems to be blank, before it always worked but now it sudenly stopped. I am not a big computer techy but i cleared IE's cache and it still doesen't work. yo

Re: [PHP] Timezone and DST

2006-01-06 Thread M
Mark Steudel wrote: Hi All, I've got a little problem where our servers are in PST but the customer operates in Hawaii (-10 GMT). I believe I can just get the time for them by doing something like date("d H i", strtotime('now -2 hours') ); But here's the catch, how should I deal with day l

Re: [PHP] Re: Using GPG in Safe Mode

2006-01-18 Thread M
[EMAIL PROTECTED] wrote: Hi Edwin! Thanks for the tips but my ISP hasn't given me root. I'm very sad to hear gpg from cli won't work under safe mode. Are there any 100% php implementations of GPG I could use? (because I guess that is the only way that is left?) /Emil If you are using gnupg

[PHP] exclamation points appearing from nowhere in the mail() function...

2001-09-18 Thread m&amp;m \(saul\)
hey, could anyone help me with the mail function? in my script, its sintax is right... when i use the mail() function it works normaly... but when somebody receives the email sent by the mail(), some exclamation points appear from nowhere and the strangest thing is that the excamation points appe

[PHP] Problems when running Java program

2007-04-04 Thread Fernando M M
Hello, I have a Java program that gives me a string. When i run this program on the shell everything works fine but when i try to run using shell_exec i get Error occurred during initialization of VM Could not reserve enough space for code cache This script is currently on a VPS server with php

[PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: On the file lang/pt_BR/login.php i have this... But the result of the first script is 'S' (without quotes). If i change lang/pt_BR/login.php to I

Re: [PHP] Error with array and include

2006-12-05 Thread Fernando M. M.
ng as a string and not an array. On Tue, 05 Dec 2006 13:11:12 -0200, "Fernando M. M." <[EMAIL PROTECTED]> wrote: Hi, I'm having a strange problem when trying to show a array after its value was defined on a file that was included. Something like this: On the file lang/pt_BR

[PHP] Retransmiting post variables

2006-12-12 Thread Fernando M. M.
Hello, I have a script called redir.php that is used only for redirecting using the following code: header('Location: ', $_GET['url']); But now i need to redirect post varibles too. Example: If someone access redir.php?url=my_page.php and post: &a=1&b=2 I need to send this post string (as p

[PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
Hello, I have a lot of php scripts that uses date() for some important operations. Yesterday those scripts were moved to another server which is on an different timezone. I haven't predicted this so my scripts aren't working anymore. The servers timezone is GMT -4 and mine is GMT -2. Is there a

Re: [PHP] date() and timezone

2006-12-14 Thread Fernando M. M.
I´m using php5 here. But like i said i have lots of scripts inside this folder, is there a way to set something on .htaccess to change the timezone? > Fernando M. M. wrote: >> >> Hello, >> >> I have a lot of php scripts that uses date() for some important >

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
Hello, >>> But like i said i have lots of scripts inside this >>> folder, is there a way to set something on .htaccess to change the timezone? >> > > why? ;-) Because i can't set the timezone for every single script. Inside this folder and subfolders i guess there are about 10,000 scripts.

[PHP] Curl and cookies

2006-12-15 Thread Fernando M. M.
Hello, I have just started using curl and i have some question about cookies. The website i'm logging in controls everything using cookies (from login to the actions inside it). Is there a way to store the cookie values into a php session variable ($_SESSION['cookie'])? How do i make curl rec

Re: [PHP] Re: date() and timezone

2006-12-15 Thread Fernando M. M.
> > that will teach not to use global include files to init your apps. > > even if you we stuck with editing 10,000 scripts (btw it sounds very fishy > to 10,000 scripts with date() calls in them - can anyone say 'code reuse'?) > exactly how hard would it be to write something that would go thr

[PHP] Can anyone help? PHP script/MySQL problem

2002-12-10 Thread Steven M
Hi, i am trying to create a member login/authentication script to automatically send newly signed up people an email with a confirmation link. I am following a tutorial: http://www.phpfreaks.com/tutorials/40/0.php My form is located at: http://www.tricia-marwick.co.uk/members/join_form.php The

Re: [PHP] Can anyone help? PHP script/MySQL problem

2002-12-10 Thread Steven M
Hi Rich The prob is that the data isn't stored into the database as it should be and the user doesn't get an email back with their data. It seems to get lost before reaching the database, meaning the rest of it wont work, and i don't know why. Thanks Steven M -- PHP Gener

Re: [PHP] Can anyone help? PHP script/MySQL problem

2002-12-10 Thread Steven M
there should have been if you filled in the form. If it was working fine you would recieve an email automatically at the address you specified. If you have any ideas what's wrong i'd love to hear them. Steven M "Rich Gray" <[EMAIL PROTECTED]> wrote in message [EMAIL PR

[PHP] PHP/MySQL Query

2002-12-15 Thread Steven M
How do i make a form that will allow me to add 2 to the value of a MySQL field? I am trying to change it from 75 to 77. Is this possible? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL Query

2002-12-15 Thread Steven M
Leif Many thanks for that, your help is much appreciated. *smiles* Steven M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Resizing a png tranparent image.

2002-12-28 Thread Vincent M.
Hello, I am trying to resize a png file, my autograph ;-) Good result thanks to gimp: http://boxfly.free.fr/test/test1.jpg Bad result with php: http://boxfly.free.fr/test/test2.jpg This is my PHP code to resize the autograph: $newAuto = imagecreatetruecolor( $widthImgAu, $heightImgAu) ; imagec

[PHP] PHP/MySQL help?

2003-01-12 Thread Steven M
res with how it appears on the list. I really would appreciate any help with this as i am a newbie to MySQL and PHP and am finding it a really steep learning curve. Thanks. Steven M --- include 'db.php'; $result = mysql_query("SELE

Re: [PHP] PHP/MySQL help?

2003-01-12 Thread Steven M
PROTECTED]">news:[EMAIL PROTECTED]... Hi Steven, On Sunday 12 January 2003 23:58, Steven M wrote: > include 'db.php'; > > $result = mysql_query("SELECT newtest FROM users WHERE 14 = '$0'"); > list($number) = mysql_fetch_row($result); Here you are c

Re: [PHP] PHP/MySQL help?

2003-01-12 Thread Steven M
errors. Best wishes. Steven M include 'db.php'; $result = mysql_query("SELECT newtest FROM users WHERE newtest = '$0'"); list($number) = mysql_fetch_row($result); if($number==0) {mysql_query("UPDATE users SET points = '$+2' WHERE newtest = '$0'&quo

Re: [PHP] PHP/MySQL help?

2003-01-12 Thread Steven M
Oops...many thanks for that. Sorry, i am extremely new to this. Best wishes. Steven M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] File upload problem

2003-01-21 Thread John M
Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo which can I read. But after choosing a file and press a submit nothing happens. Why is if(isset( $Submit )) always false? Maybe my apache or php config is wrong? I use Win

[PHP] Browser language problem

2003-01-22 Thread John M
Hello, I have the code below, but it doesn't work. I see the message "It is an array" but nothing else. What can be the problem? How can I get the actual browser language? I use WinXp Prof, Apache 2.0.43, PHP 4.2.3, safe_mode is on. Thanks! -- PHP General Mailing List (http://www.php.net/)

[PHP] Re: textarea new line

2003-01-23 Thread Neil M
Adi wrote: i want to add in textarea a string with new line tag in it. how to do that? my try: $string="-line1n\ -line2 n\-line3"; echo "$string"; but i see a single line instead of: -line1 -line2 -line3 tx in advance for any help Hello For a new line in a text area you cant use html 's Yo

[PHP] Re: Removing the #!/usr... from cgi output?

2003-01-23 Thread Neil M
Colin McDonald wrote: Did you try it without that line at all? I'm pretty sure you can setup apache (you are using apache right?) to use /usr/.../bin/php for all files with the extension .php colin David Brannlund wrote: Example: #!/usr/local/bin/php becomes #!/usr/local/bin/php f

[PHP] Re: File upload problem

2003-01-23 Thread Neil M
John M wrote: Hello, I have the code below. It's a simple file upload. But it doesn't work. Before the line if(isset( $Submit )) is an echo which can I read. But after choosing a file and press a submit nothing happens. Why is if(isset( $Submit )) always false? Maybe my apache or php

[PHP] Sessions and phplib.

2003-02-17 Thread Vincent M.
Hello, I am using the phplib just for the sessions management and unfortunately this projects seems dead (no?), no official realise using the php4 session support. What's more, i am looking for a sessions library which could check the IP adress of users not only the cookie. In case of bad hats

[PHP] PHP form help

2003-02-19 Thread Steven M
the script works because i submitted info to is successfully before i changed the form action to point at the confirmation page. I think it has something to do with PHP sessions but am not sure how to make it work. Thanks for any help. Steven M -- PHP General Mailing List (http://www.php.net

Re: [PHP] PHP form help

2003-02-19 Thread Steven M
Hi Johnathan Thanks I've got it now, hidden fields did the trick. :-) Steven M "Jonathan Villa" <[EMAIL PROTECTED]> wrote in message 004301c2d851$24ac2fd0$8600a8c0@inhocvince">news:004301c2d851$24ac2fd0$8600a8c0@inhocvince... > How is the information being kept?

Re: [PHP] PHP form help

2003-02-19 Thread Steven M
Thanks Ray but i've found the problem and sorted it. :-) Steven M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 2 questions !

2003-03-01 Thread Vincent M.
Hello, I didn't find in the doc how to: - Know the full path of the current directory. Like /var/www/to/the/path - Know under which user work apache, to know when I create a file whose file it is... Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

[PHP] Re: 2 questions !

2003-03-01 Thread Vincent M.
Greg Beaver wrote: "Vincent M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hello, I didn't find in the doc how to: - Know the full path of the current directory. Like /var/www/to/the/path try using dirname(__FILE__) or dirname($_SERVER['PATH_TRANS

[PHP] What ?

2003-03-01 Thread Vincent M.
Hello, I am the bus stop boy. The business I was talking about is an php gallery editor. You can see mine in action here: My photos of Montreal: http://www.siova.net/photos/index.php?type=mtl&img=mtl_&diapo=0&pref_size=512&version=2 My photos of Toulouse, the city I was born in: http://ww

[PHP] Re: Php and JavaScript

2003-03-02 Thread Vincent M.
Valentin wrote: Hi, Is any way to write JavaScript code into PHP function or to send PHP's variables values to the JScript variables? Thanks, Of course, you can create dynamicaly javascript via php, ie: echo " var yourvar = $onephpvar ; " ; Is that what you were asking for ? Vincent. -- PH

[PHP] Re: Php and JScript

2003-03-02 Thread Vincent M.
Valentin wrote: Hi, Is any way to write JavaScript code into PHP function or to send PHP's variables values to the JScript variables? Thanks, Yes, I think there is a way to do so! ;-) Vincent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] define variables.

2003-03-05 Thread Vincent M.
Hello, I do a lot of define like that: define ("_LANG1", "Server options"); define ("_LANG1", "Manage your system"); etc... And stuff like that: if($num == 1) { $mgs = _LANG1 ; }else if($num == 2) { $mgs = _LANG2 ; } etc... But I do want to avoid all these if and else, is there a way

Re: [PHP] define variables.

2003-03-05 Thread Vincent M.
Jason K Larson wrote: http://www.php.net/manual/en/function.constant.php $msg = constant('_LANG'.$num); HTH, -- Jason k Larson Strange it does not work if I do: $num = "_LANG".$num ; $msg = constant($num) ; echo $mgs ; //It does not display anything! But If I do it directly, it works: $nu

[PHP] cookie problem.

2003-03-07 Thread H M
hello. i'm new to this NG, so i don't know if this is the right mailinglist / newsgroup for my problem. if not, please let me know which one to post it to. anyway, here goes: i'm designing a new website with several php scripts. for that purpose i've configuerd my server (apache under MacOSX 10

[PHP] Global VARS.

2003-03-07 Thread Vincent M.
Hello, To get ride of magic_quotes I do: function no_magicquotes() { global $HTTP_GET_VARS ; global $HTTP_POST_VARS ; global $HTTP_COOKIE_VARS ; if (get_magic_quotes_gpc()) { // Overrides GPC variables for (reset($HTTP_GET_VARS); list($k, $v) = each($HTTP_GET_VARS); ) $$k = stripsl

[PHP] Easy Way.

2003-03-09 Thread Vincent M.
Hello, Is there an easy way to change an integer to a 5 caracters string. For example: $i = 3 ; $j = 110 ; After having changed them: $i = "3" ; $j = "00110" ; Is there a php function to do so instead of doing this: if( ($i>0)&&($i<10)) { $i = "".$i ; } else if( ($i>9)&

Re: [PHP] Easy Way.

2003-03-09 Thread Vincent M.
Jason Sheets wrote: Hello, Use str_pad, the manual page is available at http://www.php.net/str_pad, a short example would be: $i = 3; $i = str_pad($i, 5, "0", STR_PAD_LEFT); This function is described in the PHP manual in the string functions section, the manual is an excellent place to go first w

[PHP] HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val); } break; case "GET": while (list ($key, $v

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val); } bre

[PHP] Re: HTTP_POST_VARS empty!

2003-03-12 Thread Vincent M.
Vincent M. wrote: Vincent M. wrote: Hello, I don't understand this code empty my HTTP_POST_VARS variable: if ((get_magic_quotes_gpc() == 1)) { switch ($REQUEST_METHOD) { case "POST": while (list ($key, $val) = each ($HTTP_POST_VARS)) { $$key = stripslashes($val);

[PHP] Sensibly accounting for timezone differences?

2003-03-17 Thread M Wells
Hi All, I'm an Australian PHP developer and host most of my web sites on US servers. One in particular is primarily accessed by Australian visitors and I want to be able to reflect Australian Eastern Standard Times when writing / reporting records, rather than the server time, which is set to US E

[PHP] Searching for a file.

2003-03-17 Thread Vincent M.
Hello, I am looking for a way to search a file knowing the beginig of his name. For exemple, I know that the file I am looking for is: montreal_13_120.jpg But I just know: montreal_13 And I can't know _120.jpg So at this time I did this: $dirthumbs = $dir."/thumbs" ; $direc_src_obj2 = di

[PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Hello, I'd like to uncompress to the Hard disk a zip file send by the browser. At this time I do this: function uncompresszip($zipfile) { copy($zipfile, dirname($_SERVER['PATH_TRANSLATED'])."/zip/zipfile.zip") ; } But I do not understand how to uncompress the zip file, I tried for exemple: $re

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Marek Kilimajer wrote: readgzfile is for *.gz files. Either use zip file functions (rarely supported) or PclZip (http://www.phpconcept.net/pclzip/index.en.php) No, it works with .zip files too, I just don't know how to manage it :-( -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
David T-G wrote: Vincent, et al -- ...and then Vincent M. said... % % Marek Kilimajer wrote: % >readgzfile is for *.gz files. ... % No, it works with .zip files too, I just don't know how to manage it :-( You mentioned wanting the "files" (note the plural) in the zip file

Re: [PHP] Zip Way of life.

2003-03-19 Thread Vincent M.
Daevid Vincent wrote: You could use the exec() or shell_exec() and just do it via command line method... Yes but gunzip does not work when there are more than one file in the zip file and unzip is not installed by default on Unix servers. :-( -- PHP General Mailing List (http://www.php.net/)

[PHP] Test the server.

2003-03-21 Thread Vincent M.
Hello, Is there anyway to check these two things: - If the server is an Unix server. - If a command is available on the server. For exemple, I need to test if the shell command unzip is avalaible to do: exec("unzip ...something...") ; So I can test if exec is available doing: if(function_exists(

  1   2   3   4   5   6   7   8   9   10   >