Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

benwu

Members
  • Joined

  • Last visited

Everything posted by benwu

  1. 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
  2. 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
  3. 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.
  4. 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,
  5. 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
  6. 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.
  7. 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
  8. 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
  9. 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.
  10. benwu replied to Michael Robson's topic in Server Side
    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?
  11. benwu replied to irn3rd's topic in Server Side
    Yes 2 buttons. The 'under 18 button' redirects people to Disney's website
  12. 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.
  13. very complex site. just wonder how they produce the preview card image with the customized text. The spell checker works well ..
  14. It's not allowed to display anything before the header command. therefore you need to remove echo($fname);
  15. benwu replied to Cuppa.T's topic in Server Side
    We provide cpanel hosting. Friendly and personal service. Contact us if required. thanks
  16. 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.
  17. benwu replied to Timmo's topic in Server Side
    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.
  18. 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
  19. 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
  20. Do a search on http://www.hotscripts.com/ you may find something free.
  21. 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
  22. 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/
  23. 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...
  24. 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.
  25. 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/

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.