ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I wrote a php script that was running fine as a standalone script. Now I am attaching it to a web form and it goes to the script, but the php is not being interpreted correctly, I have the php as:
<?php
code that is interpreted until object->variable
?>
The interpretation seems to stop after the '->' syntax. what is going on? Thanks.
Please post your real script fragment and real error message. If you have no errors visible, enable it by "error_reporting" and "display_errors" directives in php configuration file. Also check that on the server is the same version of php.
i looked at the page source in firefox and it looks like everything is interpreted(in pink) up to and including the -> sign. According to my apache/errors/error.log:
[Tue Aug 09 05:39:54 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/announce
As you can see I am doing this in localhost
So you're trying to reference(->) a valid object variable(Nmsgs) in the 1 to number of messages portion of the string you're building and passing to imap_fetch_overview().
The "File does not exist: C:/xampp/htdocs/announce" error seems unrelated.
What does it mean - pink? Do you see your php code in the browser? You shouldn't. It would means that your server has no PHP installed or only files with .php extension are interpreted by it and you edited .html. You can parse html files too, by editing .htaccess file but it depends on server configuration, so you can ask admin.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.