Hi,
this is slightly off-topic, but it must be a common issue - Google doesn't seem to think so though :(
A customer has sent me a .indd file, but I don't have InDesign - is there a way to open it?
After searching, I've found out you can open the file in Pagemaker, but then the file then...
It sounds like you know more than me anyway! :)
I don't know what db class that is, but is there an error function in there?
Maybe:
[code]
$db->query("INSERT INTO {$tbl_prefix}webs (tid, school, subject, theme) VALUES('$_SESSION[id]', '$school', '$subject', '$theme')");
if (!$db->error())
{...
Yes I was using session_start. THis is a bit embarrasing, but the hard disk on our test server was full up, which meant no sessions could be saved! :0[
For others out there who didn't know this, note that no errors seem to be produced if the disk gets full and you want to use sessions.
Thanks...
HI I have a very simple login script that I've used quite a few times before, which checks username and password against database fields.
session_start();
require_once("../includes/inc.database.php");
$strErrors = "";
if (isset($_POST["submit"]))
{
$user =...
Because the upload_max_filesize was in my checklist this was obvously something I'd checked. The master value was 60M, and the local was 0, but even though I've changed them both now to 60M, uploads of 5220 bytes and over are still failing :(
Hi,
I am trying to upload files to a Linux server running PHP and Apache, but I can't currently do it with files greater than 5119 bytes. (if I try to upload something that's 5020 bytes I get error code 1)
I was just wondering wether I'm missing something from my lovely checklist:
HTML...
Fo reference I should have said how it was fixed!
I changed:
$result = mysql_query ($sql, $conn);
if(!$result){
echo mysql_errno() . ": " . mysql_error();
}
to:
$result = mysql_query ($sql, $conn) or die (mysql_errno .":". mysql_error());
erm.. also I can't seem to thank/star anyone in...
This is getting a bit out of hand - sorry, I thought this would be a common error!
<form enctype="multipart/form-data" name="form1" action="<?php echo $_SERVER['PHP_SELF'] ?>?ticketid=<?php echo $_GET['ticketid'] ?>" method="post" onsubmit="return validate()">
<table width="75%" cellspacing="1"...
This is actually hosted on my free Lycos Tripod webspace! (don't laugh), but the phpinfo script says:
OS = Linux (Debian GNU/Linux)
server API = CGI
I would guess the web server is Apache(?)
Thanks again
<?
/**
* Connect to the mysql database.
*/
$conn = mysql_connect("localhost", "username", "") or die;
('I cannot connect to the database because:' .mysql_error());
mysql_select_db('dbname', $conn) or die(mysql_error());
?>
sorry!
<?php
session_start();
if (!session_is_registered("user"))
{
// User not logged in, redirect to login page
Header("Location: login.php");
}
include "database.php";
$sql = "SELECT * FROM tbltickets, tblurgency, tblusers WHERE tbltickets.ticketid = ".$_GET['ticketid']." AND...
Hi,
Sorry, this is probably very basic, but I can't find the answer to this anywhere. I have a fairly simple php page that displays some dynamic data (mysql_query(), mysql_fetch_array, etc)
The data displays alright, but at the top of the page before any other output a zero and colon is...
Thanks!
<?php echo $_SERVER['PATH_TRANSLATED'] ?> will produce the same result aswell
After a search of php.net I was eventually successful, even though I didn't really know what exactly I was looking for!!
Hi,
I'm used to programming in ASP, and my site is hosted with a commercial host.
Can somebody please tell me how can I find out the physical rather than virtual path of file? i.e. in ASP I would use <%=Server.MapPath %>
Thank you anyone!
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.