Re: [PHP] class inside class

2003-01-13 Thread Hatem Ben
Assuming you have class WebPage { var $property1; function get_property1() { return $this-$property1; } } class Sample extends WebPage{ } To access $property1 from your WebPage class just do $page = new Sample; $prop1 = $page-get_property1(); Otherwise try to send a

[PHP] True type font errors . Help me

2003-01-13 Thread Breno Cardoso Perucchi
Hello, I am one week recompiling source of php-4.2.3 to put support TTF I am having problem with gd true type font . I've been trying execute this php. But, always show me this error Warning: Could not find/open font in /usr/home/hosting/b4u/public_html/congressos/fenasoft/ProgramacaoListar.php

Re: [PHP] True type font errors . Help me

2003-01-13 Thread Torsten Rosenberger
Hello Warning: Could not find/open font in /usr/home/hosting/b4u/public_html/congressos/fenasoft/ProgramacaoListar.php on line 5 You must give the absolute path to your font dir for example /usr/home/hosting/b4u/fontsdir BR/Torsten -- PHP General Mailing List (http://www.php.net/) To

[PHP] stupid question (Back Function)

2003-01-13 Thread Remon Redika
hi everyone, It's Possible We used Php Scripting to Back the client Browser Like This Below : (ussualy I make it with java script) : javascript:history.back(1) but right now, i need using the 'header's function', functionaly to back the page to previouse page. sorry before :) -- PHP

RE: [PHP] stupid question (Back Function)

2003-01-13 Thread Sean Malloy
You could grab the referring page and send the user back to it, but some proxies/software stop your browser from sending that information, so it might not work in all situations a href=?php echo $_SERVER['HTTP_REFERER']; ?Back/a however, quoting the docs on using the referrer: This is set by

[PHP] document contained no data

2003-01-13 Thread Justin French
Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable fashion, a page will not load. In NN7 Mac, the error is the page contained no data. In IE5.x Mac, the error is along the lines of host not found or could not access URL

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-13 Thread Marek Kilimajer
This has been solved - the extra characters are stored in session, otherwise attacker can repeat it too. Password can be stored on the server using one way has - on the client the script hashes twice, first to get hashed password, then together with random string Gerald Timothy Quimpo wrote: On

Re: [PHP] occasional mcrypt problems

2003-01-13 Thread Marek Kilimajer
As you have magic_quotes on, automatically happens *addslashes*, now you need to reverse the proces Steve Yates wrote: Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... try $_POST['Credit_Card_Number']=stripslashes($_POST['Credit_Card_Number']);

[PHP] Can I Copy a directory using PHP?

2003-01-13 Thread Alex Ciurea
Hello, I want to write a script that makes a backup of a database directory. Actually, to copy all database files to another directory. I've figured that I have to use the copy function of the PHP, but the function doesn't works only with files? Is it possible to copy the entire directory to

Re: [PHP] Loading Information into an array.

2003-01-13 Thread Marek Kilimajer
while($img1=mysql_fetch_array($result)){ $img2=mysql_fetch_array($result); // now you have $img1 and $img2 echo trtdimg src='$img1[src]'/tdtd$img1[comment]brdiv align='right'$img2[comment]/div/tdtdimg src='$img2[src]'/td/tr } Philip J. Newman wrote: I have a table with images and comments.

RE: [PHP] Can I Copy a directory using PHP?

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
If you are using Unix simply call out the shell using back ticks `mv xxx xxx` or check out. http://www.php.net/manual/en/function.exec.php Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Alex Ciurea [mailto:[EMAIL PROTECTED]]

[PHP] Session wierdness...

2003-01-13 Thread Duncan Abbott
I can't seem to be able to set a session var from within a function in an include file I have a call to a function at the top of my doc (but after session_start()) and if I write the line: $_SESSION['userData'] = test1; in the function body - it does nothing... ... but if I put this

RE: [PHP] Session wierdness...

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
Do this for me: print_r($GLOBALS); and see if you have the $_SESSIONS array visible.. you will need to view the output in a text editor as the print_r won't look good rendered in the browser. Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original

RE: [PHP] Can I Copy a directory using PHP?

2003-01-13 Thread rw
Careful! use cp instead of mv Quoting Timothy Hitchens (HiTCHO) [EMAIL PROTECTED]: ### If you are using Unix simply call out the shell using back ticks `mv xxx ### xxx` or check out. ### ### http://www.php.net/manual/en/function.exec.php ### ### ### ### Timothy Hitchens (HiTCHO) ### Open

RE: [PHP] class inside class

2003-01-13 Thread @ Nilaab
If these two classes are in separate files then you will need to include one of the classes in with the other class using the include() or require() functions. Have you also used the extends keyword to extend the main class? When you use inheritance properties, you can use the $this- mechanism

Re: [PHP] document contained no data

2003-01-13 Thread Marek Kilimajer
Couple things you can try: - if you are using output buffer, try turning it off - check other virtual hosts on the server when these problems occur - if you have access to the logs, check them if the server is not dying Justin French wrote: Hi gang, I'm encountering a strange, random, sporadic

[PHP] Session wierdness

2003-01-13 Thread Duncan Abbott
I can't seem to be able to set a session var from within a function in an include file I have a call to a function at the top of my doc (but after session_start()) and if I write the line: $_SESSION['userData'] = test1; in the function body - it does nothing... ... but if I put this

Re: [PHP] document contained no data

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 17:46, Justin French wrote: Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable fashion, a page will not load. In NN7 Mac, the error is the page contained no data. In IE5.x Mac, the error is along

[PHP] Windows - PHP.INI

2003-01-13 Thread Naqashzade, Sadeq
Hi, I'm using Win2K Prof. and installed Apache 1.3.2 as my web server plus PHP 4.0.6 as module. I have several sie on my computer. for one of them I need to include certain file before any thing. I know that there is auto_prepend_file in php.ini but this will run for all of my sites :-( Is there

[PHP] pls help with session

2003-01-13 Thread James Tan
Dear Sir/Madam, I've been coding session for quite sometime, but this is the first time i encounter such problem... index.php(login form) - login.php (verifies and set session userkey=1) - main.php (check session userkey) if check session userkey fail, gets redirected back to index.php in the

Re: [PHP] document contained no data

2003-01-13 Thread Justin French
on 13/01/03 9:34 PM, Marek Kilimajer ([EMAIL PROTECTED]) wrote: Couple things you can try: - if you are using output buffer, try turning it off nope, not using any ob :) - check other virtual hosts on the server when these problems occur can't tell for sure... without constantly surfing a

[PHP] Need some help in exec-attack

2003-01-13 Thread Alex Ciurea
Hi all, this is my situation: I want to execute some comands using 'shell_exec': $command=shell_exec(ls -la /usr/dest_dir;cp -R /usr/source_dir/1.php /usr/dest_dir;cd /usr/dest_dir;ls -la); echo pre$command/pre; Actually, these commands: 1)ls -la /usr/dest_dir 2)cp -R

Re: [PHP] pls help with session

2003-01-13 Thread Jason k Larson
It looks to me like you are losing the session id. Try something along the lines of this for the redirect: header(location: main.php?PHPSESSID=.Session_Id()); This could/should be being pushed via cookies, but it appears as though it is not. The best way to troubleshoot is to print the before

Re: [PHP] document contained no data

2003-01-13 Thread Justin French
on 13/01/03 10:05 PM, Jason Wong ([EMAIL PROTECTED]) wrote: On Monday 13 January 2003 17:46, Justin French wrote: Hi gang, I'm encountering a strange, random, sporadic error on a new server. Basically, sometimes, in a non-repeatable fashion, a page will not load. In NN7 Mac, the error is

Re: [PHP] document contained no data

2003-01-13 Thread Marek Kilimajer
perhaps I could log page,date,time,IP address for a few days, then I could at least find my IP in the log, and the rough time of the error... Or log only requests from your IP. Justin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] class inside class

2003-01-13 Thread Michael Hall
Thankyou Nilaab and Hatem for the replies. I can see that extending classes is probably the way to go. I was kind of aware of how it works, but didn't see it as an obvious solution. But looking at it more closely, I think I should be able to put most common stuff in a basic class. Different

[PHP] attachment problem

2003-01-13 Thread Lars Olsson
Hi all! I'm writing a webmail application in PHP and most basic things are working now. However, I've recently run into a problem concerning mail attachments. This is the situation right now: When the user opens a letter there are links to all attachments. The links looks like this:

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 19:53, Alex Ciurea wrote: Hi all, this is my situation: I want to execute some comands using 'shell_exec': $command=shell_exec(ls -la /usr/dest_dir;cp -R /usr/source_dir/1.php /usr/dest_dir;cd /usr/dest_dir;ls -la); echo pre$command/pre; Actually, these

RE: [PHP] attachment problem

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
So you have tried as per the manual: header(Content-Disposition: attachment; filename=downloaded.pdf); I use this all the time without issue.. do you have a shell that you can use to wget -S and see if the correct headers are coming out?? Timothy Hitchens (HiTCHO) Open Platform Consulting

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Alex Ciurea
Hi, I think I've solved the problem group owner of the dest_dir must be apache !!! - Original Message - From: Alex Ciurea [EMAIL PROTECTED] To: php mailing [EMAIL PROTECTED] Sent: Monday, January 13, 2003 1:53 PM Subject: [PHP] Need some help in exec-attack Hi all, this is my

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Alex Ciurea
:( Yes I've realised that. It seemed to me that is more efficient to make a copy of that files, rather than a mysqldump. but Yes, in order to access files of the mysql directory, I have to give to the webserver all the rights, solution that I don't aproove, for security reasons. -

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Jason Wong
On Monday 13 January 2003 21:13, Alex Ciurea wrote: Hi, I think I've solved the problem group owner of the dest_dir must be apache !!! NB if mysql is running whilst you're copying the files then you could end up with incorrect backups. -- Jason Wong - Gremlins Associates -

php-general Digest 13 Jan 2003 13:27:33 -0000 Issue 1820

2003-01-13 Thread php-general-digest-help
php-general Digest 13 Jan 2003 13:27:33 - Issue 1820 Topics (messages 131382 through 131431): Free web-hosting 131382 by: Rambler Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express? 131383 by: Hunte Swee php_network_getaddresses() 131384 by:

RE: [PHP] Problem with Search Engine Friendly URLs under PHP Windows XP

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Gerard Samuel [mailto:[EMAIL PROTECTED]] Sent: 11 January 2003 15:48 Jonathan Chum wrote: I'm following various tutorials online that uses the PATH_INFO to do this, As far as I know, this technique doesn't work under windows... As far as I know it

Re: [PHP] Need some help in exec-attack

2003-01-13 Thread Alex Ciurea
Oh, I get it Jason, it's okay the idea of mysqldump Now i see it's more efficient mysqldump rather than my stupid thought. 10x alot, Alexoiul - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 3:27 PM Subject: Re: [PHP] Need

Re: [PHP] stupid question (Back Function)

2003-01-13 Thread David T-G
Remon, et al -- ...and then Remon Redika said... % % hi everyone, Hi! % % It's Possible We used Php Scripting to Back the client Browser Well, yes and no. There was just a new 'crumb' class released (see http://www.phpclasses.org/browse.html/package/934.html for more) which will let

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
Let us know how it goes... The unload event had been tried also. The javascript have been running for a while but the network communication is a bit tricky, it haven't worked well. Víã Ãðã [EMAIL PROTECTED] wrote in message

RE: [PHP] Why T_error?

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent: 10 January 2003 21:04 I, once I found out that register_globals isn't always one, have always done HTTP variables as like $_SESSION for session and $_POST for form vars through post. Why, if you have

RE: [PHP] SESSION variable to pass login ID

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Nova [mailto:[EMAIL PROTECTED]] Sent: 12 January 2003 20:04 This statement doesnt look right to me. if(isset($_POST['userid']) isset($_POST['pword'])){ $_SESSION['user'] = $_POST['userid']; $_SESSION['password'] = $_POST['pword']; } Nowt wong wi'

[PHP] Re: Pre-built CMS - Anyone recommend one?

2003-01-13 Thread Tros
I use Ovidentia ( http://www.ovidentia.org ). You can test it ( and others ) here: http://www.opensourcecms.com/index.php Tros Nick Wilson [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, I'm looking for a *free*, pre-built CMS with PHP/MySQL. I've

Re: [PHP] Encrypt in Javascript and Decrypt in PHP????

2003-01-13 Thread Scott Fletcher
Yea, the hacker would guess a random number in html javascript but the hacker have no way of putting it into php on the server-side. So, we get two different random number and a invalid match. Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... This

Re: [PHP] Re: Pre-built CMS - Anyone recommend one?

2003-01-13 Thread Kevin Myrick
I would recommend phpWebSite @ http://phpwebsite.appstate.edu . The newest version coming out is very promising, and uses the PEAR libraries. It is XML compliant. Better than the NUKE clones, etc. Kevin Myrick www.ultimatealchemy.com - about to be phpWebSite based. www.techrebels.com -

Re: [PHP] Re: Change Date

2003-01-13 Thread Chris Boget
How can I find time stamp for example 125 next days. $oneDay = ( 60 * 60 * 24 ); $timeStamp = date( U ) + ( $oneDay * 125 ); or 03:30 hours next? $oneHour = ( 60 * 60 ); $timeStamp = date( U ) + ( $oneHour * 3.5 ); This is just one of the many different ways it can be done. Chris -- PHP

Re: [PHP] Sessions 'funny' and Zone Alarm Pro 3

2003-01-13 Thread Mike Mannakee
It does sound like you're right. Like ZA is perhaps allowing the user's request to go twice. This is akin to people who double click on links because that's what they're used to doing on windows icons. However, it seems a bit odd how it selects to do it. It seems that if it did it twice on

[PHP] session storage

2003-01-13 Thread Mat Harris
i am writing a shopping site for training (just out of interest). When a user clicks add to basket i want to check whether an item with that id is already in my session ($ALCOHOLE[items]), if so, redirect them the the view_cart page, if not then append it to the $ALCOHOLE[items] array as $key

Re: [PHP] Windows - PHP.INI

2003-01-13 Thread John Nichel
.htaccess isn't a Linux only thing...it's an Apache thing. Just put a file named .htaccess in the document root of the site you want to prepend the file too. Inside the file, put this php_value auto_prepend_file /path/to/included/file.php Naqashzade, Sadeq wrote: Hi, I'm using Win2K

Re: [PHP] session storage

2003-01-13 Thread 1LT John W. Holmes
i am writing a shopping site for training (just out of interest). When a user clicks add to basket i want to check whether an item with that id is already in my session ($ALCOHOLE[items]), if so, redirect them the the view_cart page, if not then append it to the $ALCOHOLE[items] array as

Re: [PHP] Re: Change Date

2003-01-13 Thread Jan Mikes
?php /* for getting a future or past timestamp use mktime(void) function that returns current unix timestamp in seconds get next mins, hours, days */ function count_date($w,$num){ switch($w){ case m: //minutes return ($num)*(60); break; case h: //hours return

Re: [PHP] session_destroy problem

2003-01-13 Thread Tamas Arpad
On Monday 13 January 2003 15:14, Scott Fletcher wrote: Let us know how it goes... The unload event had been tried also. The javascript have been running for a while but the network communication is a bit tricky, it haven't worked well. Sorry, maybe I missed or forgot the original problem. If

[PHP] form box question

2003-01-13 Thread Anthony Ritter
Hi, I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS server, I get undeclared variables and indexes when the form page loads. The script follows. Any help would be

Re: [PHP] session_destroy problem

2003-01-13 Thread Scott Fletcher
It's no problem. We're all very interesting in finding out what can work. Maybe I can help with one of this problem. The Gecko browser does have the option of blocking the opening of hte unrequest window which is maybe why yours doesn't work in Mozilla. Just wondeirng... Tamas Arpad [EMAIL

Re: [PHP] Change Date

2003-01-13 Thread Tom Rogers
Hi, Sunday, January 11, 2004, 10:42:01 PM, you wrote: NS Hi, NS How can I find time stamp for example 125 next days. or 03:30 hours next? NS Regards, NS S. Naqashzade NS PS: Sorry for my bad english :-( The simplest way is with strtotime() for example $stamp = strtotime(+ 125 days); --

Re: [PHP] Permission Denied

2003-01-13 Thread Stephen
My Full system settings are IIS 6.1, Windows XP Professional, etc. I'll be publishing the script later and most will have CHMOD settings. Now I guess I need to know how to fix it on my test server and then what the CHMOD settings should be... As for Sean's email, I just did those settings and

RE: [PHP] form box question

2003-01-13 Thread Ford, Mike [LSS]
-Original Message- From: Anthony Ritter [mailto:[EMAIL PROTECTED]] Sent: 13 January 2003 17:07 I'm testing the following form on: MS Win98 / IE 5.5 / PHP 4.0 / Apache and it works fine. However...when I publish the .php file and the data.txt file on the ISP's MS IIS

[PHP] imap_open failure

2003-01-13 Thread Jeff Schwartz
I'm using imap_open in PHP 4.3.0 to successfully access every pop server I've tried - except 1: mail.fea.net. I know the mail server, port, login, and password are correct because I can successfully log into the pop server with both telnet and Outlook. Here's the code: if ($pop_inbox =

[PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Hi, I'm using I.E. 6. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has

Re: [PHP] form box question

2003-01-13 Thread chip . wiegand
Just a suggestion - you might want to disable the ability to input html code in the messages, as a precautionary messure. I tested the script and was able to make a mess of the page after submitting. -- Chip Anthony Ritter [EMAIL PROTECTED] 01/13/2003 09:07 AM To [EMAIL PROTECTED] cc bcc

Re: [PHP] form box question

2003-01-13 Thread Anthony Ritter
Thanks. Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? TR -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: occasional mcrypt problems

2003-01-13 Thread J Smith
Try using a different block cipher mode. When encrypting with ECB, as you said, your plaintext must have a length that is a multiple of the blocksize for the cipher. If it's anything less, you're going to get some garbage at the end of the decrypted ciphertext. I believe that mcrypt uses

[PHP] include_files message question

2003-01-13 Thread Allen Byington
All I've been trying to compile php4 to run under HP-UX 11 64 bit and I get errors on documents when trying to include files. As far as I can tell everything else works. The message only appears when I do an include with a soft path suh as: require('includes/config.inc.php' ); I do not

[PHP] benchmarking used memory

2003-01-13 Thread peio popov
Hi, I would like to know if there is way to measure how much memory a script uses during execution. Althought threre is no such function in the manual, in my opinion there must be some indication how much memory is used because of the memory_limit directive in the php.ini file. So if php is

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my

Re: [PHP] form box question

2003-01-13 Thread Chris Hewitt
Anthony Ritter wrote: Any ideas after looking at the code why I'm having difficulty publishing the file to a MS IIS server with undeclared indexes and variables if it works on Apache server? It will be the error reporting level being set differently between the two servers. The IIS one

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Don
Don wrote: I'm using I.E. 6. Its not a browser thing, but a PHP thing. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Chris Hewitt
Don wrote: Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can

[PHP] question on Header(location

2003-01-13 Thread Don
When I use --- header(Location: http://www.somepage.com), it redirects to my page no problem. My question is, is there a PHP trick I can use to make it open in a new browser window? I'm adverse to using JavaScript as some users may not have it turned on (odd I know but a reality still). Thanks,

Re: [PHP] question on Header(location

2003-01-13 Thread Jason Wong
On Tuesday 14 January 2003 03:33, Don wrote: When I use --- header(Location: http://www.somepage.com), it redirects to my page no problem. My question is, is there a PHP trick I can use to make it open in a new browser window? No. I'm adverse to using JavaScript as some users may not have

[PHP] portabily including files

2003-01-13 Thread Tyler BIRD
I'm trying to include 'http://www.myserver.com/conted/me.inc'; portably on several mirrored servers like include '/conted/me.inc' , I was wondering if there was someway I could include files and have the implicity connect and down the load me.inc from the local server whatever server it happens

Re: [PHP] document contained no data

2003-01-13 Thread Chris Shiflett
--- Justin French [EMAIL PROTECTED] wrote: In NN7 Mac, the error is the page contained no data. In IE5.x Mac, the error is along the lines of host not found or could not access URL This is a bit off-topic, but I would suggest ignoring any error messages from IE. It will generally hide the

[PHP] problems to get image informations form local harddrive using getimagesize

2003-01-13 Thread harald.mohring
isn't it possible to get image informations from the local harddrive? $fotoinfo=getimagesize(C:\\Files\\Temp\\Image.jpg); if i use that code, the errormessage is always Unable to access c:\Files\Temp\Image.jpg getimagesize: unable to open file for reading got anybody a solution? -- PHP

Re: [PHP] Permission Denied

2003-01-13 Thread Stephen
Ok, I finally just right clicked on my wwwroot folder and went to security. I allowed control to everyone on the network (just me and my brothers) and it works. Just one last question! What should the CHMOD settings be for when it goes online? - Original Message - From: Sean Malloy

[PHP] GD help

2003-01-13 Thread RClark
Does anyone know if there is a newsgroup for help with GD commands? Thanks, RC -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Write Image to Cache

2003-01-13 Thread Stephen
I have a chat script that refreshes the chat thing about every 5 seconds. The problem with it is emoticons. Each refresh, it makes the images reload aswell which makes it do sort of a flicker. How could I write the image to cache to make this stop happening or is there another method that

RE: [PHP] Does PHP's imap_utf7_en/decode compatible with Microsoft Outlook Express?

2003-01-13 Thread Jesse Cablek
Hunte Swee [mailto:[EMAIL PROTECTED]] scribbled; Hi all, It seems true that php's imap_utf7_en/decode does not compatible with microsoft outlook express. We create imap folder(include chinese chars) using IMP, all it ok in IMP problem, but when use OE to connect to imap server, the folder

[PHP] Small Business Suggestion ???

2003-01-13 Thread Daniel Negron/KBE
Does anyone have any good suggestions for small business software (PHP/MySQL) based ? basically what I need to do is: contact management work order forms invoicing TIA **DAN** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
Yes, I've tried using the Content-Disposition header. It doesn't seem to work...here are the relevant parts of my code: snip // Change Content-Type so that it matches the MIME-type of the part header('Content-Type: ' . $type . '/' . $subtype); // Check if there is a name for the part if

Re: [PHP] question on Header(location

2003-01-13 Thread Joseph W. Goff
No, I am afraid not. It will only send a redirection header to the same page that you are on. - Original Message - From: Don [EMAIL PROTECTED] To: php list [EMAIL PROTECTED] Sent: Monday, January 13, 2003 1:33 PM Subject: [PHP] question on Header(location When I use ---

[PHP] Looking for advice on a non-profit site development

2003-01-13 Thread White Wolf
Hi All, I am a C++ guy, who plans to do a site about C++ Idioms. I would like to make it into a community site with interactivity. I have concluded that PHP would be the right way to go. However I am lazy. I would like first to be able to start doing the site using some sort of visual

RE: [PHP] attachment problem

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
What happens when you change the inline to attachment?? Also does this page have any errors in it... eg parsing ones that are causing PHP to take over the headers and error out?? Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From:

RE: [PHP] Write Image to Cache

2003-01-13 Thread Timothy Hitchens \(HiTCHO\)
Use the correct headers for no-cache see manual for starters: http://www.php.net/manual/en/function.header.php http://www.php.net/ Timothy Hitchens (HiTCHO) Open Platform Consulting e-mail: [EMAIL PROTECTED] -Original Message- From: Stephen [mailto:[EMAIL PROTECTED]] Sent:

[PHP] dumb time question

2003-01-13 Thread Pag
Ok, this is going to be laughable, but here goes. I am looking at code too much to get this one: Have 2 text fields on a database called hours and minutes. How can i get the current time (hour-minutes) in two digit format and apply it to the two variables? Everything i do only gets one

Re: [PHP] dumb time question

2003-01-13 Thread Tim Ward
use the date() function, in this case date(i) and date(h) or date(H) Tim Ward http://www.chessish.com mailto:[EMAIL PROTECTED] - Original Message - From: Pag [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 10:25 PM Subject: [PHP] dumb time question Ok, this is

[PHP] Trapping PHP errors

2003-01-13 Thread Pieter Claerhout
Hi all, is there a way to execute a custom function as soon as an error happens in PHP? I looked at the set_error_handler function, but it doesn't seem to trap all the errors. What I want to achieve is to execute a function that mails me the error everytime an error happens. Cheers, Pieter

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
It doesn't matter whether I choose 'inline' or 'attachment', browser doesn't seem to care...but at least I found out why wget -S got me text/html instead of image/bmp. I had some session variables that messed things up, but I hacked it a bit and now wget -S is giving me the following headers:

Re: [PHP] attachment problem

2003-01-13 Thread Lars Olsson
Well, I'll be damned...don't know why, but suddenly everything seems to work! Guess some little gnome inside my computer finally decided it was time for me to get some sleep... Many thanx for for your help, Timothy! /Lars ([EMAIL PROTECTED]) Lars Olsson wrote: It doesn't matter whether I

[PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I did a complex class that works with XML parsing and complex structured where I used references extensivly and now I'm surprised with: Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it

[PHP] permission denied

2003-01-13 Thread Anthony Ritter
Using MS Win98 / php 4: Any ideas on how I can change my permssion settings on a file called data.txt so it can be read to and written to or do I have to take that up with my ISP. I get the following after I submit a form: Warning: fopen(data.txt, a+) - Permission denied in

Re: [PHP] Looking for advice on a non-profit site development

2003-01-13 Thread Michael Sweeney
Check out phpnuke.org - content management system that seems to answer most of the criteria you've set out here. ..michael.. On Mon, 2003-01-13 at 13:46, White Wolf wrote: Hi All, I am a C++ guy, who plans to do a site about C++ Idioms. I would like to make it into a community site with

[PHP] Weird Errors

2003-01-13 Thread Mike Bowers
The errors aren't actually generadted inside the PHP but the problem im having makes no sense to me. The pages validate.php feed out: Please veify below that all your details are correct. If there are any errors, they will be lsited first. Error 1: Primary e-mail address was left blank. Error 2:

[PHP] Error in variable when looping

2003-01-13 Thread menezesd
Hello friends, I have made the following table of data and a button on every row to view the details. The code is working fine and the table is displayed with the buttons. The problem I have is that the $SelectedItemNumber posted to the next page remains the same number no matter which row

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
Thanks for your response but I don't think this is what I was asking; could be wrong though. I re-read your post and, of course, you are right. I mis-read it! I have heard of this Back button and data missing and I'm sure its come up before, but I don't remember the answer. I can only

Re: [PHP] question about 'register_globals' setting

2003-01-13 Thread Rasmus Lerdorf
I'm using I.E. 6. I noticed that register_globals was set ON in my php.ini file so I changed it to OFF in as per the security warning. I've noticed a side effect. When I submit a form via POST and then go back from the results page, my form has been cleared, i.e.., as if the page has been

Re: [PHP] Trapping PHP errors

2003-01-13 Thread Michael Sims
On Tue, 14 Jan 2003 23:38:11 +0100, you wrote: Hi all, is there a way to execute a custom function as soon as an error happens in PHP? I looked at the set_error_handler function, but it doesn't seem to trap all the errors. What I want to achieve is to execute a function that mails me the error

[PHP] Re: Trapping PHP Errors

2003-01-13 Thread Robert Samuel White
Use the error_reporting function to define which errors you would like PHP to report to the error handler. If you want everything to be mailed to you, including warnings, use the E_ALL setting, though you may get a lot more warnings than you expect this way: error_reporting(E_ALL); function

Re: [PHP] pass by reference

2003-01-13 Thread Tom Rogers
Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P -BEGIN PGP SIGNED MESSAGE- P Hash: SHA1 P I did a complex class that works with XML parsing and complex structured where P I used references extensivly and now I'm surprised with: P Warning: Call-time pass-by-reference has been

Re: [PHP] pass by reference

2003-01-13 Thread Pupeno
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 13 January 2003 20:01, Tom Rogers wrote: Hi, Tuesday, January 14, 2003, 9:36:57 AM, you wrote: P -BEGIN PGP SIGNED MESSAGE- P Hash: SHA1 P I did a complex class that works with XML parsing and complex structured where P I

Re: [PHP] Error in variable when looping

2003-01-13 Thread Rick Emery
so where is $rowe set? Show us code that calls this page - Original Message - From: menezesd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 6:21 PM Subject: [PHP] Error in variable when looping Hello friends, I have made the following table of data and a button

[PHP] forms

2003-01-13 Thread cj
G'day All Just a quick question This is really a html more than a php question. Is it possible to have two buttons and have different actions for each button in the same form? Thanks CJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] forms

2003-01-13 Thread Rick Emery
Do you mean like two SUBMIT buttons? Yes. - Original Message - From: cj [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 13, 2003 7:32 PM Subject: [PHP] forms G'day All Just a quick question This is really a html more than a php question. Is it possible to have two

RE: [PHP] forms

2003-01-13 Thread Cal Evans
yes but it's more of an HTML/JavaScript thing. use INPUT Type='BUTTON' to put a second button on your form. Then use the onClick method to assign an action to it. If you want it to submit your form then call document.formName.submit(); =C= * * Cal Evans * The Virtual CIO *

  1   2   >