Is there any way that I could enjoy a decodeValue() function in PHP, too? I am posting those encodedValue values to a PHP file and I need to work with them in PHP as an array.
How can I end up with a PHP array or something from the encoded state in Ext? Or, is there any other way that I could work the encoded values to be able to easil...
In PHP
$regex = '/ ([$]) *(\d+(:?.\d+)?)/';
preg_match($regex, $str, $matches);
print_r($matches[2]);
This regex gives me the first occurence of a number that follows the first $ sign in a web page.
Now I want a regex that would give me the number after the second $ sign and maybe the third too.
...
I have a form set up in PMWiki. The action sends it to a php script which takes the information and does several different actions. The php script needs to validate the information that comes from the PMWiki page. I know how to do all of that.
However, if one of the fields doesn't validate, I want to reload the PMWiki page with all of...
i am trying to create an url which will set the blog post like ./wp-admin/post-new.php?post_title=title
i know that post_title, content and excerpt will work for this, but i dont know how to set meta tags.
i need this to create a new posting when clicking on a map (openlayers) and automaticaly set longitude and latitude in meta tags.
...
Hi
My current code is something like this
store.php?storeid=12&page=3
and I'm looking to translate it to something like this
mysite.com/roberts-clothing-store/store/12/3
and something like this:
profile.php?userid=19
to
mysite.com/robert-ashcroft/user/19
I understand that it's best to have the SEO-friendly text as far left a...
Nginx+PHP (on fastCGI) works great for me, but when I enter a path to a PHP file which doesnt exit, instead of getting the default 404 error page (which comes for any invalid .html file), I simply get a "No input file specified.".
How can I customize this page?
...
Hello,
I have a Python Server finally working and responding to multiple command's with the output's, however I'm now having problem's with PHP receiving the full output. I have tried commands such as fgets, fread, the only command that seems to work is "fgets".
However this only recieve's on line of data, I then created a while statem...
Given a list of common words, sorted in order of prevalence of use, is it possible to form word combinations of an arbitrary length (any desired number of words) in order of the 'most common' sequences. For example,if the most common words are 'a, b, c' then for combinations of length two, the following would be generated:
aa
ab
ba
bb
a...
From an E-Mail I get 'Sun, 21 Jun 2009 20:21:13 +0200' as the time how do I make strtotime output the universal time for it? which would be 18:21:13? I want to have the view part in UTC+2 (at least right now should follow :)). How do I achive this?
...
I am trying to call a publicly available web service from a PHP web page.
The web service is: http://www.webservicex.net/uszip.asmx?WSDL
My code:
<html>
<body>
<?php
$zip = $_REQUEST['zip'];
echo 'zip is'.$zip;
?>
<form action="wszip.php" method="post">
<table cellspacing="10" bgcolor="CadetBlue">
<tr>
<td><B>Enter Zip Code : </B><i...
I'm trying to enable a php file to access another file residing in a folder outside the root web directory over an HTTPS connection. This works fine over HTTP but for some reason HTTPS connections are failing to read the file.
I've enabled this over HTTP by disabling openbase_dir in a vhost.conf file, as follows:
php_admin_value open_...
Hello,
I have a java file that write records to the DB and time stamps
I have another php file that reads that records..
unfortunately After converting the time stamp to dates I got a wrong dates ??
what is the problem !!!
...
I just started on CodeIgniter a few hours ago, I ran into some problems. I am trying to call a function which is currently in a controller named 'Admin'. I am trying to access this from a helper.
How would I do this? I have tried almost everything but nothing seems to be working and outputs:
Fatal error: Call to a member function login...
Hi,
That´s a general question.
I need do retrieve the value of about 20 strings of about 100 characters each. Which of the following methods would be the quickest, in order to retrieve the variables?
1) reading from a separate include file, where the variables values are assigned (e.g. $var1 = "blablablah...."; etc)
2) reading from a t...
How may I retrieve, by JS (and I mean an external script), the value of some variables assigned in a (php) include file like the one below?
<?php
$var1 = "a";
$var2 = "foo";
?>
...
Hey Guys,
I've done a bit of searching around and was unsuccessful in finding an ample solution.
Specs are: OS X 10.5 with Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7l DAV/2 PHP/5.2.8
Error:
Fatal error: Call to undefined function zip_open() in /includes/admin_functions.php on line 18
Thank you for your help!
...
Hi,
I'm constructing an ecommerce application in Symfony, and I have a page which lists the products within a specific category, eg at the URL "/categories/list/id/1":
Product 1
Product 2
...
I'd like to have something of the form:
Product 1
* Add [ 1 ] of these to your shopping cart [Go]
Product 2
* Add [ 1 ] of these to your sh...
I have a string that has HTML & PHP in it, when I pull the string from the database, it is echo'd to screen, but the PHP code doesn't display. The string looks like this:
$string = 'Hello <?php echo 'World';?>';
echo $string;
Output
Hello
Source Code
Hello <?php echo 'World';?>
When I look in the source code, I can s...
Since a couple of months ago my website was full of notice errors so I'm trying to fix the code now. I suppose there was some php update. I'm not so bright at php so:
switch ( (isset($_GET['action'])) ) {
case "delete":
delete();
break;
}
this won't work when I add isset.
Can't you use isset inside a function?
I dont know really so...