Showing posts with label manually. Show all posts
Showing posts with label manually. Show all posts

Monday, 29 February 2016

How to Create an Array in PHPIn Feburary 2016 29,

In Feburary 2016 29,
Imagine that you have to write a movie catalog. One of the variables that you will use in your program is the movie title. But if you have thousands of movies, using a separate variable to store each title is not ideal. Instead, you should use one variable (the title) which has many values ('One Flew Over the Cuckoo's Nest,' 'The Graduate' and so on). Such data is an ideal candidate for an array.
Check to see if you already have a list of values, so that you can create the array with the array function instead of populating it manually.
Create the Array
Declare the array and assign values:
$titles = array('Hair', 'The Office', 'Troy', 'Tarzan', 'American Pie', 'Adam and Eve', 'Mystery', 'E.T.', 'Star Wars');
Enter as many movie titles as you have. If your values are strings, as in the above example, don't forget the quotes around them. If your values are integers, you can forgo the quotes.
Appreciate that this array is created with numeric indexing. In the above example, the array has nine elements (movie titles) and the indexes are from 0 ('Hair') to 8 ('Star Wars'). However, you can also create associative arrays.
Create an associative array. An associative array uses textual keys instead of numbers, and the indexes are more descriptive. This is especially useful when the values are not strings. The general syntax is the following:
$salary['John Smith'] = 3000;
This will assign the value 3000 to the array element, which has the 'John Smith' index.
Use the array function to create the array.
$salary = array('John Smith' => 3000, 'Sally Jones' => 4000, 'Chris Steward' => 4900, 'Mary Roberts' => 6500, 'Sam Moses' => 5400, 'Alice Roberts' => 4200);
Notice the slight difference in the syntax: You use the => symbol to enter the value for the key.
Perform Simple Operations With the Array
Reference values from the array by their index. For instance, if you want to display the title 'Adam and Eve,' you would do the following:
echo $titles[5];
because 'Adam and Eve' is the sixth element in the array and its index is 5.
Assign values to array elements. If you want to set a new value for an array element, use the following:
$titles[6] = 'Midnight Express';
This will replace the 'Mystery' value with 'Midnight Express'.
In Feburary 2016 29,

Thursday, 11 February 2016

DNS Problems with VistaIn Feburary 2016 11,

In Feburary 2016 11,
DNS problems frequently originate in the cache. Over time, the DNS cache can become corrupted causing issues with the DNS in Vista. In order to clear the cache and thus resolve the problems, a command prompt must be launched as an Administrator. Once the command prompt loads, simply type 'ipconfig /flushdns' to clear the DNS cache.
No Connection Without Router Reboot
Many Windows Vista users report DNS problems initially establishing a DHCP (Dynamic Host Configuration Protocol) connection with their router. A workaround to this issue is to simply manually reboot the router to which the Windows Vista machine is attempting to connect. This clears the DNS addresses and submits a new address to the computer. If it is a desktop computer, another solution is to manually input the DNS addresses that the computer will use.
Conflicts with Wireless Card or Ethernet Controller Checksum Offload
Windows Vista is not compatible with some features that are bundled with popular wireless cards and Ethernet controllers. In particular, checksum offload features can cause problems when Vista attempts to renew a DNS address once connected to the Internet. To resolve these issues, simply disable the checksum offload feature.
Firmware Problems
Many Vista DNS problems can be solved by simply updating the firmware of the router. The firmware is the software that operates on the router. If an old version of the firmware is currently installed, this will cause problems with Windows Vista. Windows Vista utilizes an improved TCP/IP (Transmission Control Protocol/Internet Protocol) stack procedure that calls DNS addresses in a different manner than Windows XP. These updates to the TCP/IP stack procedure necessitate having the latest router firmware installed.
Conflicts with LAN Connection
If Windows Vista is used to connect to the Internet via both a wired LAN connection and a Wi-Fi wireless connection, it is possible that the wired LAN connection could create problems when attempting to attain a DNS address through a Wi-Fi wireless connection. This problem arises because the wired LAN connection, even when disconnected, is assigned an IP address if it has been used in the past. This presents difficulties when Vista attempts to connect to the Internet on a wireless connection since it prefers the faster, wired connection. To solve this, simply disable the LAN connection when using the computer in a wireless setting.
In Feburary 2016 11,

Tuesday, 9 February 2016

How to Increase FTP Transfer SpeedIn Feburary 2016 09,

In Feburary 2016 09,
As PCWorld notes, 'Hard drives are classic bottlenecks, and they definitely slow down computers.' During an FTP transfer, your hard drive is constantly reading and writing data. If you have a slower drive, those reads and writes will be slower than if you had a faster one. Upgrade to a faster hard drive to speed up FTP and computing in general. A Solid Date Drive, or SSD, costs more than regular hard drives, but it's faster.
Other Hard Drive Tips
You can speed up FTP by terminating other activities that use the hard drive extensively. These activities include downloading files and rendering video. Ensure that Windows defrags your hard drive periodically to optimize your data. By default, the Disk Defragmenter runs weekly, but you can change the schedule to run more frequently or run it manually any time.
Upload Speed Vs. Download Speed
Internet Service Providers often sell plans where upload speed is slower than download speed. If your FTP seem slow, review your ISP agreement to see how fast your upload speed is. If it’s a low transfer rate, that may explain why uploads via FTP are slower than you’d like them to be. Ask your ISP about upgrade plans if you need faster upload speed. A faster upload speed also make browser uploads and video chat sessions faster.
Work More Efficiently
The free FTP built into Windows is functional and is useful for performing simple tasks. However, you can manage large numbers of files and folders faster using a third-party FTP client such as FTP Voyager, FileZilla or CuteFTP (links in Resources). These programs let you drag and drop files between your desktop to the FTP. They make it faster to connect to FTP servers by storing login information and settings. You can also use File Manager and Internet Explorer to drag and drop files when you visit an FTP site. Many third-party FTP clients enable you to transfer files faster by using several simultaneous connections. Check your program's documentation to learn how to use this feature. Your Internet Service Provider may also have a built-in FTP client that helps you transfer files to and from your hosted website. Because these clients work using your browser, you don't have to install any software on your computer.
FTP Automation Tips
Windows 8 and 8.1, like older Windows versions, still allows you to issue FTP commands from the command line. Access it by Typing 'Windows-R' followed by 'Cmd.' Press 'Enter' to view the command prompt. Some people may use the command line FTP to run scripts that automate FTP activities. A script, for instance, may log you in automatically, switch to a specific folder and upload some files. Some third-party FTP clients, such as CuteFTP also allow you to automate FTP processes using Visual Basic and other types of scripts.
In Feburary 2016 09,

Friday, 5 February 2016

How to Transfer File via SSH Shell AccessIn Feburary 2016 05,

In Feburary 2016 05,
Open the SSH Access client. If you have not installed an SSH client, there are many available. PuTTY is the most notable, freely available terminal emulation programs available.
Connect to your remote server. In a graphical environment, this will simply be a matter of clicking connect and entering the appropriate hostname. In the instance of PuTTY, you'll have to manually open an SFTP session by typing 'psftp [hostname]' where '[hostname]' is the name or IP address of the server you want to connect to.
Enter your username and password as necessary. You may have to coordinate this with the network administrator.
Initiate the file transfer. Depending on whether you have a graphical interface or PuTTY's command line interface will change how you initiate the transfer. In PuTTY, you'll want to utilize the commands 'put [local filename] [remote filename]' (upload) and 'get [remote filename] [local filename]'. In an GUI, you'll simply click and drag files between the local and remote machine.
Close the connection. To remain in the program, but terminate the session, type 'close'. To exit out entirely, type 'quit'.
In Feburary 2016 05,