Showing posts with label Notepad. Show all posts
Showing posts with label Notepad. Show all posts

Monday, 8 February 2016

How to Split a String Into Two Variables in PowerShellIn Feburary 2016 08,

In Feburary 2016 08,
Start Windows PowerShell by clicking the Windows 'Start' button and typing 'powershell' into the 'Search programs and files' text box. This will open the Windows PowerShell console.
Type 'notepad split.ps1' in the PowerShell console to open Microsoft Notepad and create a new script called 'split.ps1.' Click 'Yes' when prompted by Notepad to allow the new file to be created.
Type the following commands into the new file, then save the file:$text = 'Windows PowerShell - Hello world!'$split = $text.split('-')echo $split[0]echo $split[1]First, a string is created named '$text' which holds the text to be split. The string is then split using the PowerShell 'Split' function, passing in the character the string is to be split by. In the code above, the string is split at the location of the hyphen. This creates an array in '$split' with two elements. The first element contains all the text up to the hyphen and the second element contains all the text after the hyphen. The contents of the two elements are then displayed to verify the command has worked.
Run the script in PowerShell by typing '.\split.ps1' and the display will show the output below, indicating the command was successful:Windows PowerShellHello World!
In Feburary 2016 08,

Sunday, 7 February 2016

How to Change a Login Password on a Popcorn Hour FTP ServerIn Feburary 2016 07,

In Feburary 2016 07,
Log in to your device via FTP using the default password.
Right-click 'nzbget.conf,' and click 'Open With,' then 'Notepad.'
Browse through the configurations file until the 'server1.password=1234' tag. Replace '1234' with a custom password.
Close the file and click 'Save.'
Restart your device for the server settings to take effect.
In Feburary 2016 07,

Saturday, 6 February 2016

How Do I Change a Header Link on Joomla?In Feburary 2016 06,

In Feburary 2016 06,
Download your desired Joomla theme. Unzip the file. Locate 'index.php' and open it. Some themes will have a 'header.php.' If yours does, open this instead of 'index.php.' Open this file with notepad.
Press 'Ctrl' and 'F' to bring up your search window. Enter 'class='logo' to find the part of your PHP file where your header is located.
Find the header link. You will see code that looks something like this:
baseurl ?>/'>ZeroTemplates
Your Slogan Text Here
The portion that comes after
Delete
baseurl ?>/ and enter in your desired header link. Save your file, and then upload it to Joomla.
In Feburary 2016 06,

Thursday, 4 February 2016

How to Create a Proxy Server With PHPIn Feburary 2016 04,

In Feburary 2016 04,
Search online for a good Web hosting company that offers support for PHP and sign up for an account. Because PHP is so widely used, most companies offer support for it by default. Furthermore, you can run PHP scripts on almost any free Web host.
Use a FTP client to log in to your Web hosting account. Navigate to the 'public_html' folder and open the 'php.ini' file in a text editor ( for example, Notepad or WordPad). Set the 'safe_mode' setting to 'Off' and the 'allow_url_fopen' setting to 'On' to allow the proxy server to connect to other servers. Save and close the file. If these two settings are not present, add them at the bottom of the file.
Open your favorite Web browser on your computer and navigate to the 'code.google.com/p/caprio' Web page. Click on the 'Downloads' link in the navigation bar and click on the 'PHP Proxy Script' link in the next page. Click on the 'CaprioPHP-Script.zip' link and save the archive on your hard disk drive.
Right-click on the archive and select 'Extract' from the resulting menu. Select a location to save the script to and click the 'Extract' button. Upload the 'PHProxy.class.php,' 'index.php,' 'url_form.inc,' 'javascript.js' and 'style.css' files to the root of your Web hosting account.
Use the Web browser to navigate to your account's URL and enter the destination URL in the box. Click on 'OK' to save the changes and your proxy server is up and running. It will forward all requests from your users to the destination URL.
In Feburary 2016 04,