php

Opencart Installation and Display Errors

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...

how to get value from java script then store in php variable

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 ...

any idea how to stop HTTP_DOWNLOAD pear package from resuming downloads !?

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 ...

mysql - How select a akin records?

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...

What types of Linux skills does a typical PHP developer need?

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? ...

How to display external database data in VBulletin 4 Forums Custom PHP Block?

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_...

encryption decryption function in php

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...

Paypal integration with PHP

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 ...

Best approach for storing uploaded image

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. ...

How to post data in PHP using file_get_contents?

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...

How can I download and display first 200 or 250 characters from a web-page?

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 ...

IsZend Db Adapter registered in Registry when using a default recource?

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? ...

AuthSub target path prefix does not match the provided "next" URL

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 =...

PHP extension wrapper for C++

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 ...

PHP postgres backup.

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 -...

Ruby on Rails, PHP or C++ for web social network

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...

in php, how to send the html tag to mail

<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...

adding array values

Array ( [0] => Array ( [datas] => Array ( [name] => lorem [id] => 1 [type] => t1 [due_type] => Q1 [t1] => 1 [t2] => 1 [t3] => 1 ) ) [1] => Array ( [datas] => Array ...

How to get current Joomla user with external PHP script

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...

Which is a good opensource user management system?

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...