Search found 11 matches

by MikeEller
Mon May 03, 2010 8:08 am
Forum: PHP - Code
Topic: $_POST Array
Replies: 3
Views: 260

$_POST Array

Hi Forum, Quick question.... Is it it possible to use/send $_POST array as a parameter to function? Meaning I have a function that has as its parameter an array....the values in the array come from $_POST values from a form. Can I just pass in $_POST or do I have to read all the post values into ano...
by MikeEller
Fri Jan 22, 2010 7:59 am
Forum: PHP - Code
Topic: Using Variables in Simplexml
Replies: 3
Views: 241

Re: Using Variables in Simplexml

No that did not work. If I hard code it, it looks like this <img src="<?php echo $xml->bolivia[0]->flag->path; ?> /> And this works..... What I need to do is use a variable in place of bolivia.....like this: <img src="<?php echo $xml->$country[0]->flag->path; ?> /> Where $country is variab...
by MikeEller
Fri Jan 22, 2010 7:09 am
Forum: PHP - Code
Topic: Using Variables in Simplexml
Replies: 3
Views: 241

Using Variables in Simplexml

Hi, I want to be able to use a variable in simplexml statement like this: $thename = $_GET['NAME']; $xml = simplexml_load_file("countries.xml"); $thename = $xml->$country->name; however, it does not allow me to use the variable ($country) this way. Is there a way to do this? I need to be a...
by MikeEller
Wed Aug 26, 2009 10:05 am
Forum: HTML, CSS and other UI Design Technologies
Topic: Creating Dynamic DOM Elements
Replies: 2
Views: 1551

Creating Dynamic DOM Elements

Hello, I would like to be able to dynamically create HTML elements (text boxes, labels, buttons, etc) using DOM. Can this be done? I know that I can create the entire page from scratch using DOMDocument, but I just want to insert elements by creating php objects that implement DOM elements. For exam...
by MikeEller
Mon Jun 15, 2009 8:54 am
Forum: PHP - Code
Topic: Static Count
Replies: 0
Views: 103

Static Count

Hello, I have a project where I need to keep a running count. I have a form. When the user clicks on the save button, I need the two form values from input text boxes to be written to file. That works fine. I also want to keep a running count of how many saves the user does. The user is creating a l...
by MikeEller
Mon Aug 04, 2008 12:49 pm
Forum: PHP - Theory and Design
Topic: Complex Decision Code_Best Approach
Replies: 3
Views: 1101

Complex Decision Code_Best Approach

Hi, I have a function that must work through several layers of decision points. Right now implemented with nested If...Else blocks. Many times the decision arrived at must implement the same code with just a change or two to variable values and such. And it is getting difficult to follow. My questio...
by MikeEller
Tue Jan 29, 2008 12:50 pm
Forum: Installation and Configuration
Topic: Testing PHP without the server
Replies: 6
Views: 956

Re: Testing PHP without the server

Yeah, I will probably just break down and run apache on my client machine. I was just wondering if there was way or tool to use to avoid it.

v/r
Mike
by MikeEller
Tue Jan 29, 2008 11:09 am
Forum: Installation and Configuration
Topic: Testing PHP without the server
Replies: 6
Views: 956

Re: Testing PHP without the server

I am on Linux...
I will look at Eclipse

Thanks
by MikeEller
Tue Jan 29, 2008 11:05 am
Forum: Installation and Configuration
Topic: Testing PHP without the server
Replies: 6
Views: 956

Testing PHP without the server

Hello,

Is there a way I can run/test my PHP code without having to setup a full blown web server and such on my client machine. Or am I stuck sending the files back and forth?

Either and IDE that does this or a way to setup a PHP environment just for testing code and such.

Thanks,
Mike
by MikeEller
Sun Feb 05, 2006 4:42 pm
Forum: PHP - Code
Topic: Newbie Question Regarding Page Name
Replies: 6
Views: 445

OK,
I tried that and when I navigated to the page...I got a blank page.
The website host says PHP is supported.
So, does that blank page indicate that PHP is not configured on the server?

Thanks,
Mike
by MikeEller
Sun Feb 05, 2006 3:47 pm
Forum: PHP - Code
Topic: Newbie Question Regarding Page Name
Replies: 6
Views: 445

Newbie Question Regarding Page Name

Hi,
Just started playing with PHP.
One question...
An HTML file must have the .php extension...correct?
If so, how do I use that for my main html document? The "index" page that the server looks for when I
enter the url to the web site in a browser.

Thank you,
Mike