Everything posted by benwu
-
Simple PHP login help
It's terrible to save data of such into a text file because you have to write more script to fetch and search records. It's so much easier to save records into MySQL. Saving data into text file is not much easier than writing a record to MySQL anyway
-
Convert to MP4 (ffmpeg)
You can study the codes of http://phpmotion.com/ it got a nice video upload and conversion script. ffmpeg is great but I find mencoder supports much more codecs. If your server is running Centos, you can install more codes very easily yum install mplayer-codecs-extra
-
Which is the best open source CMS for this?
I think system like that would be much easier to implement using bespoke php script. There are many limitations of CMS like WP/Joomla. I find it much less work to just write the php than having to bend the CMS.
-
CMS
Here is a simple guide to build a CMS from scratch http://css-tricks.com/php-for-beginners-building-your-first-simple-cms/ It you don't want to write codes, you can just install Wordpress. There are tons of Plugin/extension for Wordpress from photo gallery to e-commerce shopping basket. regards,
-
Which CMS for Online Clothing Website?
Magento is a great system as well. But the learning cure is deep (at least for me :-( http://www.magentocommerce.com/ By saying that, you can search a template that you like and don't have to do any programming
-
What PHP framework do you use?
I only use framework for large projects. For small website it is much easily to just use Pear libraries. For large ones, I use codeigniter. The framework requires everyone in the time follow the same coding styles and it will be easier to manage/maintain in the future.
-
GD resize coming out black?
GD does not deal with PNG/GIF images with transparent background very well by default, at least it is not as easy to use as Imagmagick. and yes GD will fill the background with black. I used the script from http://mediumexposure.com/smart-image-resizing-while-preserving-transparency-php-and-gd-library/ to resize images using GD as not all hosting servers got imagmagick That script can deal with transparent background properly
-
php mail with attachment
It's very easy to use pear's package Here is an example http://www.html-form-guide.com/email-form/php-email-form-attachment.html personally I have used it many times and really like Pear
-
Web Development Software
For small websites, I just use vim For large websites, a software with project management will be nice. I heard that ZEND Studio is good for php but I haven't tried it before.
-
Admin Area
I think .htaccess is the most secure though. My account is hosted on a cpanel server with active firewall installed. If people tried to use dictionary attacks on the admin, the firewall can detect that and lock the IP. Can your php script do that?
-
Age limiter.
Yes 2 buttons. The 'under 18 button' redirects people to Disney's website
-
Adding a "how did you find us?" drop down menu
I used session to store the option and then send it to shop owner. $_SESSION['how_do_you_hear'] = $_POST['how_duh'] No database is required.
-
Online shopping carts
very complex site. just wonder how they produce the preview card image with the customized text. The spell checker works well ..
-
contactform problem ...
It's not allowed to display anything before the header command. therefore you need to remove echo($fname);
-
Hosting Querie
We provide cpanel hosting. Friendly and personal service. Contact us if required. thanks
-
Login to client areas
First, ask the hosting people what server technology the server supports. If the website is hosted on a linux server, you will not be able to make the page in ASP scripts. Second, if you knows some ASP already, get on with it. If not, I suggest using php as it is open and free. there are many resources out-there.
-
Contact Form Help
One quick way to debug your script is: 1. comment out the Header("Location: $errorURL"); 2. and put a line below the commented line echo "more specific reason why going to the error url" then you know which line got problem. There are must be some other better debugging methods but the one I said should be simplest.
-
can't drag favicon onto address bar
I notice I can't drag the favicon of a website onto the left of the address bar anymore. The personal bar is separated from the address on the the latest version of opera (9.5.2) my screen space is precious and i don't want another horizontal bar. I miss the older version of opera where the address and personal bar are combined
-
CMS - I Need YOU!
I agreed so much with you on this one. I have been a web programmer for more than 8 years and everytime I looked at a CMS I just give up. However, I collect free and useful scripts/libraries. So rather than using a 'framework', I use 'components' and assembles for new websites. Each time a customer asks for a new feature, I can confidently say 'yes I can', or 'no i can't". If the website is based on a CMS, and if customer has some special request, I will spend hours and hours reading codes (noramlly with no documents)... Ben
-
Paid To Signup / Click / Cashback Site Script
Do a search on http://www.hotscripts.com/ you may find something free.
-
Handling Money Transactions In Php?
IPN is actually just a callback function. When customer pays at paypal, paypal will POST some data back to a specified URL. Web deveoper needs to put a script on that URL to find out if the customer's payment is successful or not, the amount is right or not, etc.. and decides wether to generate a valid sales order... If you login to your paypal account, go to 'profile', you will find the IPN documentation there... Ben
-
Password Protecting A Directory via a Database
I don't like the way you implment the authentication, because you save the password both in mysql and the .htpasswd files. How are you going to syncronize both? If you are going to remove a user, you have to remove it from mysql and then edit the .htpasswd (or regenerate .htpasswd ) file. Howver, if you insist, You may have a look at how php interact with .htpasswd http://koivi.com/php-http-auth/
-
Can I trust mysql_real_escape_string() ?
I always use DB_DataObject package in the pear package to avoid writing any SQL directly. I think it would be much safer and will give u less problem becasue sql is sometimes hard to debug. A hard to spot typo would cause a couple of hours...
-
php - user login
I guess the best place to ask is http://www.phpbb.com/community/ also, without seeing codes of those problem pages it is hard to know what is happening.
-
putting the contents of a div into mysql automaticaly
If you document has lots of div tags, I think you have to use a html parser so that you can identify which tag to look at https://sourceforge.net/projects/simplehtmldom/