how do i grab all parameters in the url and print it out?
if i have a link like this http://www.website.com/index.php?a=1&b=2&c=3&d=4 how can i print out all the parameters and its values without doing print $_POST['a']; thanks ...
if i have a link like this http://www.website.com/index.php?a=1&b=2&c=3&d=4 how can i print out all the parameters and its values without doing print $_POST['a']; thanks ...
Is it possible to make a mmorpg for the iPhone using PHP and MySQL(1,000+ players)? I was thinking of using MySQL to store all of the player information (name,username,pass,location,position). Then I would make that data accessible through php(pass a location to the php page and it returns all the player info for that area). Would PHP an...
I'm new to PHP, and I'm looking to do what I'd normally do with Struts Tiles in JSP. I'm looking for something like: Template.php: <html><body> <div class="header"></div> <div class="contents"> <#insert sectionName="pageContents"> </div> </body></html> Content.php: <#template name="Template.php"> <#section name="pageContents"...
Does PHP have any extension/lib that allows you to use .NET (C#) resources (sources) in PHP code? ...
I have three tables: Event, Events and Users. The Event table stores information relevant to a specific event (name, date, etc), the Users table stores user information (name, age, etc) and the Events table is the relational between the two, storing only Event_ID and User_ID. I need to list out all the events for a specific user (lets s...
Is thare any way to translate .net C# into PHP and vice versa? ...
using mysql as database. I got this code from the previous answers to the same question: session_start()): if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) { echo "Welcome to the member's area, " . $_SESSION['username'] . "!"; } else { echo "Please log in first to see this page."; } Could you pl...
Hi, I'm developing a site in PHP which has some complex SQL queries and I would like to implement a caching feature to reduce the load on the database. I'm just wondering would it be better to write and read HTML directly to a file or perhaps create something like a YAML file with a delimiter to separate records then wrap it in HTML w...
I mean if it's called with $request which is not instance of sfWebRequest ,will it be fatal,or just a warning? class jobActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this->jobeet_job_list = Doctrine::getTable('JobeetJob') ->createQuery('a') ->execute(); } // ... } ...
Can a function inside the functions.php file call another function from within functions.php? I'm guessing yes and which is why I wrote the code below, but it doesn't work for some reason. Can anyone please check it out and help me. I tried calling pageBarColor() from register_sidebar() Thanks. <?php if (function_exists('register_side...
Hello SO: I have two php files, one manages database connection and the other retrieves data from the database. I am writing this from scratch as a learning experience, and granted it is 5am but for some reason I cannot access the variables I need to. My database connection file is as follows: <? class mysqlManager { var $dbhost ...
Hello, I have done some google search on this topic and couldn't find the answer to my question. What I want to achieve is the following: the client make an asynchronous call to a function in the server the server runs that function in the background (because that function is time consuming), and the client is not hanging in the mean...
Hello, I spent days working on a function to get common chars in an array of strings, in the right order, to create a wildcard. Here is an example to explain my problem. I made about 3 functions, but I always have a bug when the absolute position of each letter is different. Let's assume "+" is the "wildcard char": Array( 0 => '48ca1...
I'm trying to add up two multidimensional arrays, both equally sized, field by field. I.e.: $sum[4][3] = $a[4][3] + $b[4][3]; Or: $a = array( array(1, 4), array(3, 2)); $b = array( array(9, 2), array(1, 0)); Should result in: $sum = array( array(10, 6), array(4, 2)); Is there a more elegant way than foreaching over all the array...
hi everyone, im new to this PHP im trying to develop a code such that when i click launch calendar it ll display calendar and when i choose the date it ll display in the text field but my problem is when i clik launch calendar its not showing feburay month.. i dont no wt the error in my code can anyone pls help me out in this.. thanks in...
So... for example I want to add to 1 five every 5 minuts (1 is in the DB)... With out direct calls from users.... So... How to make PHP code work without direct calls (on some kind of timer)? ...
If you can help with this you're a genius. Basically, I will have some text like this: <parent wealthy> <parent> <children female> <child> jessica <hobbies> basketball, soccer, video games </hobbies> </child> <child> jane <hobbies> ...
I'm struggling to parse an XML file in PHP: Here's the XML <rss xmlns:ac="http://palm.com/app.catalog.rss.extensions" version="2.0"> <channel> <title>Device App Updates for US</title> <link>http://www.palm.com</link> <description>Updates</description> <language>en-US</language> <pubDate>Mon, 04 Jan 2010 18...
Is it possible to convert voice mail into text using PHP? Is there any 3rd party voice to text converting software works well with PHP? ...
I have a paragraph of text in the following format: text text text <age>23</age>. text text <hobbies>...</hobbies> I want to be able to 1) Extract the text found between each <age> and <hobbies> tag found in the string. So for example, I would have an array called $ages which will contain all ages found between all the <age></age> ...