I click on the next link. It shows me the URL like
http://www.domainname.com/fj_messages/index/page:2
I want to change it like change this to
fj_messages/index/page:2
Like
message/inbox/2
Can I do like this?
...
Been trying for hours this php embedding in html but something is wrong as i get a error:
Parse error: syntax error, unexpected $end in C:\Program Files\xampp\htdocs\profile.php on line 678
<select value='$pays' name='pays' id='pays' style='width: 204px;margin-bottom: 5px; outline-width:0;'>
<?php
$result = mysql_query("SELECT pays_az,...
I was wondering if anyone knew of a method of capturing a customer signature from opera mini 8 on winmobile 6 , and having the signature save the image to the server?
Failing that, I'm going to have to create a client side app, but that defeats the purpose a little.
...
If you have a look at their website it shows statical data
$25 Billion in transactions
60,000+ merchants
2,000+ extensions
2+ Million downloads
EDIT: just wanted to know where does magento get its data from!?
...
Ok i am tryna make this code excute for every phone number in my db. Before following advice here i was only able to send to one number at a time, i got advice to add a while statment to loop it. However my code don't wanna work no more. Here is before and after. I know i did something wrong.
BEFORE (Working-no db)
// Set SMS options
$...
Minimum Set Cover is a question where you must find the minimum number of sets needed to cover every element.
For example, imagine that we have a set of X=array(1,2,3,4,5,6) and 5 another set S, where
S[1]=array(1, 4)
S[2] =array(2, 5)
S[3] =array(3, 6)
S[4] =array(1, 2, 3)
S[5] =array(4, 5, 6)
The problem is to find minimum numb...
After upgrading php from 5.1 to 5.2.10, I got the following warnings when php -v:
# php -v
PHP Warning: PHP Startup: fileinfo: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
...
Hi folks,
So this is pretty basic, I know! Sorry, just one of those days.
I've got an array of tags collected from a database. There could be any number of tags in this array. However, I only want to output 4.
So I currently have this code:
$iteration = 0;
foreach ($tagarray as $tag) { ?>
<div class="tagbutton listv">
<span><?php ech...
Prologoue:
I have a simple web-API accecible over HTTP with some corresponding mobile apps reading that data. Now someone decompiled an app / sniffed the HTTP traffic, got the url to my web API and build his own client acting like one of mine.
How can i secure the access to my API only for my own clients? Even with the thaugt of someon...
The following header informations I have added to send a html content as a mail message.
$headers = 'MIME-Version: 1.0' .
"\r\n";
$headers .= 'Content-type: text/html;
charset=iso-8859-1' . "\r\n";
$headers .= 'Content-type:
multypart/mixed;
boundary=\'PHP-mixed'."\r\n";
$headers .=
"Content-Transfer-Encodin...
hi
i want to know the user how many times enter in my website and also from the same ip address
using php.
i would like to prevent the site from user who continuously hit my site with in 2 seconds or 1 seconds.
if continuously any user hit my site i would like to avoid that user ip address.
thanks in advance
...
I have to filter orders which do not have a specific product.
It is simple, but the problem is that every order could have many lines, containing different products.
Here is an example of my data:
ID | Product | Customer | Quantidy | Date
1 | Apple | Alex Sorensen | 3 | 17.4.2009
2 | Orange | Alex Sorensen | 1 ...
I am trying to get the ID from a URL string.
I'm trying with the following code:-
FROM:
<url>http://www.monkeys.com/monkey.php?id=24</url>
I want to get '24' with:-
$ID = preg_replace($url, '/^<url>.*\?id=(.*)<\/url>$/', '\1');
Any help would be much appreciated - i'm sure this is a regular problem, but I find regex bafflin...
I'm working on a French language site built in CakePHP. I have tried multiple functions to try and convert the text into UTF-8 and display properly, but have had no success so far - any accented letters are displaying as a black diamond with a question mark. They do display correctly when I change the char set in the browser to ISO-885...
I've been using an HTTP POST to a php file to change entries in a given MySQL database. Essentially, the second the value changes, I would like the user that is viewing the database table to be notified. For now my temporary solution is to auto refresh a page displaying the table to keep it updated but I feel like there has to be a more ...
I want to use PDO but I'm not sure whether my hosting has set it up properly.
How can I test, in PHP, whether it is setup and working for MySQL?
...
if ( ( ($_FILES["file"]["type"] == "image/gif") ||
($_FILES["file"]["type"] == "image/jpeg") ||
($_FILES["file"]["type"] == "image/pjpeg") ) &&
($_FILES["file"]["size"] < 20000))
{
header ("Location: index.html");
}
i am using the above code to redirect the page to index.html if user has uploaded any im...
Hi fellow stackers,
I'm trying some supposedly nice features of PHPUnit, but I cannot generate a freakin' code coverage report. What I get is:
rolf@dev ~/projects/current/tests $ scripts/phpunit --configuration $PROJECTS/current/tests/conf/inc/tests.xml
[...]
Generating code coverage report, this may take a moment.
[...]
Fatal error: ...
How do I create a database if it doesn't exist, using PHP?
...
Using the Facebook Graph API I need a way to get the fan page id using that page created "user id".
Is it possible?
...