php-general Digest 19 Oct 2005 16:08:40 -0000 Issue 3746

2005-10-19 Thread php-general-digest-help
php-general Digest 19 Oct 2005 16:08:40 - Issue 3746 Topics (messages 224313 through 224333): Re: Java editor 224313 by: Robert Cummings 224329 by: John Taylor-Johnston 224330 by: Jay Blanchard 224331 by: John Taylor-Johnston Re: fckeditor and PDF and pesky

Re: [PHP] fckeditor and PDF and pesky users

2005-10-19 Thread Torgny Bjers
Jochem Maas wrote: and the next site that displays a PDF when I wasn't expecting it and I have to spend the next five minutes waiting for the b'std to load (with the alternative being to KILL the browser - losing all open pages in the process) ... might just make me snap ;-) I agree, those

[PHP] fetching words

2005-10-19 Thread Jad Madi
Hi, guys I have two tables, articles and keywords, what I want to do is to scan articles and grab every single word used in an article to the keyword table any idea how to do that -- Regards Jad madi Blog http://EasyHTTP.com/jad/ Web standards Planet http://W3planet.net/ -- PHP General Mailing

[PHP] Help needed / failed to open stream: Permission denied

2005-10-19 Thread Ndagi Mutiri
Hello, Trying to read a binary file in MySQL database, i have the following error : Warning: fopen(./) [function.fopen]: failed to open stream: Permission denied in d:\...\download.php on line 57 This is line 57 $file_handle = fopen(./ . $file_name, r); and my function function

[PHP] Re: Help needed / failed to open stream: Permission denied

2005-10-19 Thread David Robley
Ndagi Mutiri wrote: Hello, Trying to read a binary file in MySQL database, i have the following error : Warning: fopen(./) [function.fopen]: failed to open stream: Permission denied in d:\...\download.php on line 57 This is line 57 $file_handle = fopen(./ . $file_name, r); It seems

[PHP] Re: PHP DOM XHTML - let me set my own javascript from code

2005-10-19 Thread Rob
Petr Smith wrote: but it encloses it to CDATA section automatically like this: script type=text/javascript language=Javascript![CDATA[alert('ddd');]]/script but I need it like this (because otherwise the javascript don't work): script type=text/javascript language=Javascript //![CDATA[

Re: [PHP] OPTIMIZING - The fastest way to open and show a file

2005-10-19 Thread Ruben Rubio Rey
:( Its not working $bytes = @readfile($filename); if ($bytes === false){ //error-handling code } There is not any output ? Richard Lynch wrote: On Fri, October 14, 2005 6:29 am, Ruben Rubio Rey wrote: if(file_exists($filename)){ $modified_date=filemtime($filename);

Re: [PHP] White background with imagecreatetruecolor()

2005-10-19 Thread Łukasz 'nostra' Wojciechowski
W odpowiedzi na maila (21:21 - 18 października 2005): $im = imagecreatetruecolor ( 140, 140 ); $bg = imagecolorallocate ( $im, 255, 255, 255 ); $orgimg = imagecreatefromjpeg ( $image_data['image'] ); imagecopyresampled ( $im, $orgimg, $thumb_x_offset, $thumb_y_offset, 0, 0, $new_thumb_x,

[PHP] Pb to change accountexpires attribute in Active Directory

2005-10-19 Thread Joel d
Hi all, I'm currently setting up a php site to control my Active Direcory, and I'm struggling with the Accountexpire field. After extending the expiration date, I can't set it back in AD, because it is in scientific format (1.2774158851E+017). And I can't find how to transform this into an

RE: [PHP] fetching words

2005-10-19 Thread Jim Moseby
Hi, guys I have two tables, articles and keywords, what I want to do is to scan articles and grab every single word used in an article to the keyword table any idea how to do that -- Vague question, and I suspect that there is a much better way to do what you are trying to do, but since

[PHP] Re: PHP and files Upload

2005-10-19 Thread Mark Rees
the script always says it was sucessful to upload the file, but the destination directory was always empty... even when checking the $_FILES global $_FILES['var_name']['tmp_name'] and $_FILES['var_name']['name'] and $_FILES['var_name']['size'], the vars alwyas return empty values... is

[PHP] Re: Help needed / failed to open stream: Permission denied

2005-10-19 Thread Mark Rees
This is line 57 $file_handle = fopen(./ . $file_name, r); It seems that the user your web server runs as may not have permission to open that file. Also, you might want to double check that ./$ile_name is a valid path. And if you're planning to write to the file, you need to specify that.

[PHP] Re: PHP DOM XHTML - let me set my own javascript from code

2005-10-19 Thread Petr Smith
Thanks a lot Rob, it's so simple! I don't know why I did't find it myself. Petr Rob wrote: Petr Smith wrote: but it encloses it to CDATA section automatically like this: script type=text/javascript language=Javascript![CDATA[alert('ddd');]]/script but I need it like this (because

RE: [PHP] Help needed / failed to open stream: Permission denied

2005-10-19 Thread Jim Moseby
Hello, Trying to read a binary file in MySQL database, i have the following error : Warning: fopen(./) [function.fopen]: failed to open stream: Permission denied in d:\...\download.php on line 57 This is line 57 $file_handle = fopen(./ . $file_name, r); and my function

Re: [PHP] Help needed / failed to open stream: Permission denied

2005-10-19 Thread Jochem Maas
Ndagi Mutiri wrote: Hello, I can't be of any help here but couldn't help noticing that th OP (Ndagi) is dealing with dutch language DB entities and comments/output in french and code (vars etc) in english bet that can be a PITA :-) Trying to read a binary file in MySQL database, i

Re: [PHP] Java editor

2005-10-19 Thread John Taylor-Johnston
Looks good. But I was hoping for open source. John Torgny Bjers wrote: John Taylor-Johnston wrote: Is there a OS java (or other) html editor I can implement on a Web page. I want a user to type text, use bold, italics, etc. I would then store the html in a MySQl record and then use php to

RE: [PHP] Java editor

2005-10-19 Thread Jay Blanchard
[snip] Is there a OS java (or other) html editor I can implement on a Web page. I want a user to type text, use bold, italics, etc. I would then store the html in a MySQl record and then use php to insert the edited text. [/snip] Sorry I missed this earlier. Have you looked at htmlArea?

Re: [PHP] Java editor

2005-10-19 Thread John Taylor-Johnston
Thanks Rob. They are hard to choose between?! I'll play with both. I only want the very basics. Thanks! John On Tue, 2005-10-18 at 23:52, John Taylor-Johnston wrote: Is there a OS java (or other) html editor I can implement on a Web page. I've seen some packaged, in Moodle for example.

[PHP] PHP to read news

2005-10-19 Thread Steve
Hi, I'm looking for some help with reading freely available news files like this: news://newsclip.ap.org/[EMAIL PROTECTED] news://newsclip.ap.org/[EMAIL PROTECTED]/%3E%3C/media. I'm able to connect to the newsgroup with the IMAP functions just file, but this type of news url can be placed in

[PHP] Imap, reading the email-body

2005-10-19 Thread Bruno Gola
Hi guys, I need some help with the imap_body function and how to work with the string that this function returns... Im working on a mailing list archive website and i'm using the imap_* functions to handle this, the header works fine (and other things too) but the Body of the message dont

Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Leif Gregory
Hello Bruno, Wednesday, October 19, 2005, 10:08:24 AM, you wrote: Look the main page and try to read any message... I dont know what can i do to fix it... nl2br() (see php manual) -- TBUDL/BETA/DEV/TECH Lists Moderator / PGP 0x6C0AB16B __

Re: [PHP] Imap, reading the email-body

2005-10-19 Thread Nahalingam N. Kanakavel
hi, I think that I understood you problem some what, if you are having newline character (\n) in you string , then you can use Regular expression to replace the \n character with br / tag. why can't you try something like the following -code ?php /* this is the convert

[PHP] Classes or functions

2005-10-19 Thread Khorosh Irani
What this methods are better for php4? classes or functions Does it better to use classes whennbsp;I can write the codes with functions? Excuseme for my bad english

[PHP] Classes or functions

2005-10-19 Thread Khorosh Irani
What this methods are better for php4? classes or functions Does it better to use classes when I can write the codes with functions? Excuseme for my bad english

Re: [PHP] Java editor

2005-10-19 Thread John Taylor-Johnston
Thanks all. This was easy to install: http://ccl.flsh.usherbrooke.ca/~johj2201/test.php Jay Blanchard wrote: [snip] Is there a OS java (or other) html editor I can implement on a Web page. I want a user to type text, use bold, italics, etc. I would then store the html in a MySQl record and

Re: [PHP] Java editor

2005-10-19 Thread Sascha Braun
Please take a look at http://mozile.mozdev.org/ This is a browser based solution. Pretty cool i find. bye Am Dienstag, den 18.10.2005, 23:52 -0400 schrieb John Taylor-Johnston: Is there a OS java (or other) html editor I can implement on a Web page. I want a user to type text, use bold,

Re: [PHP] Java editor

2005-10-19 Thread Robert Cummings
On Wed, 2005-10-19 at 13:07, John Taylor-Johnston wrote: Thanks all. This was easy to install: http://ccl.flsh.usherbrooke.ca/~johj2201/test.php IMHO would stay away from htmlarea, they've discontinued it in favour of what I would guess is the unfree InnovaStudio (since it ranks first on their

Re: [PHP] re: some problems with php form

2005-10-19 Thread Bruce Gilbert
Mike and all, guess I still have something wrong as I am getting this error: *Parse error*: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in *

RE: [PHP] re: some problems with php form

2005-10-19 Thread Jay Blanchard
[snip] input class=?PHP if ($error_msg) {echo error} else {echo normal}? id=firstname name=firstname type=text value=?php echo $_POST['firstname'] ? how would I fix this error? [/snip] You are missing several semi-colons; input class=?PHP if ($error_msg) {echo error;} else {echo normal;}?

[PHP] How can I get the url in the IE?

2005-10-19 Thread Tomás Rodriguez Orta
Hello friend. How can I get the url in the IE ? best regards TOMAS - Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.27 en el dominio de correo angerona.cult.cu y no se encontro ninguna coincidencia.

RE: [PHP] How can I get the url in the IE?

2005-10-19 Thread Jay Blanchard
[snip] How can I get the url in the IE ? [/snip] http://us3.php.net/manual/en/reserved.variables.php#reserved.variables.serve r -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] re: some problems with php form

2005-10-19 Thread Bruce Gilbert
I now have: plabel for=firstnamespan class=red*/span First Name: /labelbr / input class=?PHP if ($error_msg) {echo error;} else {echo normal;}? id=firstname name=firstname type=text value=?php echo $_POST[firstname;]; ? /p but I still receive the same error: ' *Parse error*: parse error,

RE: [PHP] re: some problems with php form

2005-10-19 Thread Jay Blanchard
[snip] I now have: plabel for=firstnamespan class=red*/span First Name: /labelbr / input class=?PHP if ($error_msg) {echo error;} else {echo normal;}? id=firstname name=firstname type=text value=?php echo $_POST[firstname;]; ? /p You added one too many, change $_POST[firstname;]; to

[PHP] Modular Authoring System

2005-10-19 Thread Sascha Braun
Hi, I am now working on a concept for a webportal software in about 2 and a halv year. As far as I am in the development of the project I was able to write an authoring system with support of unlimited language transla- tions and xml based frontend/screen engine. All html forms and screens are

Re: [PHP] Classes or functions

2005-10-19 Thread Brent Baisley
It's really a matter of comfort level and opinion. There can be strong arguments either way. Using just functions will be faster, although the speed difference may be minimal and not noticeable. Using just functions can be easier and quicker to develop, especially for small projects.

[PHP] concerning open_basedir and safe_mode on fileupload

2005-10-19 Thread twistednetadmin
I am making an imagegallery with fileuploads for the members of the site and need a little info on how the open_basedir affects the fileupload. I have read what I have found on it, but I'm not sure what it really does. The phpinfo file says something like this: PHP CORE config.

Re: [PHP] Re: How can I connect a remote server from phpmyadmin?

2005-10-19 Thread twistednetadmin
I asked my host to set up PHP and MySQL on the server. They had either that or ASP with Access db. I got an adress from them to the PHPmyadmin. I don't think most webhosting companies allows remote access to th DB from the local machines. OffcourseI could be wrong... -Twisted-

[PHP] win32service extension source code

2005-10-19 Thread Evil Worm
Whre can i fid the source code for this extension? it's documented at php.net/win32service and can be downloaded from snaps.php.net/win32/ but the source isn't in the cvs. or did i miss it? -- If you really want something in this life, you have to work for it. Now, quiet! They're about to

Re: [PHP] win32service extension source code

2005-10-19 Thread Jasper Bryant-Greene
On Thu, 2005-10-20 at 02:22 +0300, Evil Worm wrote: Whre can i fid the source code for this extension? it's documented at php.net/win32service and can be downloaded from snaps.php.net/win32/ but the source isn't in the cvs. or did i miss it? http://cvs.php.net/pecl/win32service/ -- Jasper

Re: [PHP] Re: No redirect with header()

2005-10-19 Thread Dotan Cohen
On 10/18/05, Oliver Grätz [EMAIL PROTECTED] wrote: Snippets are bad ;-) Please post a full example that is _not_ working on your server. Perhaps this is no PHP problem at all. I know, but I don't want to post my tracking code. I am certain, however, that it is not returning anything to the

Re: [PHP] Re: No redirect with header()

2005-10-19 Thread Jasper Bryant-Greene
On Thu, 2005-10-20 at 03:22 +0200, Dotan Cohen wrote: On 10/18/05, Oliver Grätz [EMAIL PROTECTED] wrote: Snippets are bad ;-) Please post a full example that is _not_ working on your server. Perhaps this is no PHP problem at all. I know, but I don't want to post my tracking code. I