Re: [PHP] mysql_errror bug on innodb table
Great to hear. Reading my previous post, i am suprised you understood it with all the glaring spelling mistakes :-). Yikes. Sorry about that i typed it in too much of a hurry. [EMAIL PROTECTED] wrote: ok i managed to set the generated error screen to a variable, do the rollback then die H, The mysql_error() fucntion returns the error that took place for the last call to the db. If you do a roll back that would be considered another call and mysql_error() would then return the error (is any) associated with the roll back. If this reason many programmer create a separate error handling routing to watch of db errors and save them elsewhere all the best [EMAIL PROTECTED] wrote: hmm this is tricky, on an innodb table if i do a rollback when i find an error then trigger the error handler which dies to the screen it wont show the message, but i commented out the rollback and it was find, how could i execute the rollback properly then ? hi there i have noticed a bug where mysql_error is not returned on a transaction, why is this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Upload seems to time out over 7.5 M
set_time_limit() takes effect only during actual execution of php script. Take a look at your max_input_time and post_max_size settings. post_max_size should be higher than upload_max_filesize. Dan Anderson wrote: try: set_time_limit(0); // don't time out. By default, if it takes more then 30 seconds (or is it 60?) to execute a web page PHP kills the script. -Dan On Wed, 2003-09-10 at 14:15, Lou Parmelee wrote: Hello all, I couldn't upload any files larger than 2M. So I searched around and found this post last night and I made the changes to the php.ini file to support 20M file uploads. The changes were successful but just like in the post below I can't upload over a 7.5M file now. Any ideas would be much appreciated. Thanks, Lou -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] error socket_recvfrom
Hi guyz, I've just tried a simple script using socket_recvfrom for a simple udp daemon. due a excessive traffic I got error : bWarning/b: socket_recvfrom() unable to recvfrom [11]: Resource temporarily unavailable in budp.php/b on line b94/bbr / udp packet size is fixed 1464 byte. Is there spesific issue about max udp packet or packet/s ? please help Regards, Anang -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail function
Deependra B. Tandukar wrote: Dear all, Recently installed PHP in my Linux server. It says, mail function is not enabled? How is turn this on? mail is handled by the server's smtp program. In Linux, this is sendmail, and should be installed by default. Haven't a clue about Windows (I don't do windows). check for SMTP on the server (assuming Linux) by using the mail command in the console to send yourself a test email (man mail for help) Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Do you really still pay for bandwidth?
Dougd wrote: Do you really still pay for bandwidth? I do. And that makes me very aware of bulky HTML and unnecessary images, which I believe improves my work by forcing me to be efficient. Kae -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Do you really still pay for bandwidth?
On Thursday 11 Sep 2003 10:57, Kae Verens wrote: Dougd wrote: Do you really still pay for bandwidth? I do. And that makes me very aware of bulky HTML and unnecessary images, which I believe improves my work by forcing me to be efficient. Kae Ditto. I pay for my time online. Yes, I pay a flat rate for x hours, but large emails chew into my online time. I just saw a 1k text email that was 95k by the time the html was done. No matter which way you slice it, that 95k email is 95 times less efficient on my connection than the 1k. Or something like that. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and XML help needed
Hi folks How I can put some php code in a XSL template. I have a function that returns a value and I want this value to be entered in a img tag in XSL template? Thanks Bogomil -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multi languages pages - string 2 hexa ????
Hi, I have to create a multi-language web site. The interface language and the content language are different. The interface languages are frensh, english, spannish or portugese, but the content can be english or russian or greek... My idea is to write the string in hexa codes. So is there a simple method in PHP to translater something like this Ïðàâèëà to something like this #1055;#1088;#1072;#1074;#1080;#1083;#1072; ? Is it the right solution? Is there other solution? Does anybody have exerience about this? Thanks for your help. Cheers. Olivier. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: mail function
If you are doing Windows, you set up SMTP in the php.ini to your mail server, mine is SMTP = 192.168.16.2, and I also set up sendmail_from = [EMAIL PROTECTED] -- Kind Regards David Anagram Systems http://www.anagram-sys.co.uk/ http://www.web-planets.com/davec/techsitedb/ Deependra B. Tandukar [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dear all, Recently installed PHP in my Linux server. It says, mail function is not enabled? How is turn this on? Regards, _DT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multi languages pages - string 2 hexa ????
Use unicode and a unicode editor. olivier wrote: Hi, I have to create a multi-language web site. The interface language and the content language are different. The interface languages are frensh, english, spannish or portugese, but the content can be english or russian or greek... My idea is to write the string in hexa codes. So is there a simple method in PHP to translater something like this Ïðàâèëà to something like this #1055;#1088;#1072;#1074;#1080;#1083;#1072; ? Is it the right solution? Is there other solution? Does anybody have exerience about this? Thanks for your help. Cheers. Olivier. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] reverse lookup/domain lookup in PHP
I've got some code doing IP checking using the HTTP header...but would like to improve it Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere? Sounds weird I know but I want to also block a specific domain rather than a range of IPs (as IP addresses can and do change...) and wondering how/if this was possible? thanks Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] multi languages pages - string 2 hexa ????
Olivier Wauters wrote: Hi, Thank you for your reply. The thing is the the content is from a mysql database, and input with a web based application. And the website is totally dynamic. So I try to find the easier solution. So you need to recode the content of mysql tables, you would need to do it anyways even with the hexa codes. recode extension will help you. Then simply put meta HTTP-EQUIV=Content-Type CONTENT=text/html; charset=utf-8 to all head sections of your html pages. Then even the web based input will work. The only problem I see is that mysql does not support unicode, so some features will be missing. Doeas Unicode is UTF8? Yes Thank you. Olivier. - Original Message - From: Marek Kilimajer [EMAIL PROTECTED] To: olivier [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:33 AM Subject: Re: [PHP] multi languages pages - string 2 hexa Use unicode and a unicode editor. olivier wrote: Hi, I have to create a multi-language web site. The interface language and the content language are different. The interface languages are frensh, english, spannish or portugese, but the content can be english or russian or greek... My idea is to write the string in hexa codes. So is there a simple method in PHP to translater something like this Ïðàâèëà to something like this #1055;#1088;#1072;#1074;#1080;#1083;#1072; ? Is it the right solution? Is there other solution? Does anybody have exerience about this? Thanks for your help. Cheers. Olivier. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: reverse lookup/domain lookup in PHP
Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere? you can use exec or similar and to a reverse lookup like that... a traceroute should cover it. please don't copy and paste my code, just giving you an idea of what you'll do... exec(traceroute .$ip. file.tmp) then read the contents of file.tmp and you should be able to get the whole of the traceroute. this brings up certain issues with speed of a traceroute and run times of a script. also there may be a better way of doing this other than piping the contents into a temporary file, but i've had issues with reading what exec() outputs before (or whatever system call function you'd like to use) ... hope this helps a little -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP and Ekit
Hi, You should either try a free JavaScript editor (htmlArea - http://www.dynarch.com/mishoo/htmlarea.epl) or get a commercial one (KTML3 - http://www.interakt.ro/products/KTML) They are much better than a JavaEditors in terms of resources, speed and features. Alexandru -- Alexandru COSTIN Chief Operating Officer http://www.interakt.ro/ +4021 312 5312 Todd Cary [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Has anyone incorporated Ekit with PHP? If you have Java 2 installed, a simple demo of the Java based HTML editor can be seen at http://209.204.172.137/editor/ekit.html Todd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] strange new problem with IE
Hi, For about the past week or so (after getting a new IE update) I've been having strange problems with IE and my PHP scripts. One out of ten times or so, when you click on a link or open a page, IE pops up a file download dialogue instead of displaying the page. It's asking you to open or save the page you are trying to visit. This is on a site that's been working fine for about 6 months. It seems to happen on any type of page, whether it's just grabbing DB content for display, or has a form and is updating a database. Anyone else seeing this? Any thing I can do? Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] strange new problem with IE
[snip] For about the past week or so (after getting a new IE update) I've been having strange problems with IE and my PHP scripts. One out of ten times or so, when you click on a link or open a page, IE pops up a file download dialogue instead of displaying the page. It's asking you to open or save the page you are trying to visit. This is on a site that's been working fine for about 6 months. It seems to happen on any type of page, whether it's just grabbing DB content for display, or has a form and is updating a database. Anyone else seeing this? Any thing I can do? [/snip] What is the URL of the site? That way we can test. The only thing that I can think of is that you may have header declarations in your PHP/HTML which prompts IE to execute the wanna download? routine that IE used to just open. Let's have a look at some code from the top of a page and we may be able to help. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Attention Moderator - Autoresponder Needs Unsubing from list
Each time I send/respond I get an autoresponder from (major snippage to header) Received: from lns.hs.ro (lns.hs.ro [194.102.195.10]) Received: from Aurel ([194.102.195.25]) by lns.hs.ro (8.11.6/8.11.0) with SMTP id h8BBR8s32710 Message-ID: [EMAIL PROTECTED] From: Aurel Tirnovanu [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] From: Aurel Tirnovanu [EMAIL PROTECTED] Subject: Raspuns: The e-mail is blank but contains an attached e-mail in what appears to be Romanian. I am sure that others are getting this. Can a mod please remove them? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mysql Authentication problem
Hi I am having problems using php to access a Mysql database as an authecitcated user. Environment: Solaris 8, apache 1.3.28, php 4.3.1, mysql 3.23.43 My php scripts can connect to the test database using null user and password. However, when I attempt to connect from a php script as user foo password bar I get an Access denied for user [EMAIL PROTECTED] using password=YES. However, this user/password combo is acceptable to the mysql command line client. I assume php is talking to mysql because i can connect as an unauthenticated user to the test database, however when php tries to connect, from localhost, as a valid user, it is not authenticating. The user has both localhost and % host privileges in the mysql permission schema. Where do I look next? Cheers James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql Authentication problem
[snip] The user has both localhost and % host privileges in the mysql permission schema. [/snip] Add the same user with 127.0.0.1 as the host. Make sure you reload (flush) the users table -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] strange new problem with IE
[snip] Well, this is pretty weird. Now I'm trying to look at the site and I can't get it at all. I'm either getting the file download diagloue or this strange error message: php-engine: file /home/k/h/user191796/html/staff/index.php has incorrect uid/gid for effective uid 51 (2116/2116) Below is some code from the top of a page, but this is working in other browsers and everything has worked fine for the past 6 months or so. http://www.rise.org [/snip] It asked me if I wanted to download too, the downloaded file contained the message above. It's not your browser. Remember the PHP is processed server side, so there is an error there. Has the server had any work done to it? P.S. Always make sure to reply-all so that responses get sent to the list unless an off-list request has been made. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql Authentication problem
[snip] [snip] The user has both localhost and % host privileges in the mysql permission schema. [/snip] Add the same user with 127.0.0.1 as the host. Make sure you reload (flush) the users table Any other thoughts? [/snip] What is your connection string? (code) P.S. Always make sure to reply-all so that responses get sent to the list unless an off-list request has been made. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql Authentication problem
[snip] The user has both localhost and % host privileges in the mysql permission schema. [/snip] Add the same user with 127.0.0.1 as the host. Make sure you reload (flush) the users table Any other thoughts? [/snip] What is your connection string? (code) current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not connect : . mysql_error()); print Connected successfully; mysql_select_db(name) or die(Could not select database); print connected; with user = null pass=null name=test then I can access the test db with no probs JH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reverse lookup/domain lookup in PHP
From: Tim Baker [EMAIL PROTECTED] Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere? That's be great if there was a PHP function to do this, something like gethostbyaddr(), wouldn't it? ;) http://us2.php.net/manual/en/function.gethostbyaddr.php It's expensive, though... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mysql Authentication problem
From: James Hamilton [EMAIL PROTECTED] current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not connect : . mysql_error()); print Connected successfully; mysql_select_db(name) or die(Could not select database); print connected; with user = null pass=null name=test then I can access the test db with no probs How did you create this new user? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Get number of line with error
Hi all. I want ask you it exist some way how to get number of line in script producing error. for example: ... ... 100$sql_connection=mysql_connect( ) 101or die ( my_error_report_function ( $line_with_error ) ); ... ... Command at line 100 can produce error. And i need call some function by die() and put number of this line as function parameter. It's for sending mails with error reports at web site. Thanx for any idea Emo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] reverse lookup/domain lookup in PHP
clever clogs ;-) I didn't think PHP would have something like this...DOH! proven wrong again! ;-) Expensive? In server/processor time, money or bandwidth (doubt the latter?) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 14:12 To: Tim Baker; [EMAIL PROTECTED] Subject: Re: [PHP] reverse lookup/domain lookup in PHP From: Tim Baker [EMAIL PROTECTED] Is it possible to reverse lookup (like here http://www.whatismyipaddress.com/reverse.asp) to find the domain with PHP? I assume a DNS lookup requires an external server somewhere? That's be great if there was a PHP function to do this, something like gethostbyaddr(), wouldn't it? ;) http://us2.php.net/manual/en/function.gethostbyaddr.php It's expensive, though... ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and XML help needed
Hi Mr Bogomil, IMHO you should try to do this with xsl:if/ most things that look like it should be delegated to php can in fact be done easily with xsl:if/ or xsl:choose/ best regards raditha Mr. Bogomil Shopov wrote: Hi folks How I can put some php code in a XSL template. I have a function that returns a value and I want this value to be entered in a img tag in XSL template? Thanks Bogomil -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mailing List Programme
Hello: I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser Server Timed Out. How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. Sheni R Meledath [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mysql Authentication problem
On Thu, 11 Sep 2003, CPT John W. Holmes wrote: current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not connect : . mysql_error()); print Connected successfully; mysql_select_db(name) or die(Could not select database); print connected; with user = null pass=null name=test then I can access the test db with no probs How did you create this new user? Using mysql grant statements: originally: grant all privilges on name.* to [EMAIL PROTECTED] identified by 'pass'; grant all privileges on name.* to user@'%' identified by 'pass; and just now grant all privileges on name.* to user@'127.0.0.1'... also tried expanding name.* to *.* JH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Programme
[snip] I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser Server Timed Out. How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. [/snip] At the top of your mail script insert the following line set_time_limit(0); from the command line php myMailScript.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql Authentication problem
[snip] On Thu, 11 Sep 2003, CPT John W. Holmes wrote: current testing code: $link = mysql_connect(localhost, user, pass ) or die(Could not connect : . mysql_error()); print Connected successfully; mysql_select_db(name) or die(Could not select database); print connected; with user = null pass=null name=test then I can access the test db with no probs How did you create this new user? Using mysql grant statements: originally: grant all privilges on name.* to [EMAIL PROTECTED] identified by 'pass'; grant all privileges on name.* to user@'%' identified by 'pass; and just now grant all privileges on name.* to user@'127.0.0.1'... [/snip] And then you flushed (just double checking)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] reverse lookup/domain lookup in PHP
From: Tim Baker [EMAIL PROTECTED] Expensive? In server/processor time, money or bandwidth (doubt the latter?) server/processor time. It can take a while to get a response. Same as doing it from command line. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mailing List Programme
What jay has to say + please look at the archives for this month. You will find this topic discussed quite often. best regards Jay Blanchard wrote: [snip] I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser Server Timed Out. How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. [/snip] At the top of your mail script insert the following line set_time_limit(0); from the command line php myMailScript.php -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] reverse lookup/domain lookup in PHP
Is that a major concern only for high-traffic sites? My site is low traffic...so I assume it'd be OK? Just tried the example now - works gret :-) -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 14:31 To: Tim Baker; [EMAIL PROTECTED] Subject: Re: [PHP] reverse lookup/domain lookup in PHP From: Tim Baker [EMAIL PROTECTED] Expensive? In server/processor time, money or bandwidth (doubt the latter?) server/processor time. It can take a while to get a response. Same as doing it from command line. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Programme
I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but it does the trick. Kind regards Chris Neale Somerfield Stores Ltd. -Original Message- From: Sheni R. Meledath [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 13:23 To: PHP Masters Subject: [PHP] Mailing List Programme Hello: I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser Server Timed Out. How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. Sheni R Meledath [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If you are not the intended recipient of this e-mail, please preserve the confidentiality of it and advise the sender immediately of any error in transmission. Any disclosure, copying, distribution or action taken, or omitted to be taken, by an unauthorised recipient in reliance upon the contents of this e-mail is prohibited. Somerfield cannot accept liability for any damage which you may sustain as a result of software viruses so please carry out your own virus checks before opening an attachment. In replying to this e-mail you are granting the right for that reply to be forwarded to any other individual within the business and also to be read by others. Any views expressed by an individual within this message do not necessarily reflect the views of Somerfield. Somerfield reserves the right to intercept, monitor and record communications for lawful business purposes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mysql Authentication problem
How did you create this new user? Using mysql grant statements: originally: grant all privilges on name.* to [EMAIL PROTECTED] identified by 'pass'; grant all privileges on name.* to user@'%' identified by 'pass; and just now grant all privileges on name.* to user@'127.0.0.1'... [/snip] And then you flushed (just double checking)? Yup. Double checked again (just to make sure) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Programme
[snip] I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but it does the trick. [/snip] Your server timeout would have to be ramped up too. And you can get output to the browser...let's say you are looping while($foo is good){ get data process date flush(information) } http://www.php.net/flush sends info to browser Anyone sense a theme here for me this morning?!? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Get number of line with error
For PHP 4 = 4.3.0: function my_error_report_function($error) { $bt=debug_backtrace(); return $error in {$bt[1][file]} on line {$bt[1][line]}; } in older versions pass __FILE__ and __LINE__ to your function. [cz]Emo wrote: Hi all. I want ask you it exist some way how to get number of line in script producing error. for example: ... ... 100$sql_connection=mysql_connect( ) 101or die ( my_error_report_function ( $line_with_error ) ); ... ... Command at line 100 can produce error. And i need call some function by die() and put number of this line as function parameter. It's for sending mails with error reports at web site. Thanx for any idea Emo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mailing List Programme
You can send some output now and then to the browser (and flush()), or you can send the emails in steps, send first 300 emails, output a form with hidden fields (and text sending emails) containing the offset and use onload=window.document.forms[0].submit() to send the form and so on. Sheni R. Meledath wrote: Hello: I have created an application to read email addresses from a list and to send emails. The problem now I am facing is, if the list is very long then I am getting an error message in the browser Server Timed Out. How can I display a confirmation message and continue sending the emails from the server? That is, trigger a separate script (not related to browser) on the server which handles the emails and then return a success message. Can anybody help me to find out a logic or script on this. Sheni R Meledath [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New Session Ids generated with each page request
My problem is that I get a new Session Id with every request I send to the server. For that reason I am unable to share variables between pages using sessions. (I get a new session Id even I refresh the same page). The code below prints out different session id for page1.php and page2.php. Can someone please help me figure out what would be causing this. on page1.php I have the following code: ?php session_start(); echo SID ? a href=page2.phpNext page /a on page2.php I have the following code ?php session_start(); echo SID ? Moiz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] strange new problem with IE
The server is hosted by Interland. I have a ticket opened with them. It seems to me it must be something with the server because this just started happening all of a suden. Sam - Original Message - From: Jay Blanchard [EMAIL PROTECTED] To: Sam Folk-Williams [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 7:55 AM Subject: RE: [PHP] strange new problem with IE [snip] Well, this is pretty weird. Now I'm trying to look at the site and I can't get it at all. I'm either getting the file download diagloue or this strange error message: php-engine: file /home/k/h/user191796/html/staff/index.php has incorrect uid/gid for effective uid 51 (2116/2116) Below is some code from the top of a page, but this is working in other browsers and everything has worked fine for the past 6 months or so. http://www.rise.org [/snip] It asked me if I wanted to download too, the downloaded file contained the message above. It's not your browser. Remember the PHP is processed server side, so there is an error there. Has the server had any work done to it? P.S. Always make sure to reply-all so that responses get sent to the list unless an off-list request has been made. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Programme
With max_execution_time directive in PHP.ini? I suppose I must have changed that at some point too. I've tried using flush() before but without much luck, and from what I've read in the manual I think it might be because I'm running my setup on a Windows machine with IE6. A problem with client-side buffering... C -Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 13:36 To: Neale Chris; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Mailing List Programme [snip] I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but it does the trick. [/snip] Your server timeout would have to be ramped up too. And you can get output to the browser...let's say you are looping while($foo is good){ get data process date flush(information) } http://www.php.net/flush sends info to browser Anyone sense a theme here for me this morning?!? If you are not the intended recipient of this e-mail, please preserve the confidentiality of it and advise the sender immediately of any error in transmission. Any disclosure, copying, distribution or action taken, or omitted to be taken, by an unauthorised recipient in reliance upon the contents of this e-mail is prohibited. Somerfield cannot accept liability for any damage which you may sustain as a result of software viruses so please carry out your own virus checks before opening an attachment. In replying to this e-mail you are granting the right for that reply to be forwarded to any other individual within the business and also to be read by others. Any views expressed by an individual within this message do not necessarily reflect the views of Somerfield. Somerfield reserves the right to intercept, monitor and record communications for lawful business purposes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] pdf2txt or rtf
I am looking for a php class which is able to read a pdf file and dump the content in txt or rtf format file. Any solutions? Regards -- Peter Rinab eHelp24 Allescherstrasse 32 81479 München Tel.: +49/89/74909-445 Fax.:+49/89/74909-351 Mobil: +49/171/4222676 www.eHelp24.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] pdf2txt or rtf
[snip] I am looking for a php class which is able to read a pdf file and dump the content in txt or rtf format file. Any solutions? [/snip] Tons http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=pdf2txt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] New Session Ids generated with each page request
From: Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED] My problem is that I get a new Session Id with every request I send to the server. For that reason I am unable to share variables between pages using sessions. (I get a new session Id even I refresh the same page). The code below prints out different session id for page1.php and page2.php. Can someone please help me figure out what would be causing this. on page1.php I have the following code: ?php session_start(); echo SID ? a href=page2.phpNext page /a on page2.php I have the following code ?php session_start(); echo SID ? Your browser is not accepting the session cookie for some reason. Change your link to this: a href=page2.php?=SID?Next Page/a and it'll work. You'll either have to pass the SID in every link/form, or figure out why cookie aren't working. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to access a program outside of PHP?
Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. I meant to do this: $szPipe = `/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`; Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in my country :-) for example if you want to invoke ls from php you just type $result = `ls`; hey presto the output from ls is now in your $result variable. Ohhh okay. Well if you mean to do this, $szPipe = popen(`/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`, r);. This does not seem change anything. If I do this with the system() example, I get Warning: system(): Cannot execute a blank command in /htdocs/index.php on line 14. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] pdf2txt or rtf
On Thu, 2003-09-11 at 08:37, Peter Rinab wrote: I am looking for a php class which is able to read a pdf file and dump the content in txt or rtf format file. Any solutions? There is a *NIX program for this, 'pdftotext' which you could execute from PHP. Would that suffice? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to access a program outside of PHP?
btw have you checked if you are in safe_mode? in php.ini error level can also be set in php.ini my guess is that you have a problem in your chroot setup. best regards Adam Douglas wrote: Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. I meant to do this: $szPipe = `/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`; Backticks is simply the ` sign (usually the character above the tab). Popularly know as `hair on the ear` in my country :-) for example if you want to invoke ls from php you just type $result = `ls`; hey presto the output from ls is now in your $result variable. Ohhh okay. Well if you mean to do this, $szPipe = popen(`/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`, r);. This does not seem change anything. If I do this with the system() example, I get Warning: system(): Cannot execute a blank command in /htdocs/index.php on line 14. -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Mailing List Programme
Hi, Many thanks for the details. Now the problem is Flush() is not working on my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The page displays the title and then waits for teh complete script to execute. I am using IE 6.0 to browse the page. At 08:36 AM 9/11/03 -0500, you wrote: [snip] I've used the following line in some of my scripts, some of which run for 10 or 15 minutes. set_time_limit(0); The server won't time out, but it takes a while to get anything back to the browser. It's not ideal, because it takes some time before anything gets sent back to the browser, but it does the trick. [/snip] Your server timeout would have to be ramped up too. And you can get output to the browser...let's say you are looping while($foo is good){ get data process date flush(information) } http://www.php.net/flush sends info to browser Anyone sense a theme here for me this morning?!? Sheni R Meledath [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Mailing List Programme
From: Sheni R. Meledath [EMAIL PROTECTED] Many thanks for the details. Now the problem is Flush() is not working on my server (UNIX/Apache 1.3). Are there any issues with Unix servers. The page displays the title and then waits for teh complete script to execute. I am using IE 6.0 to browse the page. The content could still be cached servers side or client side before being displayed. If you're using tables. IE may wait until /table until it displays the content. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] How to access a program outside of PHP?
No I have Safe_Mode = off. I also have error_reporting = E_ALL and display_errors = on and I have php errors to log to a log file. I have no log file of php errors nor is there an error being display on the page. Geez this is frustrating, yeah that's what I figure but you would think there can be something done about this or at least get some error message to determine what is going on. btw have you checked if you are in safe_mode? in php.ini error level can also be set in php.ini my guess is that you have a problem in your chroot setup. Adam Douglas wrote: Mmm... okay. I tried that and nothing. Is there no way for me to determine what the problem is? Error message some place, log file, etc? I do not understand why this is not work. Even a simple example from the PHP manual on system() does not work. I meant to do this: $szPipe = `/htdocs/gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=/htdocs/merged.pdf /htdocs/Sep08-113518.pdf /htdocs/Sep08-113523.pdf`; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Single Quotes vs Double Quotes
With all that's been said in mind ('$var' unparsed $var parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n \r \t etc) then used double quotes, otherwise use single quotes... it conserves processing. -dd Micro Brew [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi everyone, Could somebody please explain to me the difference between single quotes and double quotes in PHP. It seems like they can be used interchangeably a lot in PHP but not always. For example: This works: header('Location: http://somedomain.com') This does not work: header('Location: $url') This works: header(Location: $url) Why??? Sorry if this has been asked before, but I didn't find a suitable answer in the archives. TIA. Mike __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PREG-pattern, help needed
Hi Tobias, This matches more than you'd like because [td] will match anything that has a t in it or a d in it. More generally anything in brackets means the RegExp will try to match something from that set. What you might want is this: preg_replace('/td[^]*/i', td id='$counter'); The preg replaces td or td with stuff inside to what you wanted. -d Tobias Talltorp [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need help with a preg-pattern for preg_replace_callback(). I need to match td(+all properties) and replace them with td id=$counter. // this pattern is all wrong, since it matches and replaces all tags echo preg_replace_callback(|([td][^]+)|i, bla, $html); ? Any thoughts? // Tobias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] crypt problem
Hi, I have a weird problem with the crypt function. If I do: ?php echo(CRYPT_SALT_LENGTH); echo(CRYPT_MD5); echo crypt(, 'aa'); echo crypt(, '$1$kTzSYf0n$'); ? It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It should be in MD5 if I read the doc correctly. My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.18-27 kernel, apache 1.3.27 and the configure string: './configure' '--with-mysql' '--with-apache=../apache' '--with-gettext' '--with-xml' '--with-dom' '--with-imap=../imap' '--enable-mime-magic' '--with-iconv' '--enable-mbstring' '--with-zlib' '--enable-calendar' '--with-imap-ssl' '--with-mcrypt' Is it something I do wrong or something wrong in my system? Thank you. -- Serge Grondin Technicien en Informatique Commission Scolaire des Bois-Francs Tel. bur.: (819) 758-6453, poste 2920 e-Mail bur.: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] crypt problem
Hi, I have a weird problem with the crypt function. If I do: ?php echo(CRYPT_SALT_LENGTH); echo(CRYPT_MD5); echo crypt(, 'aa'); echo crypt(, '$1$kTzSYf0n$'); It print: 12 1 aat2dQ.feSqBI $1qjC9EADQ1x6 It seem that the second password is not encrypted in MD5 but with DES. It should be in MD5 if the doc is correct. My PHP version is 4.3.1 and compiled on a RedHat 7.3 with the 2.4.18-27 kernel, apache 1.3.27 and the configure string: './configure' '--with-mysql' '--with-apache=../apache' '--with-gettext' '--with-xml' '--with-dom' '--with-imap=../imap' '--enable-mime-magic' '--with-iconv' '--enable-mbstring' '--with-zlib' '--enable-calendar' '--with-imap-ssl' '--with-mcrypt' Is it something I do wrong or something wrong in my system? Thank you. -- Serge Grondin Technicien en Informatique Commission Scolaire des Bois-Francs Tel. bur.: (819) 758-6453, poste 2920 e-Mail bur.: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Function calls and strings
Hello. PHP possesses what the manual calls complex syntax for allowing one to include non-trivial expressions in strings, e.g.: $s = The result is {$results[$foo]}.; I seek to find out whether PHP also has a syntax to allow function calls within a string, so that explicit concatenation is not needed. E.g.: something like: $s = The result is {getResult($foo)}.; as opposed to $s = The result is . getResult($foo) . .; If that is not possible, I would appreciate if someone could suggest the rationale. Thank you, -- Ney André de Mello Zunino -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Refresh Error
Okay, I'm displaying an entire table of numbers from my database. Using a form on the same page, you can enter an amount to add to the table and then click submit. I pass all of the information in $_POST back to the same page. Here is my code: if ($_POST[number] != NULL) { if (is_numeric($_POST[number]) || $_POST[number] = 0.0){ ... display stuff telling them they need to try again ... } else { ... do stuff that adds the number to the table ... $_POST[number] = NULL; } } ...body of HTML document... form method=POST action=table.php table border=0 cellpadding=5 tr td align=rightAdd Amount/td tdinput type=text name=number/td /tr tr td colspan=2centerinput type=submit value=Click to Submit/center/td /tr /table /form Everything seems to work fine, up until you click the refresh button, then it will add whatever you just added to the table again, even if you have nothing typed into the form and dont hit the submit button. So basically I can add 500 by typing it in and clicking the submit button, then continue to add an addition 500 every time I click the submit button. I want to be able to refresh the page, but I cant figure out what is going wrong. Any ideas? Rex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] storing quotes into a variable
isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = a href=# onclick=popWindow('popup.php') thanks... -- http://www.phreshdesign.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: storing quotes into a variable
I think you just have to escape every double quote that you want to be a part of the HTML code like this -- / That should work. I dont think you have to escape the single quotes, but I could be wrong. Doug Parker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = a href=# onclick=popWindow('popup.php') thanks... -- http://www.phreshdesign.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] storing quotes into a variable
$perf_mod = 'a href=# onclick=popWindow(\'popup.php\')'; using \ to escape the ' \ escapes special characters. See the manual. Regards Chris -Original Message- From: Doug Parker [mailto:[EMAIL PROTECTED] Sent: 11 September 2003 15:44 To: [EMAIL PROTECTED] Subject: [PHP] storing quotes into a variable isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = a href=# onclick=popWindow('popup.php') thanks... -- http://www.phreshdesign.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php If you are not the intended recipient of this e-mail, please preserve the confidentiality of it and advise the sender immediately of any error in transmission. Any disclosure, copying, distribution or action taken, or omitted to be taken, by an unauthorised recipient in reliance upon the contents of this e-mail is prohibited. Somerfield cannot accept liability for any damage which you may sustain as a result of software viruses so please carry out your own virus checks before opening an attachment. In replying to this e-mail you are granting the right for that reply to be forwarded to any other individual within the business and also to be read by others. Any views expressed by an individual within this message do not necessarily reflect the views of Somerfield. Somerfield reserves the right to intercept, monitor and record communications for lawful business purposes. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php editor
I think the BEST php editor out there is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy it's has substantially more features than other cheaper editors. 4. It uses far more memory, so it remembers more stuff. 5. I can seamlessly integrate .NET into my PHP code 6. I don't have to waste my time with integrated debuggers 7. It automatically generates obfuscated code 8. I don't have to worry about those annoying GPL or LGPL licenses 9. Runs great on SuSE 10. When it crashes I know I need to take my ergonomic break 11. When loading large projects I have plenty of time to make myself a cup of tea, or if I'm out of tea, to drive to the store to buy some tea, return, brew a cup, read slashdot, take a shower 12. The outstanding support of PHP at Microsoft. Read about Microsoft's support of PHP here: www.microsoft.com/php Read about Microsoft's integration of PHP and Visual Studio here: www.microsoft.com/vstudio/support/php -- Now if you're serious. Do us all a favor. Do a little research first. This question has been answered on so many sites/newsgroups. -alternatively- the best php editor out there is the one that you use. -- I do like my first answer the best. heh. -- If you made it this far, try this page: http://www.php-editors.com/result.php?showall=y Ironically Yours, Chris -Original Message- From: STONE Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 3:21 AM To: php mailing list Subject: [PHP] php editor What's the best php editor out there? Thanks in advance for nay replies! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php editor
*ROFL* Rob. On Thu, 2003-09-11 at 12:54, Chris Hubbard wrote: I think the BEST php editor out there is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy it's has substantially more features than other cheaper editors. 4. It uses far more memory, so it remembers more stuff. 5. I can seamlessly integrate .NET into my PHP code 6. I don't have to waste my time with integrated debuggers 7. It automatically generates obfuscated code 8. I don't have to worry about those annoying GPL or LGPL licenses 9. Runs great on SuSE 10. When it crashes I know I need to take my ergonomic break 11. When loading large projects I have plenty of time to make myself a cup of tea, or if I'm out of tea, to drive to the store to buy some tea, return, brew a cup, read slashdot, take a shower 12. The outstanding support of PHP at Microsoft. -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul.| `-' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php editor
On Thu, 11 Sep 2003 08:54:06 -0800 Chris Hubbard [EMAIL PROTECTED] wrote: I think the BEST php editor out there is Microsoft's Visual Studio. You should've posted this before I got all invested with Nedit, Linux and the like... Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy it's has substantially more features than other cheaper editors. 4. It uses far more memory, so it remembers more stuff. 5. I can seamlessly integrate .NET into my PHP code 6. I don't have to waste my time with integrated debuggers 7. It automatically generates obfuscated code 8. I don't have to worry about those annoying GPL or LGPL licenses 9. Runs great on SuSE 10. When it crashes I know I need to take my ergonomic break 11. When loading large projects I have plenty of time to make myself a cup of tea, or if I'm out of tea, to drive to the store to buy some tea, return, brew a cup, read slashdot, take a shower 12. The outstanding support of PHP at Microsoft. Read about Microsoft's support of PHP here: www.microsoft.com/php Read about Microsoft's integration of PHP and Visual Studio here: www.microsoft.com/vstudio/support/php -- Now if you're serious. Do us all a favor. Do a little research first. This question has been answered on so many sites/newsgroups. -alternatively- the best php editor out there is the one that you use. -- I do like my first answer the best. heh. -- If you made it this far, try this page: http://www.php-editors.com/result.php?showall=y Ironically Yours, Chris -Original Message- From: STONE Steven [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 3:21 AM To: php mailing list Subject: [PHP] php editor What's the best php editor out there? Thanks in advance for nay replies! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Regards, Andu Novac -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php editor
Thanks for starting my day out with a chuckle.. this is one of the better tongue in cheek items I have seen in a little bit Chris I think the BEST php editor out there is Microsoft's Visual Studio. Here's some of the reasons I think Visual Studio is the BEST 1. None of that annoying syntax highlighting that you find in many other editors 2. Unlimited technical support (at only $245 per call) 3. At $1000 - $2500 per copy it's has substantially more features than other cheaper editors. 4. It uses far more memory, so it remembers more stuff. 5. I can seamlessly integrate .NET into my PHP code 6. I don't have to waste my time with integrated debuggers 7. It automatically generates obfuscated code 8. I don't have to worry about those annoying GPL or LGPL licenses 9. Runs great on SuSE 10. When it crashes I know I need to take my ergonomic break 11. When loading large projects I have plenty of time to make myself a cup of tea, or if I'm out of tea, to drive to the store to buy some tea, return, brew a cup, read slashdot, take a shower 12. The outstanding support of PHP at Microsoft. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] AIX + PHP EXTENSION MODULE DOES NOT WORK
Hi , I am writing a php extension module on AIX 4.3.3 RS6000 machine.I have compiled php as CGI.When I test my php extension module function from a test php script I get a CORE dump.The gdb php core is as below Core was generated by `php'. Program terminated with signal 11, Segmentation fault. #0 0xd0990180 in zend_parse_parameters () (gdb) bt #0 0xd0990180 in zend_parse_parameters () #1 0xd0990930 in zif_myfunction () #2 0x1002c5a4 in execute (op_array=0x200e6c70, tsrm_ls=0x20027738) at /usr/local/php-4.3.2/Zend/zend_execute.c:1606 #3 0x1000e0d4 in zend_execute_scripts (type=8, tsrm_ls=0x20027738, retval=0x0, file_count=3) at /usr/local/php-4.3.2/Zend/zend.c:869 #4 0x10007410 in php_execute_script (primary_file=0x5, tsrm_ls=0x3027738) at /usr/local/php-4.3.2/main/main.c:1671 #5 0x10001ec8 in main (argc=2, argv=0x2ff228c0) at /usr/local/php-4.3.2/sapi/cgi/cgi_main.c:1501 #6 0x11dc in __start () I have tried all combinations of ZTS=0 ZEND_DEBUG =0 ZTS=0 ZEND_DEBUG =1 ZTS=1 ZEND_DEBUG =0 ZTS=1 ZEND_DEBUG =1 for compiling php as well as my extension module. All give the same result :-( Has anyone encountered this on a AIX machine. If not atleast has anyone successfully tested a PHP extension module on a AIX machine.I urgently need some Help.No matter what I tried till now All has failed. Thanks Regards Ashish Borkar - Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software
[PHP] Problem with HTML Text box and PHP variable.
I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is Hello the line below will render it correctly echo tdinput type=text name=value.$j.$i. size=20 value=.$myString./td; However if the value of $myString is Hello 1 then the line above will populate the text box with only Hello and it will loose the 1 If I change the problem line to the following: echo td.$myString./td; I don't have a problem. Hello 1 will be rendered correctly. But then I don't have a text box to edit the value. Please help. Thanks Moiz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
Proper HTML attribute values are surrounded by double quotes. Otherwise in sloppy mode, the HTML parser sees the pace between Hello and 1 and things a new attribute by the name of 1 has been encountered. Cheers, Rob. On Thu, 2003-09-11 at 13:05, Golawala, Moiz M (IndSys, GE Interlogix) wrote: I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is Hello the line below will render it correctly echo tdinput type=text name=value.$j.$i. size=20 value=.$myString./td; However if the value of $myString is Hello 1 then the line above will populate the text box with only Hello and it will loose the 1 If I change the problem line to the following: echo td.$myString./td; I don't have a problem. Hello 1 will be rendered correctly. But then I don't have a text box to edit the value. Please help. Thanks Moiz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- .-. | Worlds of Carnage - http://www.wocmud.org | :-: | Come visit a world of myth and legend where | | fantastical creatures come to life and the | | stuff of nightmares grasp for your soul.| `-' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
try closing the value sections with single quotes that way the html processiing can see the value it was echo tdinput type=text name=value.$j.$i. size=20 value=.$myString./td; now is echo tdinput type=text name=value'.$j.$i.' size=20 value='.$myString.'/td; - Original Message - From: Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 10:05 AM Subject: [PHP] Problem with HTML Text box and PHP variable. I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is Hello the line below will render it correctly echo tdinput type=text name=value.$j.$i. size=20 value=.$myString./td; However if the value of $myString is Hello 1 then the line above will populate the text box with only Hello and it will loose the 1 If I change the problem line to the following: echo td.$myString./td; I don't have a problem. Hello 1 will be rendered correctly. But then I don't have a text box to edit the value. Please help. Thanks Moiz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: URGENT BUSINESS RELATIONSHIP
God!!! This crap is even following me to the newsgroups! Shadow -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] some kind of redirection (not the header function)
Hi!!! Im programming a site in PHP, where I want to do the following: I will have a set of different directories, where each directory must execute the same PHP pages, but giving as result different data, according to the directory where you are located (obtained by $_SERVER[PHP_SELF] for example). For example I have: http://www.domain.com/directoryA/ http://www.doamin.com/directoryB/ So each one must have (or should act as if they had) the same PHP pages and directories under them. The solution I thought, as copying each page in every directory makes no sense (if I modify the code Ill have to change all the pages in all directories), is to have an includes directory. where I put all the PHP pages, and in each of the different directories I create pages that simply include or require the ones from the include directories. That way Ill only modify code inone place.. Now.. is there any better way to achieve this?? I thought that maybe with some Apache stuff, but I dont think there something that will help, since directives such as RedirectMatch, etc. rewrite the URL, and I dont want that, I want the URL to remain http://www.domain.com/directoryX/whatever.php Is there any way to do this, or I should stick up with the includes?? Thnx in advance, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
This will help you ?php $dins=Dinesh; echo input type=text name=dins class='textbox' value='$dins' ; ? -Murugesan - Original Message - From: Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 10:35 PM Subject: [PHP] Problem with HTML Text box and PHP variable. I am having a problem with rendering PHP variables in an HTML text box. If the value of $myString is Hello the line below will render it correctly echo tdinput type=text name=value.$j.$i. size=20 value=.$myString./td; However if the value of $myString is Hello 1 then the line above will populate the text box with only Hello and it will loose the 1 If I change the problem line to the following: echo td.$myString./td; I don't have a problem. Hello 1 will be rendered correctly. But then I don't have a text box to edit the value. Please help. Thanks Moiz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database to set the directory that they would work in. The directory name could be passed from script to script or stored in sessions. Ed On Thu, 11 Sep 2003, Juan Nin wrote: Hi!!! I´m programming a site in PHP, where I want to do the following: I will have a set of different directories, where each directory must execute the same PHP pages, but giving as result different data, according to the directory where you are located (obtained by $_SERVER[´PHP_SELF´] for example). For example I have: http://www.domain.com/directoryA/ http://www.doamin.com/directoryB/ So each one must have (or should act as if they had) the same PHP pages and directories under them. The solution I thought, as copying each page in every directory makes no sense (if I modify the code I´ll have to change all the pages in all directories), is to have an includes directory. where I put all the PHP pages, and in each of the different directories I create pages that simply include or require the ones from the include directories. That way I´ll only modify code inone place.. Now.. is there any better way to achieve this?? I thought that maybe with some Apache stuff, but I don´t think there¶ something that will help, since directives such as RedirectMatch, etc. rewrite the URL, and I don´t want that, I want the URL to remain http://www.domain.com/directoryX/whatever.php Is there any way to do this, or I should stick up with the includes?? Thnx in advance, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Using a jpGraph image in an FPDF pdf output...
Has anyone ever suceesfully embedded a jpGraph image in an FPDF output? FPDF uses this function for an image $pdfGraph-Image('grfx/image.jpg', 15, 20, 50, 0, 'JPG'); but when image.jpg is created with jpgraph it throws errors. I am sure that I am missing something quite obvious, but alas I cannot see it. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
On Thu, 2003-09-11 at 15:39, Ed Curtis wrote: Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database to set the directory that they would work in. The directory name could be passed from script to script or stored in sessions. The beheaviour I want to acomplish is the same as in yahoorgoups. You can access a mian page, where you login and have a list of all the groups you are subscribe to. You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/ There it displays the page for your group with all its characteristics. The same behaviour if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc That what I ant to do :) Any ideas? thnx again, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] rename()
This is probably an easy question but I have been looking at this code for a while and it is all blurry..:) I have an uploaded image in a temp file that I want to rename and put in another folder. I am using rename() which works fine, the problem is, I want to force an overwrite if the file already exists. For example, I am allowing customers to upload an image for a certain product (row) in the db, I get the row id and rename the image to a guid while they preview, then move it into the permanent folder and rename it to image_$rowid. They only get one picture per row so if they want to change the picture, I want to do the same process and just overwrite the old picture with the new one when doing the rename. Problem is, the rename throws errors if the image name already exists. So I have added unlink() do delete the imagebut then I have to add code to only delete if the image already exists...I am just looking for an easy way to rename,move, and overwrite all in one step. If anyone cares, I am working with oscommerce and trying to prevent different users from uploading a picture with the same name, that is why I am trying to rename the image to image_$rowid. Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
I'm pretty sure that YahooGroups uses cookies for this to hold values while you're not on their site. When you return it checks for the cookies and reloads the values from the last visit. You can accomplish this with PHP as well. Ed On Thu, 11 Sep 2003, Juan Nin wrote: On Thu, 2003-09-11 at 15:39, Ed Curtis wrote: Is there any type of criteria that would point a user to directoryA or directoryB? I recently rebuilt a site that handled a couple thousand different working directories for clients but used only one set of scripts for all. The user would have to login and variables were pulled from a database to set the directory that they would work in. The directory name could be passed from script to script or stored in sessions. The beheaviour I want to acomplish is the same as in yahoorgoups. You can access a mian page, where you login and have a list of all the groups you are subscribe to. You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/ There it displays the page for your group with all it´s characteristics. The same behaviour if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc That¶ what I ant to do :) Any ideas? thnx again, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
I thought that maybe with some Apache stuff, but I dont think there something that will help, since directives such as RedirectMatch, etc. rewrite the URL, and I dont want that, I want the URL to remain http://www.domain.com/directoryX/whatever.php mod_rewrite allows you to do internal redirects. This would keep your user's URL the same, but actually point to a different page internally. This is, of course, depends on whether you or your host have mod_rewrite installed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
On Thu, 2003-09-11 at 16:04, Ed Curtis wrote: I'm pretty sure that YahooGroups uses cookies for this to hold values while you're not on their site. When you return it checks for the cookies and reloads the values from the last visit. You can accomplish this with PHP as well. thats clear, I know that, but that not what I want... I mean, the thing is that I want to execute the same PHP scripts, no matter what directory Im in, but show data according to what directory Im in, exactly the same that happens with yahoogroups and its groups thats why Im thinking in putting the PHP pages in each directory which just include the common PHPs from an include directory (could use hard links either, but I prefer doing it via PHP and not depend on Os stuff) so thats what Im asking, if theres a better way to achieve this, not talking about cookies :) Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
On Thu, 2003-09-11 at 16:20, Peter James wrote: mod_rewrite allows you to do internal redirects. This would keep your user's URL the same, but actually point to a different page internally. This is, of course, depends on whether you or your host have mod_rewrite installed. cool, it was the first thing I had thought off, but after giving a quick look at it I thought it rewrited the URLs... I´ll take a better look at it!!! Thanks!!! I guess there´s no way to do something like this only with PHP, without Apache conf, is there? thnx again, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
From: murugesan [EMAIL PROTECTED] This will help you ?php $dins=Dinesh; echo input type=text name=dins class='textbox' value='$dins' ; ? Use double quotes for HTML attributes. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] some kind of redirection (not the header function)
From: Juan Nin [EMAIL PROTECTED] The beheaviour I want to acomplish is the same as in yahoorgoups. You can access a mian page, where you login and have a list of all the groups you are subscribe to. You click on the link to each one and it redirects you to: http://groups.yahoo.com/groups/yourGroup/ There it displays the page for your group with all its characteristics. The same behaviour if you access that URL directly. Or you can also access http://groups.yahoo.com/groups/yourGroup/messages/ etc That what I ant to do :) Any ideas? This is doable. It's discussed on here often. Basically, you use an apache command to FORCE groups to be a PHP file. Then the remainder of the URL is available in $_SERVER['REQUEST_URI']. You parse that to determine what group the user is after, retrieve the content, and show it. Search the archives or google for search friendly urls and you should get some good tutorials or instructions. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] rename()
From: Edward Peloke [EMAIL PROTECTED] This is probably an easy question Yep.. ;) I have an uploaded image in a temp file that I want to rename and put in another folder. I am using rename() which works fine, the problem is, I want to force an overwrite if the file already exists. [snip] You should use move_uploaded_file(), which will overwrite the destination file if it exists. It also has the added security that rename() does not in that it will ENSURE the file actually came from an HTTP POST operation. http://us2.php.net/manual/en/function.move-uploaded-file.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Access Violation at 77XXXXX on Windows
Hello, I have encountered the error message PHP has encountered an Access Violation at 77X as described in the http://bugs.php.net/bug.php?id=17563 bug. The reported bug only relates to MSSQL, but the application I'm working on uses MySQL. Could this error occur due to other Win-related probelms? Like file locking or cacheing? The problematic application runs on Win2000, IIS 5 and PHP 4.3.2. (I have never run across the problem on any of several Linux-hosted applications.) Thanks for all help, mats d. -- mats dahlgrenSSSK's web:http://www.sssk.se/ [EMAIL PROTECTED]Skridskonätet: http://www.skridsko.net/ Täby, Sweden -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] rename()
Thanks John, I had actually looked that one up not to long ago...I just had a nice 'ping-pong' break (helps me think :)) and I might re-write it anyway, but I will still be using the move_uploaded_file() this time. Thanks, Eddie -Original Message- From: CPT John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:19 PM To: Edward Peloke; [EMAIL PROTECTED] Php. Net Subject: Re: [PHP] rename() From: Edward Peloke [EMAIL PROTECTED] This is probably an easy question Yep.. ;) I have an uploaded image in a temp file that I want to rename and put in another folder. I am using rename() which works fine, the problem is, I want to force an overwrite if the file already exists. [snip] You should use move_uploaded_file(), which will overwrite the destination file if it exists. It also has the added security that rename() does not in that it will ENSURE the file actually came from an HTTP POST operation. http://us2.php.net/manual/en/function.move-uploaded-file.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php editor
Dreamweaver MX 2004. - zerof -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP 4.3.3 Install, Errors??
Hi. I have a machine that's been freshly installed with PHP 4.1.1. I wanted to upgrade it to PHP 4.3.3. So I did the following below as SU and received the below errors. Is this something I should be worried about? How can I resolve the errors? Never have had this happen before in the past. I ran phpinfo() and it shows PHP 4.3.3, but is the install of PHP okay? If you require any additional information let me know, thanks! # make install Installing PHP CLI binary:/usr/local/bin/ Installing PHP CLI man page: /usr/local/man/man1/ Installing PHP SAPI module: apache [activating module `php4' in /var/www/conf/httpd.conf] cp libs/libphp4.so /usr/lib/apache/modules/libphp4.so chmod 755 /usr/lib/apache/modules/libphp4.so cp /var/www/conf/httpd.conf /var/www/conf/httpd.conf.bak cp /var/www/conf/httpd.conf.new /var/www/conf/httpd.conf rm /var/www/conf/httpd.conf.new Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20020429/ Installing PEAR environment: /usr/local/lib/php/ Parse error: parse error in /usr/files/storage/Software/php-4.3.3/pear/package-Archive_Tar.xml on line 1 *** Error code 255 Stop in /usr/files/storage/Software/php-4.3.3 (line 263 of Makefile). *** Error code 1 Stop in /usr/files/storage/Software/php-4.3.3 (line 269 of Makefile). -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] storing quotes into a variable
Doug Parker wrote: isn't there a function that allows me to store a string with a bunch of quotes in it (like an html tag) into a variable? for example, i need something like: $perf_mod = a href=# onclick=popWindow('popup.php') http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Attention Moderator - Autoresponder Needs Unsubing from list
I get the same. (Although [EMAIL PROTECTED] is now being filtered to the trash. :-D ) -Dan On Thu, 2003-09-11 at 07:34, Jay Blanchard wrote: Each time I send/respond I get an autoresponder from (major snippage to header) Received: from lns.hs.ro (lns.hs.ro [194.102.195.10]) Received: from Aurel ([194.102.195.25]) by lns.hs.ro (8.11.6/8.11.0) with SMTP id h8BBR8s32710 Message-ID: [EMAIL PROTECTED] From: Aurel Tirnovanu [EMAIL PROTECTED] Return-Path: [EMAIL PROTECTED] From: Aurel Tirnovanu [EMAIL PROTECTED] Subject: Raspuns: The e-mail is blank but contains an attached e-mail in what appears to be Romanian. I am sure that others are getting this. Can a mod please remove them? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] getting download resume to work
I am trying to get the ability to resume broken downloads with a client (such as FlashGet, GetRight, etc...) I am able to download the complete file without resume and everything works properly, but, when using a download manager, if I break the download then continue, the byte count never matches up. I am checking for the $_ENV['HTTP_RANGE'] and setting up my headers based on this info. But, the byte count continues to be incorrect. Could someone point me in the right direction? Thanks in advance for any assistance. Below you will find my code ?php session_cache_limiter('public'); session_start(); set_time_limit(0); $file=$_REQUEST['file']; $extstart=strpos($file, .); $ext=substr($file, $extstart+1); $dir=d:\\downloadable_courses; $size=filesize($dir.\\.$file); header(Accept-Ranges: bytes); if(isset($_ENV['HTTP_RANGE'])) { list($a, $range)=explode(=,$_ENV['HTTP_RANGE']); str_replace($range, -, $range); $size2=$size-1; header(Content-Range: $range$size2/$size); $new_length=$size2-$range; header(Content-Length: $new_length); } else { $size2=$size-1; header(Content-Range: bytes 0-$size2/$size); header(Content-Length: .$size2); } header(Content-Type: application/.$ext); header(Content-Disposition: inline; filename=$file); $fp=fopen($dir.\\.$file, rb); fpassthru($fp); exit; ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Integrating an Applet with PHP
I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn how to take the output from an Applet and put it into a PHP variable. Since I have no experience with Java, I am at a disadvantage, so if someone could point me toward some literature that explains this or if someone already has the experience and can look at the source and tell me how, it would be greatly appreciated. http://209.204.172.137/editor/ekit.php Todd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
Why do you say that? Jim Lucas - Original Message - From: CPT John W. Holmes [EMAIL PROTECTED] To: murugesan [EMAIL PROTECTED]; Golawala, Moiz M (IndSys, GE Interlogix) [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, September 11, 2003 11:56 AM Subject: Re: [PHP] Problem with HTML Text box and PHP variable. From: murugesan [EMAIL PROTECTED] This will help you ?php $dins=Dinesh; echo input type=text name=dins class='textbox' value='$dins' ; ? Use double quotes for HTML attributes. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Integrating an Applet with PHP
There may be other methods, but one that seems to be available from your form will require some JavaScript code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below). document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText(); I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the hidden value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below; $htmltext = $_POST[hiddenfld]; hope this helps, Warren Vail -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 3:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Integrating an Applet with PHP I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn how to take the output from an Applet and put it into a PHP variable. Since I have no experience with Java, I am at a disadvantage, so if someone could point me toward some literature that explains this or if someone already has the experience and can look at the source and tell me how, it would be greatly appreciated. http://209.204.172.137/editor/ekit.php Todd -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Integrating an Applet with PHP
Warren - That works... http://209.204.172.137/editor/ekit.php Now the next challenge is to put the value in $text into the HTML editor with some _javascript_...any suggestions? Todd Vail, Warren wrote: There may be other methods, but one that seems to be available from your form will require some _javascript_ code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below). document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText(); I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below; $htmltext = $_POST["hiddenfld"]; hope this helps, Warren Vail -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 11, 2003 3:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Integrating an Applet with PHP I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn how to take the output from an Applet and put it into a PHP variable. Since I have no experience with Java, I am at a disadvantage, so if someone could point me toward some literature that explains this or if someone already has the experience and can look at the source and tell me how, it would be greatly appreciated. http://209.204.172.137/editor/ekit.php Todd -- inline: NewLogo.gif
RE: [PHP] Escaping the ' character
Dan Anderson mailto:[EMAIL PROTECTED] on Wednesday, September 10, 2003 5:17 PM said: If you don't like somebodys post just ignore it. I'd bet your 2 cents that you don't find every post to this list interesting. Do you reply to those people and ask them to not post stuff that doesn't interest you? Dan, You've completely misread and misinterpreted Robert's comments. He didn't say he didn't want to read posts he wasn't interested in and he didn't ask the poster to not post things he wasn't interested in reading. He DID however request that people not send html emails to the list. How the heck did you turn a request for no html emails into a request for people to not post things Robert is uninterested in?? Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Integrating an Applet with PHP
Again, this is a guess, but it looks like two parameters to the applet are used; One called Document and another to indicate that BASE64 encoding was used to encode the html so that the browser doesn't try to render the html into a page. when you output your form (FROM PHP, of course), somehow include the following among the parameters for the applet; echo "param NAME=\"DOCUMENT\" VALUE=\"".base64_encode($htmlsource)."\"\n" ."param NAME=\"BASE64\" VALUE=\"true\"\n"; odds are against this working(I'm a pessimist), but it is what I would try before moving on. Warren -Original Message-From: Todd Cary [mailto:[EMAIL PROTECTED]Sent: Thursday, September 11, 2003 4:39 PMTo: Vail, Warren; [EMAIL PROTECTED]Subject: Re: [PHP] Integrating an Applet with PHPWarren -That works...http://209.204.172.137/editor/ekit.php Now the next challenge is to put the value in $text into the HTML editor with some _javascript_...any suggestions? Todd Vail, Warren wrote: There may be other methods, but one that seems to be available from your form will require some _javascript_ code. Clicking the button located below the applet (onclick event), performs an assignment to the textarea.value (located below the button) the result returned from the applet.gettext() method (actual statement below). document.EkitDemoForm.TextViewer.value = document.EkitDemoForm.Ekit.getDocumentText(); I would suspect you could to this assignment to a hidden html field and then do a form submit to pass the "hidden" value to your php program on your server. Don't forget to have your form action field invoke your php program and with method=post you could retrieve the value as below; $htmltext = $_POST["hiddenfld"]; hope this helps, Warren Vail -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 11, 2003 3:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Integrating an Applet with PHP I have located an HTML editor written in Java that works with my clients various computers (e.g. Linux, PC and Macs). What I need to do is learn how to take the output from an Applet and put it into a PHP variable. Since I have no experience with Java, I am at a disadvantage, so if someone could point me toward some literature that explains this or if someone already has the experience and can look at the source and tell me how, it would be greatly appreciated. http://209.204.172.137/editor/ekit.php Todd --
Re: [PHP] Problem with HTML Text box and PHP variable.
Jim Lucas wrote: ?php $dins=Dinesh; echo input type=text name=dins class='textbox' value='$dins' ; ? Use double quotes for HTML attributes. Why do you say that? Yeah, I figured someone would ask that. :) I couldn't find anything definitive on w3c.org; can someone back me up? AFAIK, they are required in XML and XHTML. It's a good habit to get into with regular HTML, also (although, yes, both will work in HTML). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] loading classes and efficiency
Dan Anderson mailto:[EMAIL PROTECTED] on Wednesday, September 10, 2003 5:44 PM said: require_once() or include_once() The files containing the class files before you need them. They will only be loaded when needed that way. Not true. www.php.net/require_once The way I understand it (maybe you know something I don't?) require/include_once only prevent an included file from being included MORE than one time, hence the character string _once tacked onto the end of include() and require(). It does NOT however include a file only when it's needed, it merely includes it once. Please correct me if I'm wrong. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] loading classes and efficiency
thats how i saw it includes it once so it prevents say functions being reincluded Dan Anderson mailto:[EMAIL PROTECTED] on Wednesday, September 10, 2003 5:44 PM said: require_once() or include_once() The files containing the class files before you need them. They will only be loaded when needed that way. Not true. www.php.net/require_once The way I understand it (maybe you know something I don't?) require/include_once only prevent an included file from being included MORE than one time, hence the character string _once tacked onto the end of include() and require(). It does NOT however include a file only when it's needed, it merely includes it once. Please correct me if I'm wrong. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Problem with HTML Text box and PHP variable.
Question: will the substitution for the variable $dins occur if surrounded by single quotes? I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes. Warren Vail -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED] Sent: Thursday, September 11, 2003 5:03 PM To: Jim Lucas Cc: murugesan; Golawala, Moiz M (IndSys, GE Interlogix); [EMAIL PROTECTED] Subject: Re: [PHP] Problem with HTML Text box and PHP variable. Jim Lucas wrote: ?php $dins=Dinesh; echo input type=text name=dins class='textbox' value='$dins' ; ? Use double quotes for HTML attributes. Why do you say that? Yeah, I figured someone would ask that. :) I couldn't find anything definitive on w3c.org; can someone back me up? AFAIK, they are required in XML and XHTML. It's a good habit to get into with regular HTML, also (although, yes, both will work in HTML). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Problem with HTML Text box and PHP variable.
Vail, Warren wrote: Question: will the substitution for the variable $dins occur if surrounded by single quotes? I could be mixing languages here, but I seem to recall a rule in one language about substituting variable contents only occurring between double quotes. In PHP, no, variables will not be evaluated within single quotes. The original question was about HTML attributes, though. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php