Hi
I would like an include in a PHP script to indentify the page into which it has been included....how can I do this?
Tried the $http_referer but that's not giving me the right answer as it tells me the link that loaded the page that calls the include file...
Cheers,
Anders
Hi,
How do I setup a linux system using CRON to automatically open/view a PHP page (or just execute its content!)
Ideally I want a php page to be run every morning at 1am that performs a number of email routines via data from a mysql database.
Is CRON the right area to be looking in for this...
Hi,
I've got a problem with a search I am trying to perform in MySQL:
I have a company table and a contacts table. They are linked by a table called contactassocs which simply assigns an ID to an entry where the companyId and contactID and entered. This is the assocID.
I want to do a 'like'...
Hi,
I am trying to setup my apache installation so that when a php script attempts the following include: /var/www/main/glcorp_php_settings/settings.php
it actually looks at:
C:/Program Files/Apache Group/Apache/htdocs/glcorp_php_settings/settings.php
How can this be done?
I have tried...
Hi,
Is it possible to run a simple query that will return entries in a table that are NOT distinct? Like:
Select !distinct from categoryassocs
The table contacts ID1 and ID2 and I need to know where there are duplicates?
Any ideas?
Thanks,
Anderz
Hi,
Can anyone help explain why it is that when I try to send my 4-page Quark file to Acrobat Distiller only the 1st page prints? When I send it to a paper printer all pages print???
It is only in this specific Quark file that I am having the problem. Has anyone else come across this issue...
Hi,
I use this code:
onClick=\"opener.parent.mainFrame.location.reload();window.close();\"
To close a window and refresh the parent window. However, becuuse the parent output is set by it first of all retrieving a $_GET variable from PHP I get a browser error stating that "The...
Hi,
Bit of an odd problem: I have a simple form with a text field, and next to it a 'Submit' button. When entering text into the field and pressing the carriage return button on my keyboard the text field goes blank and nothing is submitted.
It is only when I click the Submit button with the...
Hi,
Is there a way to score a mysql query result not in how many rows it produces but in how many cells it returns per row that contain data and are not null?
Cheers,
Anders
Hi,
Is there a simple way I can have a PHP page/Link automatically create a backup of a MySql DB when it is accessed?
I currently use PHPMYADMIN but would like to learn how this is done from scratch so I can put a small link in an online system I have written that allows Administrators to...
Hi,
Does anyone know how to export the contents of a mysql db via PHP? Ideally, I'd like to have a button on a website that will export the contents of the mysql DB to a text file (as you can using phpmyadmin) and save it away as a backup?
Many thanks,
Anders
Hi,
Does anyone know how i can make a title on an <a href> tag appear indefinately or even for longer than default? At the moment it stays on screen for about 5-10 seconds and then disappears?
Cheers,
Anders
Hi,
Can anyone help me find out why this line will not work on a remote php server (it simply outputs a 'page not found' error) but when i host it locally it works?
$fp = fopen("temp.csv","r") or die("Couldn't open");
If i change it to write access "w"...
Hi,
I', trying to write a piece of code that reads a string and only outputs the information that sits before a space:
i.e.
"anders@dwl.co.uk Subject:"
would be outputted as
"anders@dwl.co.uk"
I need to do this as I am trying to strip email addresses from a large CSV...
Hi,
I am editing a website so that its index.html pages forward to index.php files so I can make the pages dynamic without changing any existing links. My question is - can I move all the meta tag keywords and descriptions to the index.php files and remove them from the index.html pages without...
Hi,
Is there such a think as the 'like' command in PHP that can be used as:
if ($value like "hello"){
print "whatever";
}
As you can in MySQL??
Thanks,
Anders
Hi,
I am trying to compare dates in MS SQL where the dates are stored in a 'Enddate' table in this format:
dd/mm/yyyy
I am trying to return records where the Enddate is less than 3 days away, and the less than 7 and more than 3.
Can anyone help?
I cannot get datediff to work?
I am...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.