Labels

Android (1) Apache (1) bash (2) boost (2) C (36) C++ (4) cheatsheet (2) CLion (6) css (3) Debian (33) DL (17) Docker (3) Dreamweaver (2) Eclipse (3) fail2ban (5) git (6) GitHub (5) Hacking (4) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (33) javascript (3) Linux (181) Mac (21) Machine Learning (1) mySQL (52) Netbeans (6) Networking (1) Nexus (1) OpenVMS (6) Oracle (3) Pandas (3) php (17) Postgresql (8) Python (9) raid (1) RedHat (15) Samba (2) Slackware (52) SQL (14) ssh (1) svn (1) tar (1) ThinkPad (1) Virtualbox (4) Visual Basic (2) Visual Studio (1) Windows (5) wire (1)
Showing posts with label Dreamweaver. Show all posts
Showing posts with label Dreamweaver. Show all posts

Tuesday, 7 April 2020

Set and retrieve cookies with php

The format for setting a cookie in php is as follows:

setcookie(name, value, expire, path, domain, security);

I only use the name, value and expire, where expire is in seconds, so;
time() + 24*60*60 is 1 day.

Tuesday, 24 March 2020

Server Settings for Dreamweaver

Server Settings for Dreamweaver to allow publishing to a site connected to locally.

In my example, my web server is on my local network, accessible from the internet, so to prevent setting up firewall rules and port forwarding to allow external access to FTP etc, I would rather connect using the local private IP address.
However, previously when attempting this, the default directory was the home directory for the user used which is no good.

The screen shot below, shows how to properly accomplish this;