Search found 38 matches

by Xeth
Wed Jan 14, 2004 12:29 pm
Forum: PHP General
Topic: More header problems!
Replies: 3
Views: 883

OK, well I sorted out the problem (sort of).

Just added a link on the page it was getting stuck on to reload the page holding the frameset again. It works. Not very user friendly, but its there I suppose. :S

Still open for suggestions if you have any ideas! lol.
by Xeth
Tue Jan 13, 2004 10:40 pm
Forum: PHP General
Topic: HelpDesk
Replies: 2
Views: 755

Thanks swirlee for a very comprehensive answer! I shall let you know how I get on! :D

Any luck with my "Headers problem"? :S

Regards,

Xeth
by Xeth
Tue Jan 13, 2004 2:48 pm
Forum: PHP General
Topic: HelpDesk
Replies: 2
Views: 755

HelpDesk

Hey all, this is just a general one.

I've used helpdesks where any emails sent to support@xxxx.com are saved in a database as a ticket.

Is this possible with PHP, or ASP or CGI?
by Xeth
Sat Jan 10, 2004 1:58 am
Forum: PHP General
Topic: More header problems!
Replies: 3
Views: 883

Sorry for my poor explanation; the codeis indeed in a separate PHP page which is inside a frame.
by Xeth
Fri Jan 09, 2004 3:16 pm
Forum: PHP General
Topic: More header problems!
Replies: 3
Views: 883

More header problems!

Hey there, OK, I've used a short code so here it is... header("Content-type: text/plain"); header("Content-Disposition: attachment; filename=DBBackup_{$todaysdate}.sql"); readfile('dump/backup.sql'); Now the problem is that this script runs insid...
by Xeth
Fri Jan 09, 2004 3:10 pm
Forum: PHP coding => General
Topic: Guestbook pages & entries
Replies: 4
Views: 1076

Thanks a ton for that Swirlee; searching for small functions is always a long winded process!

Sorry for the late reply again, the "Watch this topic" isnt working properly (may be my email address, so I will have to check).
by Xeth
Sat Jan 03, 2004 4:13 pm
Forum: PHP coding => General
Topic: Guestbook pages & entries
Replies: 4
Views: 1076

Thanks for the pointers swirlee! Are there any arithmetic functions to round to the nearest 50 or will I not need one to calculate the last page number?
by Xeth
Sat Jan 03, 2004 12:34 pm
Forum: PHP coding => General
Topic: Guestbook pages & entries
Replies: 4
Views: 1076

Guestbook pages & entries

Hopefully a simple one. x number of guestbook entries in database. Need to display 50 per page, and therefore need some arithmetic to work out how many pages there are and offer link to those pages. Should look like below. Go to page: 1 | 2 | 3 | 4 I'm guessing someone has something similar in one o...
by Xeth
Sat Jan 03, 2004 11:54 am
Forum: PHP coding => Images
Topic: SOLVED: Original Filenames in images from PHP
Replies: 3
Views: 2187

Well my British buddy, it seems the code gave up the ghost (or the pootergheist!) and I'm using yours now!

Thanks man. Happy New Year.
by Xeth
Sat Jan 03, 2004 11:43 am
Forum: PHP coding => General
Topic: Reordering an order
Replies: 6
Views: 1430

Sorry for the late reply Swirlee! I've been taking a break from the project for a while. Thanks for your solution, which seems to be the most foolproof and reliable. I tihnk yours is also better cos it uses one SQL query and virutally no PHP code. I did it the following way. I figured that I'd only ...
by Xeth
Sun Dec 14, 2003 11:28 am
Forum: PHP coding => General
Topic: Reordering an order
Replies: 6
Views: 1430

Heya,

Thanks Sigix but the result order isnt important. I need the values in the order column of the table to have the correct relation to the items.

I am beginning to wonder: if I cant explain how to do it, im probably doing it wrong :S
by Xeth
Sun Dec 14, 2003 4:25 am
Forum: PHP coding => General
Topic: Reordering an order
Replies: 6
Views: 1430

Sorry Swirlee! Here goes... The table in the database determines what order the elements appear on the page. I want to offer the End User the option to move elements up or down the page (change the order). If the order of element 2 (TXT) is changed to be further towards the top of the page (position...
by Xeth
Sat Dec 13, 2003 5:40 pm
Forum: PHP coding => General
Topic: Reordering an order
Replies: 6
Views: 1430

Reordering an order

Hey, PROBLEM: I have a list of items stored in a database, each with the item name and the order it should be displayed... Type Order -------- ---------- IMG 0 HR 1 TXT 2 FORM 3 TABLE 4 I want to be able to change the order of the items in the table (for example make TXT have order "1". Then I will ...
by Xeth
Wed Aug 27, 2003 6:04 am
Forum: PHP coding => Images
Topic: SOLVED: Original Filenames in images from PHP
Replies: 3
Views: 2187

Thanks for that. Thats what I was using before, but it just took ages for the damn thing to work.

This seems to work, and right-click-save-as works too, and its pretty speedy so I have no idea whats different.

Thanks for the updated version anyhow. :D
by Xeth
Tue Aug 26, 2003 11:10 am
Forum: PHP coding => Images
Topic: SOLVED: Original Filenames in images from PHP
Replies: 3
Views: 2187

SOLVED: Original Filenames in images from PHP

Took me ages to figure this out so here it is along with keywords for search engines... # Tell the broswer that the file coming up is Jpeg/Jpg header("Content-Type: image/jpeg"); # Tell the browser to assign the file a proper name isntead of the PHP file's name header("Con...
by Xeth
Thu Aug 07, 2003 11:41 am
Forum: PHP General
Topic: How to upload files?
Replies: 6
Views: 1571

Wow, that does work a charm! I woulddnt mind recompiling, but I want this to work on my external host as well as my Apache server. :( Ah well, thanks for the research, much appreciated as always. :D
by Xeth
Thu Aug 07, 2003 4:19 am
Forum: PHP General
Topic: Multiple files upload and Tutorial
Replies: 4
Views: 1324

Just out of interest, surely if the user is uploading a ten meg file, they might be annoyed to only found out its too big when it gets to the server? lol.

Could you not use the client-side check, and the server-side as a backup?
by Xeth
Thu Aug 07, 2003 4:06 am
Forum: PHP General
Topic: How to upload files?
Replies: 6
Views: 1571

Heya guys, does anyone know of a PHP script that will upload to a directory on the server... AND display a progress indicator of some sort? Doesnt have to be a progress bar - can be "000Kb of 1000KB uploaded", or "23% uploaded" or a graphic if you can find a fancy one. Speed meter in KBPs would be f...
by Xeth
Sat Jul 26, 2003 4:03 am
Forum: PHP General
Topic: "masking" url
Replies: 6
Views: 1577

rofl @ swirlee
by Xeth
Sun Jul 20, 2003 3:34 am
Forum: PHP General
Topic: Sessions in frames
Replies: 5
Views: 1488

Thanks alot for your help once again. Still not sure how the "transparent" thing works, and I cant use it with the web host I've been assigned anwyay. I think I'll stick to the cookies way of doing things for now. Twill prolly help me understand whats going on a bit better. Just one last qstn on the...
by Xeth
Sat Jul 19, 2003 10:44 am
Forum: PHP General
Topic: Sessions in frames
Replies: 5
Views: 1488

yeah thats what I used in the end, but the problem with that is that its so messy, because when using links, there's an automatic addition of PHPSESSID on top of my own SID, so you get a very long URL, plus I have to write scripts for both PHPSESSID and SID which is twice the work and hard to follow...
by Xeth
Sat Jul 19, 2003 5:33 am
Forum: PHP General
Topic: Sessions in frames
Replies: 5
Views: 1488

Sessions in frames

OK, once again I have a problem. :S I am creating a member login area. This area has a login page which is out of frames, and the page the user receives once theyve logged in has a menu frame and a main frame. How would I transfer the session ID into the frames pages? Thanks in advance for any help ...
by Xeth
Wed Jul 16, 2003 2:23 pm
Forum: PHP General
Topic: Cyclic
Replies: 10
Views: 2241

Thats a pretty good idea, btu I think it would be easier jsut to run the script once a month and display an HTML versoin of the output. Thats what Ive done at the moment: http://www.nibblers-archive.com/catalog.html.

Just for your info, checksumming 400 images makes the HTML arond 400kb big and takes about 7 minutes. lol.
by Xeth
Wed Jul 16, 2003 11:54 am
Forum: PHP General
Topic: Cyclic
Replies: 10
Views: 2241

Damn you got it just before me. lol. Ah well, which of the methods of converting from dec to hex will be the quickest? I have to display the CRC32s of around 300 images. (OUCH)
by Xeth
Wed Jul 16, 2003 11:53 am
Forum: PHP General
Topic: Cyclic
Replies: 10
Views: 2241

Here we are! YAY! <?php $file = 'dais.jpg'; // Read the file into an array $data = file($file); // Join the array into a string $data = implode('', $data); // Calculate the crc $crc = crc32($data); //convert from decimal to hexadecimal $string=DecHex($crc*1); //echo t...