Search found 11 matches

by edzillion
Mon Sep 29, 2008 5:12 am
Forum: PHP - Code
Topic: How do you run one php script from another
Replies: 3
Views: 488

Re: How do you run one php script from another

Well what I want to do is run a number of php query strings from the 'mother' php file. e.g:

abracadabra.php?query1=start&query2=middle

etc. I dont think the include statements provide for that?
by edzillion
Mon Sep 29, 2008 5:02 am
Forum: PHP - Code
Topic: How do you run one php script from another
Replies: 3
Views: 488

How do you run one php script from another

I am pretty sure this is not possible, but I can't find anything about it. I have a *lot* of cron jobs that I need to schedule to run v. often (every min) and instead of adding all of them to the cron job list, I thought instead that I could add one php script that would then call all the various sc...
by edzillion
Fri Mar 28, 2008 8:42 am
Forum: Javascript
Topic: two images in one css style
Replies: 2
Views: 774

two images in one css style

~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too. I am trying to edit a forum template to look like the rest of the ...
by edzillion
Fri Mar 14, 2008 6:22 am
Forum: PHP - Code
Topic: loading xml file from url problem
Replies: 4
Views: 3727

Re: loading xml file from url problem

using your try catch suggestion. If I try to load the file:    try { $xml = simplexml_load_file($feedStr); The exception isn't caught. Warning: simplexml_load_file() [function.simplexml-load-file]: scripts/pricefeed.php:18: parser error : Start tag expected, '<' not found in C:\xampp\htdocs\wpgoldpr...
by edzillion
Thu Mar 13, 2008 10:29 am
Forum: PHP - Code
Topic: loading xml file from url problem
Replies: 4
Views: 3727

Re: loading xml file from url problem

Im not sure exactly what you are suggesting here, but I should probably mention that my script works fine if the website hosting the xml file is up.
I just want some redundancy if the site I am getting the xml prices from goes down.

Thanks
Ed
by edzillion
Thu Mar 13, 2008 9:06 am
Forum: PHP - Code
Topic: loading xml file from url problem
Replies: 4
Views: 3727

loading xml file from url problem

my setup is this I have a php file that displays prices, it calls another php file that gets the xml file from a URL: pricefeed.php: <?php       $fileUrl = "http://someurl.com/prices.xml";     $AgetHeaders = @get_headers($fileUrl);       if (preg_match("|200|", $AgetHeaders[0])) ...
by edzillion
Tue Jan 29, 2008 11:37 am
Forum: Javascript
Topic: alert box popup from form onsubmit
Replies: 3
Views: 369

Re: alert box popup from form onsubmit

thanks
Also, the 'this' pointer in validateFormOnSubmit(this), what type is it?
How to deal with this in the javscript function declaration?

Ed
by edzillion
Tue Jan 29, 2008 8:40 am
Forum: Javascript
Topic: alert box popup from form onsubmit
Replies: 3
Views: 369

alert box popup from form onsubmit

I am trying to replicate the functionality of a form on a webpage, and I need some help.  <form id="form1" onsubmit="return validateFormOnSubmit(this)"  name="updates" method="post" action="market_update_FV.php"> When the form is submitted with incor...
by edzillion
Tue Jan 29, 2008 4:24 am
Forum: PHP - Code
Topic: simplexml_load_file() can not find file at URL
Replies: 1
Views: 272

Re: simplexml_load_file() can not find file at URL

I've fixed it. thanks.
The hosting service had turned off outbound connections by default.
by edzillion
Tue Jan 29, 2008 4:10 am
Forum: PHP - Code
Topic: simplexml_load_file() can not find file at URL
Replies: 1
Views: 272

simplexml_load_file() can not find file at URL

I'm trying to load an xml file from a URL. For a test I copied the code from the php manual here: http://ie.php.net/simplexml_load_file <?php // The file test.xml contains an XML document with a root element // and at least an element /[root]/title.   // New York Times RSS feed $sourcePath = "h...
by edzillion
Mon Jan 28, 2008 10:16 am
Forum: PHP - Code
Topic: php class missing
Replies: 1
Views: 133

php class missing

Ok I am new to php and I am having problems with a missing class I get the error message: Fatal error: Class 'DOMDocument' not found in ...blah.com/html/xmlParser.php on line 49 I have looked at the phpInfo on the server and it states libxml libXML support active libXML Version 2.6.26 libXML streams...