-
Content Count
41 -
Joined
-
Last visited
-
Days Won
1
Everything posted by cityzen
-
You can't alter the url in the address bar with Javascript. You have to do it from the server, the '.htaccess' file may help you. If you don't want to deal with difficult codes like Apache and url rewritting use to be, there is simple alternatives like renaming this webpages 'index.php' and put them in folders waring the name you want to show, then you can call just the folder url to see the page, like this one: http://forums.xisto.com/no_longer_exists/
-
The Best Media Player Which is your best media player?
cityzen replied to finaldesign's topic in Software
VLC is a great media player, it supports every media files, even the flash ones (flv).You can organize very easily your clips and movies in lists, manage the sound, take screenshoots, turn out the video just to hear it, etc. With VLC you can also see tv online, or hear web radios. -
What's favicon.ico ? favicon.ico is the small image that appears in the tabs of your browser, bookmarks and web history, even in your desktop when you save a shortcut to a specific website. You can see them in almost everywhere. Why should I have a favicon.ico ? favicon.ico gives to your visitors a good visual landmark and are generally welcome. They are small but very visible. Then, it's a good way to brand your website. What appens if I don't want to have a favicon.ico? When your visitors visit or bookmark your page, or have a look to their history, their browser will request for it and your server will send an error page 404. If you have customized errors pages with styles, images, etc. , it will be sent each time favicon.ico is requested even if nobody see it. However, If you plan to design your favicon.ico later on, you can simply put an empty file at the root of your web server, this way you'll avoid error messages and useless logs. But don't avoid it, it's worthy. How to create a favicon.ico? You can find many icon editors in google. I use icoFX, it's a very friendly user, complete and efficient tool that alouds picture importations, supports transparency, picture editions, texts with fonts, and gives many setting choices. Using the minimal settings(16x16 pixels in 2 colors), you may have a very acceptable favicon.ico's weighting arround 198 bytes. How to include it in your pages Once you feel happy enough with your new favicon.ico, just upload it at the root of 'yoursite.com', and add the following rows within your <head> tags to make it appear to the browser’s tabs: <link rel="shortcut icon" href="favicon.ico" /> or with the absolute url: <link rel="shortcut icon" href="http://yoursite.com/favicon.ico" /> That's all, enjoy it
-
Hi Nitin, No doubt, your support and hosting services are really excellent. I'm also interested in full flash development and make some 'rich internet applications', and of course xml seems essential to do that. Before knowing your existence I tried another web hosting, to test some things like installing a secured connection and share flash presentations in facebook pages, it worked well and I was satisfied in spite of the slowness, until I saw that they added some hidden links to viagras websites in my page, it's scarring to think what else they could be able to do...However, let's say that it was a bad dream, and that I finally found a safe and reliable place to develop nice things in company of great people. Thank you very much, Nitin, for your suggestions, data syndication sounds good. Cheers, see you soon around
-
Thank you very much Velma, I just signed up to Xisto - Support, I didn't know it was necessary, but now it seems obvious . To answer to your question, I'm curious about almost everything in web technologies. New trends like social websites, the always rising technologies like Flash and actionScript, the server side management with php, apache and mysql, web marketing, design, semantics, the new web constraints with mobile supports, and also remote management with visual basic, etc... it's huge and exiting to combine all of them, whatever is possible, imagination is the only limit. I'm actually thinking about some small projects that makes life easier when you have strong requirements and use technologies in a very eclectic way (taking the best stuffs of each one). Small projects, but quite a challenge. Thanks again, Velma, for reminding me to sign up in xisto, cheers
-
Thank you Rgp, In french we use to say that 'explaining is learning twice'. When I was accountant, I needed consultants to develop some management systems, I could see that most brilliants ones use to be open minded and share easily their knowledge, while the weak ones overprotected it like the philosophal stone. finally I had to do it my self. I'm trying to write some new tutorials, but you know how important is planing to make it easier and write them well and in a regular basis. I'm one week late, but I'll keep my word, one per week,
-
Thank you very much for your nice welcome messages, I just posted my first tutorial about Virtual Hosts as test environment, It was tricky to do it short, I hope it's clear enough and understandable. Cheers.
-
The purpose of this short tutorial – my first one – is to help you to manage your web laboratory, combining online and offline stuffs, and switch easily between virtual and real host using the same address. Let’s say that you want to test in a safe and clean way some codes in your own PC before to upload them to the web. Your websites use external stuff, like fonts, javascripts, datas or whatever offered by Google, Bloomberg or Facebook, and are located to their websites. The question is: how to switch easily between the testing environment (the virtual host located in your PC, only accessible to you) and real host (located in the real world, the Web), and reverse using the same address: ‘yoursite.com’? Half answer is: the latest version of EasyPHP includes an optional module called ‘Virtual Hosts Manager’. It’s perfects for simple needs and is easy to install... but it has some issues that makes it useless. We'll solve this here. At first you’ll have to install once the environment Server in your PC, then we'll see how to create in 3 easy steps your web laboratory with as many domains and subdomains as you wish into your computer, and switch between virtual and real web, __________________________________________________________________________ Installation and configuration of your WAMP __________________________________________________________________________ Install your WAMP – Windows Apache MySQL PHP Goal: to get a virtual web server environment full featured in you PC. Go to http://www.easyphp.org/ and install the version and modules of your choice. (Wordpress, Drupal, Prestashop, Joomla, etc.) By default it will be installed in this folder: C:Program FilesEasyPHP-12.1 Note: if you want to install it elsewhere, make sure to do the appropriate modifications in the further steps. __________________________________________________________________________ Install the Virtual Hosts Manager in your WAMP Goal: configure your WAMP to support Virtual Hosts Go to http://www.easyphp.org/ to get the latest Virtual Hosts Manager, or download it directly using this link: http://forums.xisto.com/no_longer_exists/ Install it in the same folder as EasyPHP: C:Program FilesEasyPHP-12.1 In the EasyPHP program, make sure that Apache is running and go to ‘Administration’, or press the touches ‘ctrl+A’, or go directly in your browser to: http://forums.xisto.com/no_longer_exists/ (If it doesn’t work, do the appropriate changes as described in the next step, and come back here) In the list of modules, you’ll see Virtual Hosts Manager, and at it’s left a button saying ‘add virtual host’. Feel free to use it, personally I avoid it. This module doesn’t offer all the flexibility and liability that you deserve, you’ll probably get several heavy warning messages while you use it, and switching often between virtual and real Host may become a nightmare when you do many tests, instead of exiting as it should be: it doesn’t activate/deactivate virtual hosts properly. But, if it works well enough for you and meets all your needs, you can use it ‘as is’ and won’t need to walk through the further steps. At this point: We installed a module that alouds easyPhp to support Virtual Hosting. __________________________________________________________________________ Apache - Edit the port of your localhost Goal: simplify the configuration of your localhost Make a backup and open the Apache configuration file: C:Program FilesEasyPHP-12.1conf_fileshttpd.conf Go to the row 62, normally you should see this: Listen 127.0.0.1:80 Then it’s ok and you can go to the next step. Otherwise, if you see something like: Listen 127.0.0.1:8887 Below this row, add this one: Listen 127.0.0.1:80 Note: if you want to deactivate this for whatever reason, you can comment this row just adding a ‘#’ at the beginning of the row. At this point: now you can access to your localhost just typing 127.0.0.1 in your browser and will be able to edit properly the hosts file as described below. __________________________________________________________________________ The 3 easy Steps to configure your Virtual Hosts __________________________________________________________________________ Step 1: Edit your ‘Hosts’ file Goal: redirect ‘yoursite.com’ to your localhost With Wordpad, open the file: C:WINDOWSsystem32driversetchosts It’s a file without extension, make first a backup copy. Add the following row to your ‘hosts’ file: 127.0.0.1 yoursite.com Optional tip: If you want to access to your localhost just typing ‘localhost’, then add this row if it’s missing: 127.0.0.1 localhost Save your modifications and make sure that your text editor didn’t add a ‘.txt’ extension to your file, otherwise it won’t work, and that’s why I recommend Wordpad to do it. At this point, if you visit ‘yoursite.com’ with your browser, you should access to the contents of your ‘localhost’ witch files are located in your PC. __________________________________________________________________________ Step 2: Apache - Create a configuration file for ‘yoursite.com’ Goal: define the specific folder for ‘yoursite.com’ in your localhost First, create the main folder for your offline works: C:Program FilesEasyPHP-12.1wwwyoursite Now, open the Apache configuration folder C:Program FilesEasyPHP-12.1apacheconf Create a new text file and add the following rows: <VirtualHost 127.0.0.1> DocumentRoot "C:/Program Files/EasyPHP-12.1/www/yoursite" ServerName yoursite.com <Directory "C:/Program Files/EasyPHP-12.1/www/yoursite"> Options FollowSymLinks Indexes AllowOverride All Order deny,allow Allow from 127.0.0.1 Deny from all Require all granted </Directory> </VirtualHost> Note: be aware, Apache makes a difference between ‘/’ and ‘’ Save this file as: C:Program FilesEasyPHP-12.1apacheconfyoursite.conf At this point: you just created a configuration file for the Apache server that you can activate/deactivate in the next step. __________________________________________________________________________ Step 3: Apache – Activate your configuration file Goal: Activate the configuration of your Virtual Host in you local server With your text editor, open the Apache configuration file: C:PROGRAM FILESEASYPHP-12.1conf_fileshttpd.conf At the end of the file, add the following row: Include conf/yoursite.conf Important: with your EasyPhp console, first: STOP Apache, then: START Apache, just restarting may not always work properly either. At this point: if you visit ‘yoursite.com’ with your browser, you’ll access to the empty file you just created for your virtual host. __________________________________________________________________________ How to Activate/Deactivate Virtual Hosts Like in Step 1, open your ‘Hosts’ file, and then, to deactivate, the Virtual Host of your choice just add a ‘#’ at the beginning of it’s row, and save it. To reactivate it, just remove the ‘#’: # 127.0.0.1 yoursite.com Then you’ll access directly to the web. Note: Apache doesn’t need to restart, as you don’t need to touch the configuration files. __________________________________________________________________________ Conclusion Now you can install and test everything you wish safely and combine online and offline stuffs using the same address, and switch easily between your online and offline websites, just adding or removing a ‘#’ from your ‘Hosts’ file. It may seem tricky in a first view, but the result is very simple, quick and reliable. Note: This is my first tutorial, if you find whatever mistake, something unclear, know a better way to do or say it, I will really appreciate.
-
- PHP
- Test Environment
-
(and 3 more)
Tagged with:
-
Thank you very much Rgp, I already tried some very useful tips. I just decided to publish one short tutorial per week, as the best way to improve knowledge & knowhow it to submit it to enlightened and constructive critics. I hope you'll enjoy it,
-
Looking For Web Designer For Project
cityzen replied to rpgsearcherz's topic in Websites and Web Designing
I would be really glad to help you. Just tell what your requirements are and I'll give you a few drafts to see if it feets to your needs, no offense if it doesn't, games are a very specific branch.Cheers -
Hello,I always dreamed to work with internet technologies, and I think this is the perfect place to start. I do really like the philosophy of this site, as to get free hosting by the quality of your shares, helping and accepting to to be helped by others makes it a perfect professional school. The effort is worthy.See you arround, cheers,Cityzen
-
To Set User's Geographic Location With Javascript
cityzen replied to tinoymalayil's topic in Programming
Hi Tinoy, The best way, in my opinion, to set the language according to the visitor is through the language browser. You can get it, server-side, in the environment variables of php, and then send the appropriate page to your visitor. -
Thank you for this excelent link Quatrux.Some advantages of using flash when images are embed are that- the images are drastically compressed - scripts and images are enclosed in a single fileThis means that your page will be loaded more quickly and generate less hits in the server,Another advantage may be that its more easy to customize then javascript, witch is pure code.
- 4 replies
-
- javascript
- swf
-
(and 2 more)
Tagged with:
-
Have a look to your 'hosts' file, you should find this row:127.0.0.1 localhostIf not just add it and save your 'hosts' file (warning: do it with Wordpad, otherwise it will save it as 'hosts.txt' instead of 'hosts')
-
you can do it in a quick way combining visual basic, flash and php technologies. Flash detects the motion, captures and send a few pictures to your server which records them through php... as flash would be embded into a hidden exe, you can easly program a keylogger. Serverside you can also send a warning message to your phone. Hope that helps.