We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › How do I loadStrings( a php file )
Page Index Toggle Pages: 1
How do I loadStrings( a php file ) ? (Read 605 times)
How do I loadStrings( a php file ) ?
Jun 10th, 2008, 9:55pm
 
This is web-based. Solutions need to be exportable.

http://sequoia.csc.ncsu.edu/~wlbowlin/index.html
http://sequoia.csc.ncsu.edu/~wlbowlin/data/index.php

The only difference between my prototype code and the LoadFile1 example is the file name; a php file meant to gather information by its own means. The end result would be a visualization that will be up-to-date whenever you look at it.

Though it seems simple, getting the php file to load is troublesome.

WHERE CAN I PUT THE PHP FILE The facebook API has a lot of assets that have to be in the same directory and in its own subdirectories, it is already a mess. I don't want to get confused later and delete something I didn't mean to.

HOW DO I MAKE PROCESSING WAIT for the data to load I suspect that the problem is that the php doesn't spit anything out instantly. It can sometimes take more than a minute to query all the data.

That is all I require at this juncture. I appreciate your assistance. This is going to be a fantastic piece when it is completed.
Re: How do I loadStrings( a php file ) ?
Reply #1 - Jun 12th, 2008, 10:42pm
 
The answer ended up being, in a nut shell, you just plain do it.

Here's a taste of example Code:
loadStrings(http://www.php.com/index.php); 



Turns out it was a different problem I was having entirely. If you are dealing with a php file that is doing permissions and is using session-specific actions prepare to be sad. Java counts as another entity even though it's embedded -- but it's just that. It's embedded. In my case, I was trying to get queried facebook data, but that data requires you to log in, so my full string array was something like this Code:

<javascript ....>
 redirect("facebook.com?loginorelse?auth=575757575757575");
</javascript>
(notice the obnoxious blank line it starts with)

The solution: store your info in a database that isn't locked out. Run a search for "php mysql" and you'll find a thread that's got all the more problems and answers ahead of you.
Page Index Toggle Pages: 1