[PHP] Slightly 0T - Smarty problem
Hello, I have been asked to add a pagination to one page as the data gets updated to one extra row around every 10-35 seconds. Thats no problem for me as I am used to the pagination concept and have done it before...but never in smarty. I usually did it using classes from phpclasses, I have the classes ready but no ideo how to intergrate them into the page/script/template. Problem is, I am working on a project that another developer left, this is my first hurdle, I am learning the basics of Smarty via the crash course at http://smarty.php.net/crashcourse.php but any advise/examples would be appreciated. Please tell me if you want me to send you the page code/template or anything else. Thanks in advance. Mag = -- - The faulty interface lies between the chair and the keyboard. - Creativity is great, but plagiarism is faster! - Smile, everyone loves a moron. :-) __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SNMP MIB selection under php4
Hello all, I was wondering if there is any way to tell PHP4 to load a specific MIB file? PHP5 has a snmp_read_mib(), but php4 lacks this function. Any help would be apreciated. Thanks, Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How develop reports in MS WORD?
Dear All, I want to developing reports using PHP. These reports i have to develop on MS WORD. I have a database with multiple records VAL 1 | VAL 2 - VAL3 | VAL 4 VAL 5 | VAL 6 How to print these multiple rows on word in this format. Thanks in advance. Bharadwaj. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] !!Urgent .. Session Problem
Hi I'm trying to make a small login system on my website, I'm using Apache 2.0.49 for testing locally and PHP 4.3.4 on MS Windows XP Pro. the login script is in the file logme_in.php shown below // ?php session_start(); include(db.php); $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); if((empty($_POST['user_name'])) || (empty($_POST['password']))) { echo enter username/password; } else{ $sql = SELECT * FROM members WHERE user_name='.$username.' AND password='.$pass.'; $result = mysql_query($sql); $num_return = mysql_num_rows($result); if($num_return ==1) { $row = mysql_fetch_array($result); session_register('uname'); $_SESSION['uname'] = $username; } else { echo invalid username/password; } } ? // The problem is that every time I try to login I keep have the following error messages ** Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: Unknown(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 *** the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** I'm kinda new at php and web development environment .. so any help will be appreciated. Thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [Newbie Guide] For the benefit of new members
=== Please feel free to add more points and send to the list. === 1. If you have any queries/problems about PHP try http://www.php.net/manual/en first. You can download a copy and use it offline also. Please also try http://www.php.net/manual/faq.php for answers to frequently answered questions about PHP (added by Christophe Chisogne). 2. Try http://www.google.com next. Searching for php YOUR QUERY may fetch you relevant information within the first 10 results. 3. There is a searchable archive of the mailing list discussion at http://phparch.com/mailinglists. Many of the common topics are discussed repeatedly, and you may get answer to your query from the earlier discussions. For example: One of the repeatedly discussed question in the list is Best PHP editor. Everyone has his/her favourite editor. You can get all the opinions by going through the list archives. If you want a chosen list try this link : http://www.thelinuxconsultancy.co.uk/phpeditors/ (contributed by Christophe Chisogne). 4. Not sure if PHP is working or you want find out what extensions are available to you? Just put the following code into a file with a .php extension and access it through your webserver: ?php phpinfo(); ? If PHP is installed you will see a page with a lot of information on it. If PHP is not installed (or not working correctly) your browser will try to download the file. (contributed by Teren and reworded by Chris W Parker) 5. If you are stuck with a script and do not understand what is wrong, instead of posting the whole script, try doing some research yourself. One useful trick is to print the variable/sql query using print or echo command and check whether you get what you expected. After diagnosing the problem, send the details of your efforts (following steps 1, 2 3) and ask for help. 6. PHP is a server side scripting language. Whatever processing PHP does takes place BEFORE the output reaches the client. Therefore, it is not possible to access users' computer related information (OS, screen size etc) using PHP. Nor can you modify any the user side settings. You need to go for JavaScript and ask the question in a JavaScript list. On the other hand, you can access the information that is SENT by the user's browser when a client requests a page from your server. You can find details about browser, OS etc as reported by this request. - contributed by Wouter van Vliet and reworded by Chris W Parker. 7. Provide a clear descriptive subject line. Avoid general subjects like Help!!, A Question etc. Especially avoid blank subjects. 8. When you want to start a new topic, open a new mail composer and enter the mailing list address [EMAIL PROTECTED] instead of replying to an existing thread and replacing the subject and body with your message. 9. Only quote the relevant parts of an email when replying. Do not Quote everything (including huge code snippets) only to say I agree, for instance. [contribued by Paul Waring] 10. It's always a good idea to post back to the list once you've solved your problem. People usually add [SOLVED] to the subject line of their email when posting solutions. By posting your solution you're helping the next person with the same question. [contribued by Chris W Parker] 11. Ask smart questions http://catb.org/~esr/faqs/smart-questions.html [contributed by Jay Blanchard) 12. Do not send your email to the list with attachments. If you don't have a place to upload your code, try the many pastebin websites (such as www.pastebin.com). [contributed by Burhan Khalid] Following these guidelines will ensure that you get effective responses from the list members. Otherwise, your questions might not be answered. Hope you have a good time programming with PHP. -- Integrated Management Tools for leather industry -- http://www.leatherlink.net Ma SivaKumar, BSG LeatherLink (P) Ltd, No 21, First Main Road, Jai Nagar, Arumbakkam, Chennai - 600106 Tel : +91 44 55191757 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
* and then Dre declared Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Check your php.ini for session.save_path= Im not sure where the temp dir is on a windows box, but point it to there and that should do it I think. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Check the file for white space, this always gets me too ;-) Like this start of file ?php - See the new line above the php? that would cause that error. Check your file for somthing similar... the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Damn! should have read the whole thing b4 replying! hehe you might have several php.ini's find the right one! on my gentoo box it's in /etc/apache2/conf/php.ini but there's also one in /etc/php.ini -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem
Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] session_register('uname'); $_SESSION['uname'] = $username; Hi Dre, Nick already answered your question so just a short note: you should not use session_register() with your PHP version anymore, so just delete the first of the upper two lines. Excerpt from the manual: Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister(). Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How develop reports in MS WORD?
if mysql and javascript is on topic for for this 'open source' general list i guess the same can be said about msword. CBharadwaj wrote: Dear All, I want to developing reports using PHP. These reports i have to develop on MS WORD. I have a database with multiple records VAL 1 | VAL 2 - VAL3 | VAL 4 VAL 5 | VAL 6 How to print these multiple rows on word in this format. Thanks in advance. Bharadwaj. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
first of all thanks for ur reply then .. there are no white spaces before the ?php in my .php file and I do have ONLY one php.ini file in the whole system drive (I'm sure of this) is there a special format for writing paths in the php.ini file .. as I do believe that I pointed correctly to the temp folder ??? Nick Wilson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * and then Dre declared Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Check your php.ini for session.save_path= Im not sure where the temp dir is on a windows box, but point it to there and that should do it I think. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Check the file for white space, this always gets me too ;-) Like this start of file ?php - See the new line above the php? that would cause that error. Check your file for somthing similar... the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Damn! should have read the whole thing b4 replying! hehe you might have several php.ini's find the right one! on my gentoo box it's in /etc/apache2/conf/php.ini but there's also one in /etc/php.ini -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem
thanks ..I won't use the session_register() again Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] session_register('uname'); $_SESSION['uname'] = $username; Hi Dre, Nick already answered your question so just a short note: you should not use session_register() with your PHP version anymore, so just delete the first of the upper two lines. Excerpt from the manual: Caution If you are using $_SESSION (or $HTTP_SESSION_VARS), do not use session_register(), session_is_registered(), and session_unregister(). Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
* and then Dre declared first of all thanks for ur reply you're most welcome there are no white spaces before the ?php in my .php file and I do have ONLY one php.ini file in the whole system drive (I'm sure of this) See the other reply, that sounds like it.. i was unaware of this... is there a special format for writing paths in the php.ini file .. as I do believe that I pointed correctly to the temp folder ??? Dont know. Try this though ?php ini_set'session.save_path', 'path/to/tmp'); at the top of your script. It's an inelegant solution, you really need to get it right in the ini file but it might help you debug it for now... -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to include a datbase extention module in php source ??
hi everybody, Could anybody tell me How to include a datbase extention module in php source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.xom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
Nick Wilson wrote: * and then Dre declared first of all thanks for ur reply you're most welcome there are no white spaces before the ?php in my .php file and I do have ONLY one php.ini file in the whole system drive (I'm sure of this) See the other reply, that sounds like it.. i was unaware of this... is there a special format for writing paths in the php.ini file .. as I do believe that I pointed correctly to the temp folder ??? Dont know. Try this though ?php ini_set'session.save_path', 'path/to/tmp'); at the top of your script. It's an inelegant solution, you really need to get it right in the ini file but it might help you debug it for now... also, please remember you need to restart your webserver to actually have PHP re-read the php.ini file. If you don't, then nothing will change in run-time, even though the php.ini file might have changed *a lot* -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
* and then M. Sokolewicz declared also, please remember you need to restart your webserver to actually have PHP re-read the php.ini file. If you don't, then nothing will change in run-time, even though the php.ini file might have changed *a lot* heheheh! that's most probably it! -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely
thank u all .. I really did all of what u said but nothing worked ! which was so so strange The problem was that the php.ini file I have got corrupted or something that the php.exe couldn't parse all of its values Any way thanks again .. Now I have another error with the same file and session the errors are as follows //= Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 //= Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying to make a small login system on my website, I'm using Apache 2.0.49 for testing locally and PHP 4.3.4 on MS Windows XP Pro. the login script is in the file logme_in.php shown below // ?php session_start(); include(db.php); $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); if((empty($_POST['user_name'])) || (empty($_POST['password']))) { echo enter username/password; } else{ $sql = SELECT * FROM members WHERE user_name='.$username.' AND password='.$pass.'; $result = mysql_query($sql); $num_return = mysql_num_rows($result); if($num_return ==1) { $row = mysql_fetch_array($result); session_register('uname'); $_SESSION['uname'] = $username; } else { echo invalid username/password; } } ? // The problem is that every time I try to login I keep have the following error messages ** Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: Unknown(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 *** the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** I'm kinda new at php and web development environment .. so any help will be appreciated. Thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] !!Urgent .. Session Problem
On 04 September 2004 10:15, Dre wrote: Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Believe me, the discrepancy in paths between the error message and your php.ini file setting means that PHP is *not* reading that php.ini. Either it's reading another one (which you say not), or it's not finding one at all and just using all its default settings. Best thing to do at this point is probably to run a phpinfo and look to see where PHP tells you it's expecting to find php.ini. (Just in case you're new to that game: make a script containing ?php phpinfo() ? and request it in your browser. In the block of information near the top is the path of where it's expecting php.ini, labelled something like Configuration file (php.ini) Path -- that's where your php.ini should be.) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Unable to open word document.
Hi, I am asked to generate reports on MS WORD. OFFICE 2000 is installed in mechine. when I am calling a PHP page containin this code. $word = new COM(word.application) ; I am getting following error. Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF---C000-0046}: The message filter indicated that the application is busy your valuable help is needed. Bharadwaj. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Unable to open word document.
Cbharadwaj wrote: Hi, I am asked to generate reports on MS WORD. OFFICE 2000 is installed in mechine. when I am calling a PHP page containin this code. $word = new COM(word.application) ; I am getting following error. Warning: (null)(): Unable to obtain IDispatch interface for CLSID {000209FF---C000-0046}: The message filter indicated that the application is busy your valuable help is needed. Bharadwaj. try closing word and running the script again... Also, which version of PHP are you using? Because asof PHP5 the COM section has been thoroughly rewritten and is much easier to use (aswell as quicker, more stable, etc). Besides that, could you PLEASE adjust your system time, it's miles ahead and your messages don't order right in my mailclient. Thank you :) - Tul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely
I think you didn't read all instructions we gave. One of them was to remove all spaces and/or newlines BEFORE the first ?php tag in your file, to save it and try again. anything before the ?php tag is considered HTML and thus output. Since headers are always sent before the output is, they will be sent the moment PHP notices the spaces and/or newlines. So, what happens is: PHP starts processing PHP encounters spaces and/or newlines PHP sends headers to the browser PHP sends those spaces and/or newlines to the browser PHP notices the ?php tag, and such swithed to parsing-mode PHP notices session_start(); and thus tries to send a cookie (a cookie is actually one of the headers) PHP notices that headers have already been sent! So it gives an error, because it can't get them back and send them after the cookie again. So, remove the spaces and/or newlines before the ?php tag to fix this. Hope you get what to do now ;| - Tul Dre wrote: thank u all .. I really did all of what u said but nothing worked ! which was so so strange The problem was that the php.ini file I have got corrupted or something that the php.exe couldn't parse all of its values Any way thanks again .. Now I have another error with the same file and session the errors are as follows //= Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 //= Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying to make a small login system on my website, I'm using Apache 2.0.49 for testing locally and PHP 4.3.4 on MS Windows XP Pro. the login script is in the file logme_in.php shown below // ?php session_start(); include(db.php); $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); if((empty($_POST['user_name'])) || (empty($_POST['password']))) { echo enter username/password; } else{ $sql = SELECT * FROM members WHERE user_name='.$username.' AND password='.$pass.'; $result = mysql_query($sql); $num_return = mysql_num_rows($result); if($num_return ==1) { $row = mysql_fetch_array($result); session_register('uname'); $_SESSION['uname'] = $username; } else { echo invalid username/password; } } ? // The problem is that every time I try to login I keep have the following error messages ** Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: Unknown(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 *** the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** I'm kinda new at php and web development environment .. so any help will be appreciated. Thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No support for DBX module ?
hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No support for DBX module ?
hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No support for DBX module ?
hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Would you help me ?
hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Support issue ...
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New module Entry issue ..
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hi friends Plz give suggestion ..
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Goosebump ? ? New feature / implementaion in PHP
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Good news for each develper
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Completing dream of connect with Java RDBMS with php
hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Would you help me ?
Manoj Kumar wrote: hi developers, Could anybody tell me How to include a datbase extention module in hp source , so that will be available with php source. What is procedure to include it on php source ..It's very urget , plz suggest me.. Reagards, Manoj Kr. Sheoran www.daffodildb.com sending it once is more than enough, thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: New module Entry issue ..
Manoj Kumar wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com request a PECL account. Also, could you *please* stop hitting the send button so often? Sending each message 3 times is *very* annoying. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely
believe me the FIRST line in the file is ?php session_start(); NOTHING AT ALL exists before it. but I still have the same error M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think you didn't read all instructions we gave. One of them was to remove all spaces and/or newlines BEFORE the first ?php tag in your file, to save it and try again. anything before the ?php tag is considered HTML and thus output. Since headers are always sent before the output is, they will be sent the moment PHP notices the spaces and/or newlines. So, what happens is: PHP starts processing PHP encounters spaces and/or newlines PHP sends headers to the browser PHP sends those spaces and/or newlines to the browser PHP notices the ?php tag, and such swithed to parsing-mode PHP notices session_start(); and thus tries to send a cookie (a cookie is actually one of the headers) PHP notices that headers have already been sent! So it gives an error, because it can't get them back and send them after the cookie again. So, remove the spaces and/or newlines before the ?php tag to fix this. Hope you get what to do now ;| - Tul Dre wrote: thank u all .. I really did all of what u said but nothing worked ! which was so so strange The problem was that the php.ini file I have got corrupted or something that the php.exe couldn't parse all of its values Any way thanks again .. Now I have another error with the same file and session the errors are as follows //= Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:1) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 2 //= Dre [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi I'm trying to make a small login system on my website, I'm using Apache 2.0.49 for testing locally and PHP 4.3.4 on MS Windows XP Pro. the login script is in the file logme_in.php shown below // ?php session_start(); include(db.php); $username = trim(addslashes($_POST['user_name'])); $pass = trim(addslashes($_POST['password'])); if((empty($_POST['user_name'])) || (empty($_POST['password']))) { echo enter username/password; } else{ $sql = SELECT * FROM members WHERE user_name='.$username.' AND password='.$pass.'; $result = mysql_query($sql); $num_return = mysql_num_rows($result); if($num_return ==1) { $row = mysql_fetch_array($result); session_register('uname'); $_SESSION['uname'] = $username; } else { echo invalid username/password; } } ? // The problem is that every time I try to login I keep have the following error messages ** Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php:2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 Warning: Unknown(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 *** the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** I'm kinda new at php and web development environment .. so any help will be appreciated. Thanks in advance Dre, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using 'while' without stopping the script from processing, Please help!
Hi, I'm making an MSN bot in PHP the only way to receive data is to loop over each socket, the only problem is that while its looping its stopping the rest of the script from being run at the same time. Is there anyway I can Process each socket without stopping the script, I'm currently using $msn = New MSN; $msn-Connect(); while($msn-MSNC) { $msn-ProcessCommands(); for($i = 0 ; $i 500 ; $i++) { if($socket[$i]) { echo fpassthru($socket[$i]); } } } Any examples I'd be very greatful! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Drop directory with PHP
Hi all I have create this function to delete directory and file but i have no result . When i call the function i don't receive any errors by PHP. I have test this function with PHP 4.3.6 and Apache for NT version 1.3.1 on Windows Xp Professional I write this code : ?php error_reporting(E_ALL); function DropDir($dir) { if (is_dir($dir)) { if (!($handle = opendir($dir))) die(It' no possible open directory $dir); while(false !== ($file = readdir($handle))) { if ($file != '.' $file != '..') { if (is_dir($dir . '/' . $file)) { DropDir($dir . '/' . $file); exec(rmdir $file); } else { exec(del $file); } } } closedir($handle); exec(rmdir $dir); } } //call function DropDir DropDir('my_folder'); ? I think that it' impossible for me find solution to this problem. Can you help me ? Thanks so much to all an sorry for my bad language -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Good news for each develper
HE with 1 mail we understand... ;=) On Sat, 4 Sep 2004 12:36:11 GMT, Manoj Kumar [EMAIL PROTECTED] wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Pablo M. Rivas. http://pmrivas.ipupdater.com --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Completing dream of connect with Java RDBMS with php
someone please unsubscribe this guy. Manoj Kumar wrote: hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.com -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sessions Problems
Hi guys well I've been trying with named sessions, and nothing, then I did a pop up window to show me the $_SESSION content and when I reload that window a ramdom number of times, then the session expires and the $_SESSION array disappears!!! what can be this due to?? Im using PHP 4.3.3 and if you want to see the phpinfo go to www.wspanel.net/phpinfo.php can please anybody help me?? thank you very much Octavio -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using 'while' without stopping the script from processing, Please help!
On Fri, 3 Sep 2004 21:48:56 +0100, Mark Clarkstone [EMAIL PROTECTED] wrote: Hi, I'm making an MSN bot in PHP the only way to receive data is to loop over each socket, the only problem is that while its looping its stopping the rest of the script from being run at the same time. Is there anyway I can Process each socket without stopping the script, Mark: for unix/linux: http://www.php.net/manual/en/ref.pcntl.php and in this page you'll find examples, and a tip for PHP-CLI onWin32 -- Pablo M. Rivas. http://pmrivas.ipupdater.com --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP IDE for OS X
Can anyone suggest a PHP editor/IDE for OS X other than: - BBEdit (already using it) - Zend Studio (it's Java, not OS X native) What I'm hoping for is: - some form of auto-complete text for functions/constants/etc, - integrated testing/debugging - integration with local install of PHP - anything else that will make my life easier without 'getting in the way'. My guess is it doesn't exist, but it's worth a shot. PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm looking for something more than a basic text editor, and it has to be OS X native (not some ugly, sluggish Java thing). --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my php.ini and it was using default settings Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 04 September 2004 10:15, Dre wrote: Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Believe me, the discrepancy in paths between the error message and your php.ini file setting means that PHP is *not* reading that php.ini. Either it's reading another one (which you say not), or it's not finding one at all and just using all its default settings. Best thing to do at this point is probably to run a phpinfo and look to see where PHP tells you it's expecting to find php.ini. (Just in case you're new to that game: make a script containing ?php phpinfo() ? and request it in your browser. In the block of information near the top is the path of where it's expecting php.ini, labelled something like Configuration file (php.ini) Path -- that's where your php.ini should be.) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] installing PHP on winXP
hi there I have a problem with installing PHP on my winXp with apache server using the installer. I'm missing the sapi directory (c:/progra~1/php/sapi/) with in it the php4apache.dll file which apache misses. The weird thing is that I've succesfully installed php and apache on this same machine, but now it's not working. I've copied my httpd.conf and php.ini files from my last (succesfull) installation. I have apache 1.3.28 and php 4.3.4 (but the latest version 4.3.8 also doesn't work) Please help |:-( -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
jeez.. stop using so many capital letters... it's considered as yelling or shouting when you do that. Are you prepending any file? (php.ini/.htaccess file.prepend setting) Dre wrote: YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my php.ini and it was using default settings Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 04 September 2004 10:15, Dre wrote: Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Believe me, the discrepancy in paths between the error message and your php.ini file setting means that PHP is *not* reading that php.ini. Either it's reading another one (which you say not), or it's not finding one at all and just using all its default settings. Best thing to do at this point is probably to run a phpinfo and look to see where PHP tells you it's expecting to find php.ini. (Just in case you're new to that game: make a script containing ?php phpinfo() ? and request it in your browser. In the block of information near the top is the path of where it's expecting php.ini, labelled something like Configuration file (php.ini) Path -- that's where your php.ini should be.) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Drop directory with PHP
Kioto [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all I have create this function to delete directory and file but i have no result . When i call the function i don't receive any errors by PHP. I have test this function with PHP 4.3.6 and Apache for NT version 1.3.1 on Windows Xp Professional I write this code : ?php error_reporting(E_ALL); function DropDir($dir) { if (is_dir($dir)) { if (!($handle = opendir($dir))) die(It' no possible open directory $dir); while(false !== ($file = readdir($handle))) { if ($file != '.' $file != '..') { if (is_dir($dir . '/' . $file)) { DropDir($dir . '/' . $file); exec(rmdir $file); } else { exec(del $file); } } } closedir($handle); exec(rmdir $dir); } } file://call function DropDir DropDir('my_folder'); ? I think that it' impossible for me find solution to this problem. Can you help me ? Thanks so much to all an sorry for my bad language I guess you'll first have to delete all files in the directory. Try this function: /** * Recursively clear a local directory * * @param string $sourceDirdirectory to delete * @param integer $leveldirectory level (to avoid deleting the root dir) */ function clearDirectory($sourceDir, $level = 0) { // proceed if source directory exists if (is_dir($sourceDir)) { // read dir contents if ($handle = opendir($sourceDir)) { /* This is the correct way to loop over the directory. */ while(false !== ($dirItem = readdir($handle))) { if ($dirItem != '.' $dirItem != '..') { // directory if (is_dir($sourceDir . '/' . $dirItem)) { clearDirectory($sourceDir . '/' . $dirItem, $level + 1); } // file elseif (file_exists($sourceDir . '/' . $dirItem)) { unlink($sourceDir . '/' . $dirItem); } } } // remove directory if it's not the root one if ($level 0) { rmdir($sourceDir); } } closedir($handle); } } It will delete all direcotries and files *inside* the specified directory. So the directory itself will not be deleted. Just call it like this (without trailing slash!!!): clearDirectory('/path/to/directory'); // or on windows clearDirectory('c:\path\to\directory'); Hope it works for you. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] !!Urgent .. Session Problem
I'm sorry about the capital letters and nop I'm not prepending any files at all M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] jeez.. stop using so many capital letters... it's considered as yelling or shouting when you do that. Are you prepending any file? (php.ini/.htaccess file.prepend setting) Dre wrote: YES .. THAT WAS THE PROBLEM EVEN IF UR REPLY CAME A LITTLE LATE .. BUT THANKS .. THE PHP was not reading my php.ini and it was using default settings Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 04 September 2004 10:15, Dre wrote: Warning: session_start(): open(/tmp\sess_2984f6d378560d0882f37728dbe1defc, O_RDWR) failed: No such file or directory (2) in C:\Program Files\Apache Group\Apache2\htdocs\ELBA\logme_in.php on line 3 the session.save_path parameter in my php.ini file is as follows ** session.save_path = C:/WINDOWS/Temp ** Believe me, the discrepancy in paths between the error message and your php.ini file setting means that PHP is *not* reading that php.ini. Either it's reading another one (which you say not), or it's not finding one at all and just using all its default settings. Best thing to do at this point is probably to run a phpinfo and look to see where PHP tells you it's expecting to find php.ini. (Just in case you're new to that game: make a script containing ?php phpinfo() ? and request it in your browser. In the block of information near the top is the path of where it's expecting php.ini, labelled something like Configuration file (php.ini) Path -- that's where your php.ini should be.) Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] File upload problem
I'm trying to upload a file using a form the upload code I'm using is //== ?php // settings $base_img_dir = http://localhost/app_images/;; include(db.php); // generate unique id for use in filename $uniq =uniqid(); $filename = $base_img_dir.$uniq; move_uploaded_file($HTTP_POST_FILES[file][tmp_name], $filename); ? //== this code generated the following erro //== Warning: move_uploaded_file(http://localhost/app_images/4139de74488ad): failed to open stream: HTTP wrapper does not support writeable connections. in C:\Program Files\Apache Group\Apache2\htdocs\upload.php on line 25 Warning: move_uploaded_file(): Unable to move 'C:\WINDOWS\php11.tmp' to 'http://localhost/app_images/4139de74488ad' in C:\Program Files\Apache Group\Apache2\htdocs\upload.php on line 25 //== thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE for OS X
Hi, Jastin, Just try Eclipse (www.eclipse.org) and PHP plugin called phpeclipse (available at sourceforge.net). Works great on ALL platforms, including Linux, OSX and Win. On Saturday 04 September 2004 05:26 pm, Justin French wrote: Can anyone suggest a PHP editor/IDE for OS X other than: - BBEdit (already using it) - Zend Studio (it's Java, not OS X native) What I'm hoping for is: - some form of auto-complete text for functions/constants/etc, - integrated testing/debugging - integration with local install of PHP - anything else that will make my life easier without 'getting in the way'. My guess is it doesn't exist, but it's worth a shot. PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm looking for something more than a basic text editor, and it has to be OS X native (not some ugly, sluggish Java thing). *** with best regards *** Andrei Verovski (aka MacGuru) *** Mac, Linux, DTP, Programming Web Site *** *** http://snow.prohosting.com/guru4mac/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File upload problem
On Saturday 04 September 2004 23:36, Dre wrote: I'm trying to upload a file using a form $base_img_dir = http://localhost/app_images/;; The destination directory/file has to be a path on the local filesystem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* I used to think that the brain was the most wonderful organ in my body. Then I realized who was telling me this. -- Emo Phillips */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] can PHP talk to mail server?
Hi experts, I would like to write a script to read mails directly from the mail server and extracting the information, create custom auto-responders automatically. Is this possible? Can someone explain how the script can communicate with the mail server? Thanks in advance! Yours truly, See Kok Boon - Web hosting plan offers continuous commission streams in a system possible with zero advertising on your own. Sign up FREE now - http://www.cashculture.com/CompensationPlan.asp?ref=kokboon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] can PHP talk to mail server?
See Kok Boon wrote: Hi experts, I would like to write a script to read mails directly from the mail server and extracting the information, create custom auto-responders automatically. Is this possible? Start by reading about the imap functions but you cannot create autoresponders this way since they are mail server specific. -- Raditha Dissanayake. http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How develop reports in MS WORD?
From: CBharadwaj [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Saturday, September 04, 2004 2:50 PM Subject: [PHP] How develop reports in MS WORD? Dear All, I want to developing reports using PHP. These reports i have to develop on MS WORD. I have a database with multiple records VAL 1 | VAL 2 - VAL3 | VAL 4 VAL 5 | VAL 6 How to print these multiple rows on word in this format. Thanks in advance. Bharadwaj. M$Word is a proprietary winbloze format that is not designed to be compatible or portable. Jim Grill -- 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] Completing dream of connect with Java RDBMS with php
Is this some kind of spam? hehe. I've never seen anyone so eager to share their work. ...Must be a trojan or something! :-) Jim Grill hi dear developers, We developed a module in (php_home/ext/) with name daffodildb , This module will provide connectivity to DaffodilDB (A Pure Java RDBMS) . But I don't know , what is procedure to include a new module in php source(php cvs ) , so it will available free to developers with php source. Can anybody suggest me. Reagards, Manoj Kr. Sheoran Software Engg. SCO-42 ,3rd Floor OJC, Civil Lines Gurgoan (HARYANA) INDIA mailto: [EMAIL PROTECTED] www.daffodildb.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] How develop reports in MS WORD?
From: CBharadwaj [EMAIL PROTECTED] To: PHP List [EMAIL PROTECTED] Sent: Saturday, September 04, 2004 2:50 PM Subject: [PHP] How develop reports in MS WORD? Dear All, I want to developing reports using PHP. These reports i have to develop on MS WORD. I have a database with multiple records VAL 1 | VAL 2 - VAL3 | VAL 4 VAL 5 | VAL 6 How to print these multiple rows on word in this format. Thanks in advance. Bharadwaj. M$Word is a proprietary winbloze format that is not designed to be compatible or portable. Jim Grill What I meant to say is that I don't really know and was trying to make a funny. Good luck. Jim Grill -- 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 General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] can PHP talk to mail server?
Raditha Dissanayake wrote: See Kok Boon wrote: Hi experts, I would like to write a script to read mails directly from the mail server and extracting the information, create custom auto-responders automatically. Is this possible? Start by reading about the imap functions but you cannot create autoresponders this way since they are mail server specific. actually, you can. However, these would be pseudo-immediate. A way I use to achieve this kind of action (for a different system though), is by making a cronjob which calls a script quite often (eg. every 5 min). Add a quick check at the top if it has recieved any new mails, if not, quickly exit, otherwise process them and then auto-respond. You can always expand the script in various ways. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] File upload problem
thanks Jason .. it worked thanks again Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Saturday 04 September 2004 23:36, Dre wrote: I'm trying to upload a file using a form $base_img_dir = http://localhost/app_images/;; The destination directory/file has to be a path on the local filesystem. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* I used to think that the brain was the most wonderful organ in my body. Then I realized who was telling me this. -- Emo Phillips */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] function problem
I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a user does not have access to the script it should abort the script, this is done using a header(location: ccnopermission.php); statement But now it seems that while executing the function checkpermission() the code in ccadduser just keeps running and the database query that inserts the new user is executed before the user can be redirected to ccnopermission. Is there a way to make php wait until checkpermission is completely executed? I know it is not a simple question, but I really need a solution to ensure the safety of my system. grtz thanks DragonEye -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Clean variables sent from forms
Hi, I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] every thing works fine, and the record get inserted correctly the problem is when I refresh this page (the one containing the database insertion script) a new record with the same data is inserted in the same table (I'm using an auto increamented id for this table) .. I was wondering if there is a way that I can delete all values sent from the form after the first insertion successeded Thanks in advance -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] interface problem in PHP5
Can anuyone describe this error? Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - Declaration of CMAES_DOM_Node_List::item() must be compatible with that of CMAES_DOM_Node_List_Interface::item() // {{{ interface CMAES_DOM_Node_List /** * * @access public */ interface CMAES_DOM_Node_List_Interface { function item(); function search(); function addItem(); function removeItem(); } // }}} /** * CMAES_DOM_Node * */ class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface { // {{{ properties /** * Number of elements in node list * @var integer */ public $iLength = 0; /** * Nodes in list * @var array */ private $_aNodes = array(); // }}} // {{{ item /** * Returns the nth index given in item. * * @param inte $a_iIndex - index in list * @return mixed node object or null if item was not found * @access public */ function item($a_iIndex) { if (!array_key_exists($a_iIndex, $this-_aNodes)) { return null; } return $this-_aNodes[$a_iIndex]; } // }}} // {{{ addItem /** * Adds new node to the list. * * @param object $a_oNode - object to add * @param int $a_iOffset(optional) - index to put object in * @param int $a_iReplace(optional) - number of objects to replace * @return void * @access public */ function addItem(CMAES_DOM_Node $a_oNode, $a_iOffset = null, $a_iReplace = 0) { if (!($a_oNode instanceof CMAES_DOM_Document)) { $a_iOffset = ($a_iOffset !== null) ? $a_iOffset : $this-iLength; array_splice($this-_aNodes, $a_iOffset, $a_iReplace, array($a_oNode)); $this-iLength = count($this-_aNodes); } } // }}} // {{{ removeItem /** * Removes node from the list and return the removed node * * @param int $a_iIndex - index to remove * @return object removed node * @access public */ function removeItem($a_iIndex) { // First remove from this node list $oOldChild = $this-_aNodes[$a_iIndex]; array_splice($this-_aNodes, $a_iIndex, 1); $this-iLength = count($this-_aNodes); return $oOldChild; } // }}} // {{{ search /** * search for a node in the list and return node if successful * * @param object $a_oNode - Node to search for * @return int index in list or null if not found * @access public */ function search(CMAES_DOM_Node $a_oNode) { for ($i = 0; $i $this-iLength; $i++) { if ($a_oNode === $this-_aNodes[$i]) { return $i; } } return null; } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Clean variables sent from forms
Make some field unique, so it wont work thats an easy solution, there other ways.. Jason Dre [EMAIL PROTECTED] wrote: Hi, I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] every thing works fine, and the record get inserted correctly the problem is when I refresh this page (the one containing the database insertion script) a new record with the same data is inserted in the same table (I'm using an auto increamented id for this table) .. I was wondering if there is a way that I can delete all values sent from the form after the first insertion successeded Thanks in advance -- 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] PHP IDE for OS X
Andrei Verovski wrote: Hi, Jastin, Just try Eclipse (www.eclipse.org) and PHP plugin called phpeclipse (available at sourceforge.net). Works great on ALL platforms, including Linux, OSX and Win. On Saturday 04 September 2004 05:26 pm, Justin French wrote: Can anyone suggest a PHP editor/IDE for OS X other than: - BBEdit (already using it) - Zend Studio (it's Java, not OS X native) What I'm hoping for is: - some form of auto-complete text for functions/constants/etc, - integrated testing/debugging - integration with local install of PHP - anything else that will make my life easier without 'getting in the way'. My guess is it doesn't exist, but it's worth a shot. PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm looking for something more than a basic text editor, and it has to be OS X native (not some ugly, sluggish Java thing). *** with best regards *** Andrei Verovski (aka MacGuru) *** Mac, Linux, DTP, Programming Web Site *** *** http://snow.prohosting.com/guru4mac/ Hehe, i hope that you don't mind that i tag along here, but i'm also looking for a good IDE. I've installed Eclipse, but i can't really seem to understand exactly what i have to do in order to install phpEclipse. The installation help thing says that i have to install wampp first, but i have absolutely no idea what that is... What happened to the good old clean install.exe files?! Should i install that wampp thing? (i hope it's not some twisted virus :x) -- Daniel Schierbeck -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: How develop reports in MS WORD?
Hello, On 09/04/2004 04:50 PM, Cbharadwaj wrote: I want to developing reports using PHP. These reports i have to develop on MS WORD. I have a database with multiple records VAL 1 | VAL 2 - VAL3 | VAL 4 VAL 5 | VAL 6 How to print these multiple rows on word in this format. Under Windows you can use some COM objects. If you are not under Windows, you can always generate your report in RTF format which is a common format for interchange of word processor documents that obviously MS Word supports. In that case you may want to try this RTF document generator class that lets you convert a subset of HTML tags to RTF: http://www.phpclasses.org/rtfgenerator -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: can PHP talk to mail server?
Hello, On 09/04/2004 01:27 PM, See Kok Boon wrote: I would like to write a script to read mails directly from the mail server and extracting the information, create custom auto-responders automatically. Is this possible? Can someone explain how the script can communicate with the mail server? I use this POP3 class for that very same purpose: http://www.phpclasses.org/pop3class -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Clean variables sent from forms
--- Dre [EMAIL PROTECTED] wrote: I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] Yikes, that sounds dangerous! Are you really using $_POST variables in your SQL statement? You want to filter your data first (which is what I actually thought your subject meant by cleaning variables), and then you want to escape it using something like mysql_escape_string(). What you have now is an SQL injection vulnerability. the problem is when I refresh this page (the one containing the database insertion script) a new record with the same data is inserted in the same table (I'm using an auto increamented id for this table) .. I was wondering if there is a way that I can delete all values sent from the form after the first insertion successeded I think the easiest way to solve this is to submit your form to a processing page that does not display any output. In this processing page, send a Location header that redirects the user to the final page: header('Location: http://example.org/end.php'); This intermediate page will be transparent to the browser's history mechanism, so even the Back button won't return the user to the processing page. Of course, you can also refresh the last page without submitting the form. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Clean variables sent from forms
thanks a lot I will try to do this Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- Dre [EMAIL PROTECTED] wrote: I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] Yikes, that sounds dangerous! Are you really using $_POST variables in your SQL statement? You want to filter your data first (which is what I actually thought your subject meant by cleaning variables), and then you want to escape it using something like mysql_escape_string(). What you have now is an SQL injection vulnerability. the problem is when I refresh this page (the one containing the database insertion script) a new record with the same data is inserted in the same table (I'm using an auto increamented id for this table) .. I was wondering if there is a way that I can delete all values sent from the form after the first insertion successeded I think the easiest way to solve this is to submit your form to a processing page that does not display any output. In this processing page, send a Location header that redirects the user to the final page: header('Location: http://example.org/end.php'); This intermediate page will be transparent to the browser's history mechanism, so even the Back button won't return the user to the processing page. Of course, you can also refresh the last page without submitting the form. Hope that helps. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Clean variables sent from forms
I did this a lot when I built my quote program for my previous company. I have all my code at home, hence no way to give examples that I know work, however what I did was dump the form to a php page which processed the form and then used the header.location pieces to dump the user to the page they needed to go. If you want to play with it some: http://lonewolf.homelinux.net/quoter/ None of the information contained in it is accurate (to my knowledge) however it works to play with for a bit. Every page you interact with (when adding items and such) puts information into a MySQL db, but as it moves through, you can't hit the pages doing the work. HTH, Robert - Original Message - From: Dre [EMAIL PROTECTED] Date: Saturday, September 4, 2004 1:35 pm Subject: [PHP] Clean variables sent from forms Hi, I'm trying to perform a database insertion for a new record from data I receive from a HTML form I send the data to the file containing the insertion script and insert the values using the $_POST['variable_name'] every thing works fine, and the record get inserted correctly the problem is when I refresh this page (the one containing the databaseinsertion script) a new record with the same data is inserted in the same table (I'm using an auto increamented id for this table) .. I was wondering if there is a way that I can delete all values sent from the form after the first insertion successeded Thanks in advance -- 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] Knowlegde Base
greetings i'm looking for good/free Knowledge Base/ FAQ system any recommendation ? For a simple easy to use and free Knowledge Base/FAQ system I've used ODFaq and have been quite happy with it. http://www.oodie.com/project/odfaq/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: function problem
Matthias Bauw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a user does not have access to the script it should abort the script, this is done using a header(location: ccnopermission.php); statement But now it seems that while executing the function checkpermission() the code in ccadduser just keeps running and the database query that inserts the new user is executed before the user can be redirected to ccnopermission. Is there a way to make php wait until checkpermission is completely executed? I know it is not a simple question, but I really need a solution to ensure the safety of my system. grtz thanks DragonEye I'm not completely sure if I understand your question but PHP will process one function after the other. Without seeing some code I'm afraid we can't help you much. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: interface problem in PHP5
Erik franzén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anuyone describe this error? Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - Declaration of CMAES_DOM_Node_List::item() must be compatible with that of CMAES_DOM_Node_List_Interface::item() // {{{ interface CMAES_DOM_Node_List /** * * @access public */ interface CMAES_DOM_Node_List_Interface { function item(); I think you have to also define the arguments you want to use for item() in your interface: function item($a_iIndex); function search(); function addItem(); function removeItem(); } // }}} /** * CMAES_DOM_Node * */ class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface { // {{{ properties /** * Number of elements in node list * @var integer */ public $iLength = 0; /** * Nodes in list * @var array */ private $_aNodes = array(); // }}} // {{{ item /** * Returns the nth index given in item. * * @param inte $a_iIndex - index in list * @return mixed node object or null if item was not found * @access public */ function item($a_iIndex) Are you sure you need '' here? Shouldn't PHP5 pass all variables by reference on default? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: function problem
On Saturday 04 September 2004 03:42 pm, Torsten Roehr wrote: Matthias Bauw [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having a problem with a php application; I have two files: one is ccadduser wich adds users to a controlcenter that I am currently designing for a website. In that ccaduserfile I call for a function checkpermission(); this function is defined in another file called ccfunctions When a user does not have access to the script it should abort the script, this is done using a header(location: ccnopermission.php); statement But now it seems that while executing the function checkpermission() the code in ccadduser just keeps running and the database query that inserts the new user is executed before the user can be redirected to ccnopermission. Is there a way to make php wait until checkpermission is completely executed? I know it is not a simple question, but I really need a solution to ensure the safety of my system. grtz thanks DragonEye I'm not completely sure if I understand your question but PHP will process one function after the other. Without seeing some code I'm afraid we can't help you much. Regards, Torsten Roehr Two thoughts: You call function checkpermission(); that is defined in another file. How do you call this file: do you use absolute url? Might be the problem, as well as using header(location; ccnopermissions.php);. Might want to use an absolute url there too. Just a thought or two, Andre -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: interface problem in PHP5
If you want to delete an object, when you have other references to it, you must use the operator, otherwise the object will not be killed for all references. I tested without the -operator, but that did not work The -operator is still important in PHP5. Look at the folling example ? $a = new stdclass; $b = $a; $c = $a; ? unsetting a will only kill a, b and c will still be alive. setting a to null will kill c but not b /Erik Torsten Roehr wrote: Erik franzén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anuyone describe this error? Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - Declaration of CMAES_DOM_Node_List::item() must be compatible with that of CMAES_DOM_Node_List_Interface::item() // {{{ interface CMAES_DOM_Node_List /** * * @access public */ interface CMAES_DOM_Node_List_Interface { function item(); I think you have to also define the arguments you want to use for item() in your interface: function item($a_iIndex); function search(); function addItem(); function removeItem(); } // }}} /** * CMAES_DOM_Node * */ class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface { // {{{ properties /** * Number of elements in node list * @var integer */ public $iLength = 0; /** * Nodes in list * @var array */ private $_aNodes = array(); // }}} // {{{ item /** * Returns the nth index given in item. * * @param inte $a_iIndex - index in list * @return mixed node object or null if item was not found * @access public */ function item($a_iIndex) Are you sure you need '' here? Shouldn't PHP5 pass all variables by reference on default? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP site ?
How is osCommerce doing this? Go here to see exactly what I am talking about: http://wiki.oscommerce.com/docs I am using the REMOTE_ADDR but it does not provide all the information that osCommerce is showing. When I use the variable it shows the numbers like 192.168.10.25 (I know this is an internal network address, it is just for example.) osCommerce gets more than just the numbers, they get the name as well I think. Thanks for any insight on what they might be doing. -- Jack Rhino Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
Jack Gates wrote: How is osCommerce doing this? Go here to see exactly what I am talking about: http://wiki.oscommerce.com/docs I am using the REMOTE_ADDR but it does not provide all the information that osCommerce is showing. When I use the variable it shows the numbers like 192.168.10.25 (I know this is an internal network address, it is just for example.) osCommerce gets more than just the numbers, they get the name as well I think. Thanks for any insight on what they might be doing. http://www.php.net/gethostbyaddr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
When I use the variable it shows the numbers like 192.168.10.25 (I know this is an internal network address, it is just for example.) Use $_SERVER['REMOTE_HOST'] to get the hostname instead of the IP address. This will only work if Apache has HostNameLookups enabled. See: http://uk.php.net/manual/en/reserved.variables.php#reserved.variables.server for more details. Be aware that this will still show the IP address for people like myself who don't have reverse DNS enabled and also you will be making at least one lookup request for each page request - hence why it is disabled by default in Apache (see the comments in httpd.conf for more information). Only enable it if you *really* need it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: interface problem in PHP5
you could however always call: $a-__destruct(); that would also kill $b and $c Erik franzén wrote: If you want to delete an object, when you have other references to it, you must use the operator, otherwise the object will not be killed for all references. I tested without the -operator, but that did not work The -operator is still important in PHP5. Look at the folling example ? $a = new stdclass; $b = $a; $c = $a; ? unsetting a will only kill a, b and c will still be alive. setting a to null will kill c but not b /Erik Torsten Roehr wrote: Erik franzén [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anuyone describe this error? Compile Error: E:\Source\CMAES\src\include\dom.inc.php line 67 - Declaration of CMAES_DOM_Node_List::item() must be compatible with that of CMAES_DOM_Node_List_Interface::item() // {{{ interface CMAES_DOM_Node_List /** * * @access public */ interface CMAES_DOM_Node_List_Interface { function item(); I think you have to also define the arguments you want to use for item() in your interface: function item($a_iIndex); function search(); function addItem(); function removeItem(); } // }}} /** * CMAES_DOM_Node * */ class CMAES_DOM_Node_List implements CMAES_DOM_Node_List_Interface { // {{{ properties /** * Number of elements in node list * @var integer */ public $iLength = 0; /** * Nodes in list * @var array */ private $_aNodes = array(); // }}} // {{{ item /** * Returns the nth index given in item. * * @param inte $a_iIndex - index in list * @return mixed node object or null if item was not found * @access public */ function item($a_iIndex) Are you sure you need '' here? Shouldn't PHP5 pass all variables by reference on default? Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Win32 can't get PEAR to work
Tried installing PEAR. But pear is an unknown command after the install in my DOS box. There's no pear.bat file anywhere. There's an pear.bat_old file but no pear.bat. Last time I installed PHP on Win32, I didn't have to run any commands to install PEAR. You just need to alter your include_path directive in php.ini (it's fairly well documented in the comments in the file) to point to the folder with PEAR.php in (e.g. C:\php\pear) and you'll be able to do: require 'PEAR.php'; without any problems. If you want to install any other modules (provided they don't require any kind of Linux/Unix support) just extract the zip files into the PEAR directory and they'll be picked up. Most of PEAR (that I've used anyway) is just PHP files that you include anyway. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
Thanks for all the responses. Now I am satisfied and can leave this one alone. -- Jack Rhino Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Win32 can't get PEAR to work
Paul Waring wrote: Tried installing PEAR. But pear is an unknown command after the install in my DOS box. There's no pear.bat file anywhere. There's an pear.bat_old file but no pear.bat. Last time I installed PHP on Win32, I didn't have to run any commands to install PEAR. You just need to alter your include_path directive in php.ini (it's fairly well documented in the comments in the file) to point to the folder with PEAR.php in (e.g. C:\php\pear) and you'll be able to do: 1. I got two (2) php.ini files one in winnt and one in my apache folder which do I modify? 2. Could you tell me specifically the line that needs to be modfied? It's not obvious to me what line has to be modified and exactly what the modification should be. 3. I'll definitely back-up the ini file before trying this btw, I just have know specifically what to do. Thanks require 'PEAR.php'; without any problems. If you want to install any other modules (provided they don't require any kind of Linux/Unix support) just extract the zip files into the PEAR directory and they'll be picked up. Most of PEAR (that I've used anyway) is just PHP files that you include anyway. Paul -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Does any one else get this?
Every time I post to the list, I get an undeliverable on the address below. Does any one else get this? If this address is on the list can we get it removed? To: [EMAIL PROTECTED] Subject: [PHP] PHP site ? was undeliverable due to the following reason: [EMAIL PROTECTED] - User doesn't exist or is inactive. -- Jack Rhino Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP site ?
I replaced this: $address = getenv(REMOTE_ADDR); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get. -- Jack Rhino Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re:Success finally [PHP] Win32 can't get PEAR to work
Tried installing PEAR. But pear is an unknown command after the install in my DOS box. There's no pear.bat file anywhere. There's an pear.bat_old file but no pear.bat. Thank you to posters, go PEAR working after much whining. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: !!Urgent .. Session Problem Solved ... But not completely
It has to be in SOME file. Probably in your prepend file or one of the files that it includes. Dre [EMAIL PROTECTED] wrote: quote - believe me the FIRST line in the file is ?php session_start(); NOTHING AT ALL exists before it. but I still have the same error M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I think you didn't read all instructions we gave. One of them was to remove all spaces and/or newlines BEFORE the first ?php tag in your file, to save it and try again. anything before the ?php tag is considered HTML and thus output. Since headers are always sent before the output is, they will be sent the moment PHP notices the spaces and/or newlines. So, what happens is: PHP starts processing PHP encounters spaces and/or newlines PHP sends headers to the browser PHP sends those spaces and/or newlines to the browser PHP notices the ?php tag, and such swithed to parsing-mode PHP notices session_start(); and thus tries to send a cookie (a cookie is actually one of the headers) PHP notices that headers have already been sent! So it gives an error, because it can't get them back and send them after the cookie again. snip lots /quote -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] arrow values in command line php
A while back I decided I wanted a simple interactive interpreter for PHP. So I wrote a little PHP script that essentially did a read from stdin, and ran eval on that. Worked for most situations I was in. I'm trying to add some more features now, namely recalling a list of commands using the up and down arrow, and making each line left/right arrow editable. But I'm not sure exactly how to read the input from the arrow characters. Could someone tell me how or point me to a good resource on doing this kind of thing? Thanks, Weston -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHP IDE for OS X
Justin French wrote: Can anyone suggest a PHP editor/IDE for OS X other than: - BBEdit (already using it) - Zend Studio (it's Java, not OS X native) What I'm hoping for is: - some form of auto-complete text for functions/constants/etc, - integrated testing/debugging - integration with local install of PHP - anything else that will make my life easier without 'getting in the way'. My guess is it doesn't exist, but it's worth a shot. PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm looking for something more than a basic text editor, and it has to be OS X native (not some ugly, sluggish Java thing). --- Justin French http://indent.com.au I don't run OSX, so I don't know how easy this is, but it's definately worth the mention. OSX has a unix core. I saw a bit on TechTV saying if you install the developer tools, you can run virtually any *nix app. See these for more info http://developer.apple.com/unix/index.html http://developer.apple.com/unix/toolkits.html http://fink.sourceforge.net/ I saw some tutorials searching google for run linux apps on Mac too. That said, you could give Quanta Plus or Bluefish a shot, both are great free linux apps. My personal favorite is Quanta Plus, it contains most of what you mentioned (even auto-completes your variables) On the non-free side, Dreamweaver MX has some decent PHP features, although it's a pricey solution. mac stab You should be use to that though! ;) /mac stab -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP IDE for OS X
I use Drewmweaver's code view as a PHP IDE It allows me to manage my site / app files as a whole (which dreamweaver does great) and the built-in IDE (not the wyswyg) has great code hinting and the other standard features one might look for (syntax colors, line numbers, etc.) Since I usually do development as well as design, DW is a great IDE. The MX and MX 2004 have a real Homesite feel - a great IDE that never did make it over to the Mac. - Eric Marden On Sun, 5 Sep 2004 00:26:31 +1000, Justin French [EMAIL PROTECTED] wrote: Can anyone suggest a PHP editor/IDE for OS X other than: - BBEdit (already using it) - Zend Studio (it's Java, not OS X native) What I'm hoping for is: - some form of auto-complete text for functions/constants/etc, - integrated testing/debugging - integration with local install of PHP - anything else that will make my life easier without 'getting in the way'. My guess is it doesn't exist, but it's worth a shot. PLEASE, no On Windows I use... or I just use 'Text Editor X' -- I'm looking for something more than a basic text editor, and it has to be OS X native (not some ugly, sluggish Java thing). --- Justin French http://indent.com.au -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- eric marden http://xentek.net --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTTP Authentication in include()
--- Matt Wondra [EMAIL PROTECTED] wrote: I'm trying to include a file from an HTTP Authenticated server in PHP. I have a valid username and password. Is there any way to remotely login and include the file? Ex: include(https://www.url.com/incl1.php;); When allow_url_fopen is enabled, you can include a remote URL, similar to what you've shown. What PHP does for you is send an HTTP request to the remote server, receive the response, and include the content just as if you included a local file. It is this request that PHP sends that needs to have the Authorization header. To my knowledge, there is no way to add your own headers to this request made on your behalf, although you could certainly hack PHP's source to allow such a thing. What you can do is write your own code to make a request. I'll give you a quick example, but keep in mind that I'm just typing this out in an email, and it is likely to contain bugs. :-) -- $username = 'myuser'; $password = 'mypass'; $host = 'example.org'; $path = '/path/to/script.php'; $authorization = base64_encode($username:$password); $http_response = ''; $fp = fsockopen($host, 80); fputs($fp, GET $path HTTP/1.1\r\n); fputs($fp, Host: $host\r\n); fputs($fp, Authorization: $authorization\r\n); fputs($fp, Connection: close\r\n\r\n); fputs($fp, $data); while (!feof($fp)) { $http_response .= fgets($fp, 128); } fclose($fp); -- Your example cites a URL with the https scheme. To speak SSL, this example will of course require some enhancements, but hopefully this answers your question. Chris = Chris Shiflett - http://shiflett.org/ PHP Security - O'Reilly Coming Fall 2004 HTTP Developer's Handbook - Sams http://httphandbook.org/ PHP Community Site http://phpcommunity.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: installing PHP on winXP
Gerben wrote: hi there I have a problem with installing PHP on my winXp with apache server using the installer. I'm missing the sapi directory (c:/progra~1/php/sapi/) with in it the php4apache.dll file which apache misses. The weird thing is that I've succesfully installed php and apache on this same machine, but now it's not working. I've copied my httpd.conf and php.ini files from my last (succesfull) installation. I have apache 1.3.28 and php 4.3.4 (but the latest version 4.3.8 also doesn't work) Please help |:-( Are your paths the same as they were in your last install? If not, you need to update the conf files. Especially your modules directory You might read along the PHP manual install instructions and verify everythings in the right place. I always prefer the manual install anyway. I usually place php4apache.dll (and php4ts.dll) in the Apache root, or Apache/modules directory If all else fails you could uninstall and try the WAMP bundle. -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Does any one else get this?
Jack Gates wrote: Every time I post to the list, I get an undeliverable on the address below. Does any one else get this? If this address is on the list can we get it removed? To: [EMAIL PROTECTED] Subject: [PHP] PHP site ? was undeliverable due to the following reason: [EMAIL PROTECTED] - User doesn't exist or is inactive. I don't get them from that address, but I get them from From: Mailer Iguanahosting.com [EMAIL PROTECTED] Subject: Destinatario No exitente On top of that I've received post confirmations for messages I never sent. Hopefully since I never confirmed them, they never made it. I don't want to be considered one of the spammers that I'd like to knock the F* out. -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP5 - How Do I Let Users Download Music Files?
Hello everyone, I want to build a music site, all copyrights intact, and I want users to be able to download mp3 or realplayer files using a one-click link. When they click on a link they will simply be given a typical download window to save that music file. How do I go about doing that and how should my file structure work? What should the link include? Is it possible to just say, for example, http://somesite.com/music/something.mp3? Also, if I wanted them to listen to streamed music does PHP have any specialized functions I could use to achieve that? I just need some direction. Any help would be appreciated. Thank you. Nilaab
Re: [PHP] Re: Does any one else get this?
Sorry! Chris, I meant to send this to the list. On Saturday 04 September 2004 10:17 pm, Chris Martin wrote: Jack Gates wrote: Every time I post to the list, I get an undeliverable on the address below. Does any one else get this? If this address is on the list can we get it removed? To: [EMAIL PROTECTED] Subject: [PHP] PHP site ? was undeliverable due to the following reason: [EMAIL PROTECTED] - User doesn't exist or is inactive. I don't get them from that address, but I get them from From: Mailer Iguanahosting.com [EMAIL PROTECTED] Subject: Destinatario No exitente I get that one also. So far those are the only two. On top of that I've received post confirmations for messages I never sent. Hopefully since I never confirmed them, they never made it. I don't want to be considered one of the spammers that I'd like to knock the F* out. I send addresses to spamcop.net all the time. -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- Jack Rhino Gates, Registered Linux user #342662 Morning Star Communications, www.morningstarcom.net Web Hosting, Site Design, Domain Registration, VMware Workstation Software and GSX Server Software -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php