Hello,
I need a bit of help installing a copy of Opencart onto my Godaddy hosting. I have had one major problem and that was, after during and after the install, none of the styles or images where appearing. I was able to completely fix the admin panel, but I am now running into problems with the frontend. I was able to fix the styles by...
Duplicate:
http://stackoverflow.com/questions/2338942/access-a-javascript-variable-from-php
hi
i want get value from java script, then i will use the value in php, both are in single php file.
send how to connect with these two in single file....
thanks
...
how to force HTTP_DOWNLOAD not to resume downloads ( for free unpaid members for example ,but i'll take care of this ) .. I tried to miss with the range commands , I got it not resuming but in the same time doesn't send the file size and the user will not know how % has completed or how big the file is ....
any help is appreciatd
...
I have a table with
name varchar
address varchar
country varchar
city varchar
.....
to store address of location
example:
name|address|country
HaLong hotel|156 blahblah street|Vietnam
Hotel Ha Long|156 blah blah|Vietnam
Two rows above is duplicate data.
I have a form, when user submit new location. The code need to find akin rec...
I am trying to improve my programming skills by learning more about frameworks, methodologies, and related technologies. I have seen a lot of job postings with requirements that also include Linux and/or Apache. So, my question is, what sort of things should I study in terms of Linux from a development standpoint?
...
Hi guys! I want to display data feed from an external database in a sidebar in the forums section.
PHP Block Code :
$host = 'db.123.net';
$dbUser = 'db49';
$dbPass = 'iReVbY';
$db = 'db6578h8';
mysql_connect("$host", "$dbUser", "$dbPass") or die(mysql_error());
mysql_select_db("$db") or die(mysql_error());
ob_start();
$result = mysql_...
import gnupg, urllib
retk = urllib.urlopen("http://keyserver.pramberger.at/pks/"
"lookup?op=get&search=userid for the key is required")
pub_key = retk.read()
#print pub_key
gpg = gnupg.GPG(gnupghome="/tmp/foldername", verbose=True)
print "Import the Key :", gpg.import_keys(pub_key).summary()
print "Encrypt the Message:"
msg = "Helllllll...
Hai,
I need a system that automatically transfer funds from one paypal account to another paypal account when i click on a button. Is there any paypal API with PHP to perform this task.
thanks
...
What are the advantages and disadvantages of storing an image as a blob in the database vs storing just the file name in the database.
I'm using PHP(CodeIgniter) with MySQL.
I know this question is subjective but a client asked me this question and I couldn't give a good answer.
...
I am using PHP's function file_get_contents() to fetch contents of a URL and then I process headers through the variable $http_response_header. Now the problem is that some of the URLs need some data to be posted to the URL (for example, login pages). How do I do that?
I realize using stream_context I may be able to do that but I am not...
Hello,
I have a list of urls for which I want to display first 200 or 250 characters. Can I do it using jquery or should I download them on the server side [using PHP] and store them in database?
I guess I will have to use fopen with limit of characters. **
Edit
First 200 characters of "body" excluding tags. Like summary
...
There is a out of box resources in Zend Framework,
when configures in the ini file
resource.db.user ="xxxx"...
the bootstrap sets up db adapter, just curious does bootstrap sets db adapter into registry too, or not?
...
I am trying to use the Gcal API in PHP.
I am using the ZEND framework
function getAuthSubUrl($company)
{
$next = "http://$company.mysite.com";
$scope = 'http://www.google.com/calendar/feeds/';
$secure = false;
$session = true;
return (Zend_Gdata_AuthSub::getAuthSubTokenUri($next, $scope, $secure, $session));
}
$authSubUrl =...
Hi guys, I am new in this area of writing extension for PHP, however I need to create a wrapper class for C++ to PHP. I am currently using PHP 5.2.13. I read this article http://devzone.zend.com/article/4486-Wrapping-C-Classes-in-a-PHP-Extension, a tutorial on how I could proceed to wrap C++ class to communicate with PHP Zend however it ...
Hi. I am trying to make a Postgres PHP backup script. I have downloaded one for the command line which looks like this:
#!/bin/bash
find /home/russell/pg_bkp -type f -mtime +7 -exec rm {} \;
time=`date +%Y-%m-%d`; # date in reverse so that lastest date appears last in the list of backup files.
PGPASSWORD=****** pg_dump -i -h localhost -...
Hello,
I have chosen diploma work in university. It's a mini social network. But now I am really stuck with which technology I should stick. I am average at C++ ISAPI web services development, below average PHP(had few projects with it) and new to Ruby and its framework RAILS. I have a deadline 1.5 month to develop it(about 5 hours ever...
<script type="text/javascript">
var head= 23;
</script>
<?php
$h="<script language='javascript'> document.write(head);</script>";
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=ISO-8859-1" . "\r\n";
$mail_from='[email protected]';
$name="husssain";
$headers.="From: $name <$mail_from>";
$con="Welc...
Array
(
[0] => Array
(
[datas] => Array
(
[name] => lorem
[id] => 1
[type] => t1
[due_type] => Q1
[t1] => 1
[t2] => 1
[t3] => 1
)
)
[1] => Array
(
[datas] => Array
...
I have a couple PHP scripts used for AJAX queries, but I want them to be able to operate under the umbrella of Joomla's authentication system. Is the following safe? Are there any unnecessary lines?
joomla-auth.php (located in the same directory as Joomla's index.php):
<?php
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(__FILE...
I'm new to php/mySQL and am trying to create a website which will allow users to register. In future, there will be a paid content area where content will be shown based on the payment status.
Is there a good opensource lightweight framework which takes care of the user management part? (Register, edit user info, retrieve lost password...