Hi. I have a url that look like this reg.php?lang=no_NO&passkey=testand im trying to get the passkey variable, but it keeps showing up blank.
When I try print_r($_GET); it prints Array ( ) ?! How can this happen?
The site look something like this
<?php
print_r($_GET);
include('..\libs\Smarty.class.php');
?...
So I've got a class that I'd like to have it just set defaults if they're not passed in. For example, I can pass it an array called $options.
function new_score($options)
{
}
Then I'd like to have a different function that I can set a var to a default if a key with that var's name doesn't exist in the $options array;
The function de...
I wish to set the title of my webpage to Ultan.me - Whatever the post title. I want it to display the post title. The posts are submitted to a MySQL database and the title row is called "title". Any help is appreciated with this small question.
Update:
Here is the page itself now but it doesn't display the title. Should I open the php ...
Hi,
I am struggling to know where to start when trying to assign ranks to the numeric values in an array when there are ties. So, for example, I need to turn an array like the following:
myarray = (4,76,34,13,34)
into another array like:
myarray2 = (1,5,3.5,2,3.5)
Basically, when the same number occurs more than once in the array...
I have a Java background. So please bear with me.
In a Java application, one way to perform one time initialization is to have an "Initializer Servlet" whose init() method can have one time initialization code. Another more general purpose mechanism is to have a Singleton that initializes on first use - and this mechanism will work in ...
I could really use some help optimizing a table on my website that is used to display rankings. I have been reading a lot on how to optimize queries and how to properly use indexes but even after implementing changes I thought would work, little improvement can be seen. My quick fix has been simply to use only the top 100,000 rankings (...
I´m trying to update the rss_feed.xml file, using form and submit to php.
I don´t know so much about xml parser, Can somebody plase help me ?
here is my php code.
<?????????????????????
$title=$_POST['title'];
$description=$_POST['description'];
$link=$_POST['link'];
$title=htmlspecialchars(trim($title));
$description=htmlspecialchars...
Hello I have two dependants select box, the second one is popularited after onchange event.
The first one is loaded with a selected value (selected=selected), what I'm asking, it is possible to send the requested while the page is loading, ie as I have the the selected option, just send the request.
Javascript
function getXMLHTTP() {
...
I used to have a "Buy Now" button that would go through PayPal, and then, through the button's advanced option, I redirected the users to a "Success" page that would give the serial for the product they purchased.
Obviously, this page had to get confirmation from PayPal, through the variables PayPal gave it, in order to know that a paym...
So I had a wordpress installation on my localhost... http://localhost:8888 so I've uploaded the wp files on my FTP, and I've imported the DB.I can't use a new installation because I've edited some core files...
I also edited the table wp_options on my site(the web) i've edited the fields, siteurl and home so those two fields, contained ...
I need a way to take a block of HTML code and make all URLs absolute. I've tried to adopt various regex examples out there but had no luck. These are the requirements:
Replace both HREF and SRC urls
If URL is already absolute, leave it
If URL is absolute, replace it
Each HTML comes from a known URL (example.com/folder/file.html) whic...
The story goes like this:
I have Zend server CE PHP5.3 with all the modules available enabled running on Debian Etch.
I decided to upgrade Debian Etch to Lenny, then also upgraded PostgreSQL 8.1 to 8.3
Restored the database mydatabase --> $ psql mydatabase < schema_and_data.sql
Checked the web site that connects to a postgreSQL databas...
I am trying to convert a date/time string in this format
YYYY/MM/DD/HH:MM:SS
to a format that is recognized in PHP
...
I want to know is it possible to read information from other parties using PHP about their SSL certificate information, I've tried to find about it for ages but there's no real answer that has been found for me.
For example, I input "www.paypal.com" into the script and it will return the following:
Authority: VeriSign, Inc
Expires: 18...
I often have comment forms and lots of users post things such as !!!!!!!!!!! and ??????????, and I want to use preg_replace to change them to !! and ??, with two maximum.
Any idea how to do this? Thanks in advance.
...
I was working on a rewards website in php and mysql. I have almost finished everything but the client now wants the website to be in .net and not php. Most of the php coding is completed and it is not possible to start from scratch in .net and finish the whole website in 2 weeks.
I am good with php but not much knowledge about c# or as...
hi all,
we're using file_get_contents to communicate with a web service, which creates users and if succeeds it returns a JSON object with the details of the new created user.
the code below shows how we do it, the user is successfully created, meaning we can see it from the back-end, however, we just can't get the JSON response, it re...
I am new to regexp in php. I am just trying to do a simple preg_match on two strings. Here is my code:
$pattern = '\\w*'.strtolower($CK);
if(preg_match($pattern, $rowName, $matches) == true)
{
echo 'true';
}
But I keep getting the error:
Warning: preg_match() [function.preg-match]: Delimiter ...
Hello,
Trying to get this to function, randomly chooses 1 of the 3 color choices.
Is rand only capable of generating numbers? or Numbers/letters in a series.
<div onclick="location.href='<?php the_permalink() ?>';"
style="cursor:pointer;background:#<?php echo rand (DDCA73, A0AA47, ADBAE1)?>;"
class="post bg thickbox" id="thickbox post-...
What I am trying to achieve is to explode a string into an array as follows:
$arr = explode('<some_tag></some_tag>', $str);
But I want to explode it even if there might be something between the tags:
$str = '<some_tag>text<some_tag>');
Could you please suggest how to settle down the problem?
...