All of the following code on my server returns blanks:
echo 'HTTP HOST: ' . "$HTTP_HOST";
echo '<br>Server Port: ' . getenv('SERVER_PORT');
echo '<br>SSL Status: ' . getenv('HTTPS');
...
Hello I am using Drupal, the Conent Management System to build one of my site and I am having problems with.I hope I can find some one in here.
Essentially I created a New Node type and cr...
Can anyone help me append a string to the end of every line in a txt document. I can read the file line by line but can only find reference to appending to the end of the document, i need each...
From the WSDL, is it possible to know what methods are available?
I tried to use __getFunctions(). The getFunctions() call in the code below returns, "string testAuth(string $username, str...
Hi,
Anyone knows where can I get a php graph tool that connects to mysql?
Thanks!
Hello,
How do I convert local time to another time zone?
time() gives the current local time. How do I manipulate it to time in another time zone?
not sure how?
how can I install PHP to webmin? detailed instruction would be great!
How can I URL encode a a sting that has utf-8 characters in it, such as:
ä,ö,ü etc.
i.e. I have a querystring that looks like:
keyword=Häijää
Hi everyone i hope you are all well :>). I have the following things im trying to do guys..
#####################
ISSUE DESCRIPTION:
#####################-
I have 2 scripts that help me ...
I am binging users to a log out page where I then destry the session using this code:
<?php
session_start();
$_SESSION = array();
if (isset($_COOKIE[session_name()])) {
...
Okay, I have this script, it has a output on weither the servers are up or down with a red/green button. Let's pretend it outputs a simple php page like this:
"
Server1 UP
Server2 UP
Ser...
Hi,
How do I add this <?php $_SERVER['REMOTE_ADDR'] ?> to a .tpl file?
I'm trying to find a way for users to create email accounts on my server. I'm familiar with imap_createmailbox but I can figure out a way to set the new mailbox password.
Ideally, what I'm ...
Hi,
I have a script that randomly display some ads. Since I need it in the entire website, I put the related files in a single dir, then I used an include function to make the script read the...
Basically i have a php script that when a user is viewing a photo and they click ADD to enquiry, it adds the photoID to a session, when the user is ready they can submit a contact form which s...
i have setup a script to copy all files from one folder to another folder but it doesnt really work as well as i thought. maybe somebody can have a look please.
source folder is: /public_...
I have a site with a CMS that lets people enter a Youtube link. Right now, I am directing users to post the entire embed link into a text input. It looks like this.
<object width="425" hei...
Hi everyone.
On one of my php pages, id like to be able to add a button or link so that if the user clicks on it, the very same page they view will do a refresh.
Is there any way to do thi...
I'm using the code below to display a series of images. When the user clicks on one of the names in the dropdown box, it displays that image. I can't figure out how to make it display the fi...
I'm pretty new to using regular expressions and through trial and error, I've been able to figure out pretty much everything except this:
How can I find everything? Every character, every w...
Hello,
I'm using the Javascript image viewer, Highslide, on my site and i'd like to be able to use the built-in controlbar to cycle through all the images in a folder (the same folder as th...
Hi Experts,
I have the following code which outputs a CSV file to screen in table format. All is working well except the date format within the CSV file is YYYY-MM-DD. I would like to displ...
I would like to ask how can let many users login with the same computer with different session? as there is session to get the unique userid, now is one user for one session login.
I have a directory structure like this one
main/category/name
each name directory has a bunch of subdirectories and files that we don't need to consider
I need a php script that can r...
Using php and regex, I am not hot with regex, how can I search an html doc for say FONT tags to that I can convert them to css. For example...
in the source file I have:
Mary had a littl...