Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. whinger74

    slightly O/T: open a .indd file without InDesign!

    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...
  2. whinger74

    Creating an Install script

    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()) {...
  3. whinger74

    Creating an Install script

    ...if the row was correctly created in realtime". DO you mean each row in each table? Have you got some sample code?
  4. whinger74

    Session variables empty

    Thanks - I wasn't totally mad then :)
  5. whinger74

    Session variables empty

    Thanks! once again that's a bit embarassing - all this time I didn't realise that this kind of session coding was saving things client-side.... yikes.
  6. whinger74

    Session variables empty

    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...
  7. whinger74

    Session variables empty

    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 =...
  8. whinger74

    Upload - checklist of things to watch out for

    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 :(
  9. whinger74

    Upload - checklist of things to watch out for

    Thanks for reading. I said before: "if I try to upload something that's 5020 bytes I get error code 1" i.e. Array ( [userfile] => Array ( [name] => uploadthis.txt [type] => [tmp_name] => [error] => 1 [size] => 0 ) )
  10. whinger74

    Upload - checklist of things to watch out for

    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...
  11. whinger74

    Newbie - "0:" displayed before any other output

    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...
  12. whinger74

    Newbie - "0:" displayed before any other output

    Thanks - this doesn't display a zero anymore! :) Thanks for everyone that looked into this
  13. whinger74

    Newbie - "0:" displayed before any other output

    thanks for looking into this. labelled echoes: name="form1" action="<?php echo $_SERVER['PHP_SELF'] ?>?ticketid=<?php echo $_GET['ticketid'] ?>" <b>Ticket <?php echo $row['ticketid'] ?> Details</b> <font size="3"><?php echo $row['subject'] ?></font> <p><?php echo $_SESSION['user'] ?></p>...
  14. whinger74

    Newbie - &quot;0:&quot; displayed before any other output

    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"...
  15. whinger74

    Newbie - &quot;0:&quot; displayed before any other output

    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
  16. whinger74

    Newbie - &quot;0:&quot; displayed before any other output

    <? /** * 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()); ?>
  17. whinger74

    Newbie - &quot;0:&quot; displayed before any other output

    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...
  18. whinger74

    Newbie - &quot;0:&quot; displayed before any other output

    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...
  19. whinger74

    Newbie - equivalent of MapPath in PHP?

    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!!
  20. whinger74

    Newbie - equivalent of MapPath in PHP?

    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!

Part and Inventory Search

Back
Top