Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Tristan
etc..." I don't want to introduce more problems if a find/replace doesn't go right. Is there any valid reason for doing the quoted above or any argument against doing that. Thanks, T On Fri, Aug 17, 2012 at 2:09 PM, Daniel Brown wrote: > On Fri, Aug 17, 2012 at 3:35 PM, Tris

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Tristan
s "they cache the > redirect permanently"). > > If this change is only temporary I would recommend using "307" to avoid > duplicate contents. I would even say, that a 307-redirect from > somenewdomain.com to somedomain.com is more appropiate, but that depends. > &

Re: [PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Tristan
you have why not just do an alias? No redirect > required. > > > On Fri, Aug 17, 2012 at 2:35 PM, Tristan wrote: > >> So, I need to change from somedomain.com to somenewdomain.com >> >> I was thinking of doing this >> >> 1) create an alias to the site some

[PHP] Cost of redirect and site domain switch? Good Practice / Bad Practice / Terrible Practice

2012-08-17 Thread Tristan
So, I need to change from somedomain.com to somenewdomain.com I was thinking of doing this 1) create an alias to the site somenewdomain.com to point to current server 2) run permanent 301 redirect from somedomain.com to somenewdomain.com I was thinking this was a clean safe way to do it so we d

Re: [PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels : ANSWERED

2012-08-16 Thread Tristan
] = $l; } $depth--; // Decrement as we ascend return $tree; } $arr = $dashSections; $new = array(); foreach ($arr as $a){ $new[$a['section_parent_id']][] = $a; } // CREATE THE TREE $depth = 0; $tree = createTree($new, $new[0]); //echo count($tree); print_r($tree); On

Re: [PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels

2012-08-16 Thread Tristan
Tree($new, $new[0]); //echo count($tree); //print_r($tree); On Thu, Aug 16, 2012 at 11:36 AM, David OBrien wrote: > On Thu, Aug 16, 2012 at 12:40 PM, Tristan wrote: > >> I can't for the life of me figure out how to find the depth of the array >> that I'm looping thro

Re: [PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels

2012-08-16 Thread Tristan
walk-recursive.php > > 2012/8/16 Tristan : > > I can't for the life of me figure out how to find the depth of the array > > that I'm looping through to output tabs or indentations to the display > for > > each depth. The entries also have section postition if you can

[PHP] Display Array Tree as Menu - Can't figure out how to find depth with something over 2 levels

2012-08-16 Thread Tristan
I can't for the life of me figure out how to find the depth of the array that I'm looping through to output tabs or indentations to the display for each depth. The entries also have section postition if you can figure out how to include that within each depth of the results I will buy you a case of

Re: [PHP] [foreach] - is it proper to...

2012-05-31 Thread Tristan
udio so I don't know if it was picking that up from other bad code in the project and suggesting for "consistency" sake or what. I definitely thought it was weird. Thanks again. On Thu, May 31, 2012 at 10:54 AM, Daniel Brown wrote: > On Thu, May 31, 2012 at 12:48 PM, Tristan wro

[PHP] [foreach] - is it proper to...

2012-05-31 Thread Tristan
I'm using Zend Studio and it had a suggestion that I do a foreach as such foreach($entry as $entry){ } instead of foreach($entries as $entry){ } they both seem to work but, from a readability standpoint and just makes more sense to me to use method 2. Is it bad practice to go with the 1st met

[PHP] [DEADLOCK - Code Igniter

2011-03-29 Thread Tristan
*Anyone have a workaround for this issue? thanks ahead *I received this error message while activating a profile request. Clicked the Back button and tried approving the user again and then it worked. * ERROR Using code igniter with DX auth Description:* "Deadlock found when trying to

[PHP] Re: [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Tristan
silly btw that you can't output html and just have it redirect whenever you want it to at any point in the page. Thanks, T On Thu, Aug 19, 2010 at 4:22 PM, Nathan Rixham wrote: > Tristan wrote: > >> So, I'm have this site where all this code was developed and the logic &

[PHP] [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Tristan
So, I'm have this site where all this code was developed and the logic sits in different plugins throughout a template. So, html is output and then hits one of these plugins. Plugins do some processing and then hit a header(location...) redirect. So, problem is they developed code with these heade

Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Tristan
> On Fri, 2010-08-13 at 15:24 -0600, Tristan wrote: > > Here's a question for you about encoding on the server. If two videos are > encoding at the same time. Do they share the processing power. > > lets say we have 2 vids same size > > 1 encodes at 1 minute > >

Re: [PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Tristan
n Fri, Aug 13, 2010 at 3:08 PM, Ashley Sheridan wrote: > On Fri, 2010-08-13 at 14:48 -0600, Tristan wrote: > > i have a list of people that uploaded their videos waiting to be encoded. > > these are the line items for the db > > id | member_id | created | status > > I just

[PHP] [ENCODING QUEUE] - anyone think of a good way to setup a queuing system so everyone gets their turn

2010-08-13 Thread Tristan
i have a list of people that uploaded their videos waiting to be encoded. these are the line items for the db id | member_id | created | status I just want to make sure that everyone gets a turn processing. I was thinking WHERE DISTINCT(member_id) and created (oldest) but i see some flaw in th

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-08-11 Thread Tristan
, Aug 4, 2010 at 3:31 PM, Tristan wrote: > The sites are all on the same server. LAMP. no load balancing or anything > really fancy for that matter. > > Looking a little closer, here's an error that we uncovered being thrown by > apache > > "As we have discussed, I hav

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Tristan
Thanks but, holy overkill. I just need something simple. Thanks for the advice guys. -T On Mon, Aug 9, 2010 at 2:30 PM, Bastien Koert wrote: > On Mon, Aug 9, 2010 at 3:12 PM, Tristan wrote: > > Looking for something that does error logs on the server. > > > > Thanks, T

Re: [PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Tristan
Looking for something that does error logs on the server. Thanks, T On Mon, Aug 9, 2010 at 12:59 PM, Peter Lind wrote: > On 9 August 2010 20:40, Tristan wrote: > > a client of mine use to have some color coded one but, I can't find it > > again. anyone using one that th

[PHP] [ERROR LOG FORMATTER] - any recommendations for web viewable error log formatters?

2010-08-09 Thread Tristan
a client of mine use to have some color coded one but, I can't find it again. anyone using one that they particularly like? similar to this but was hoping for something in PHP http://www.psychogenic.com/en/products/Errorlog.php Thanks, T

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-08-04 Thread Tristan
0-07-30 at 13:38 -0400, Adam Richardson wrote: > >>> > >>>> On Fri, Jul 30, 2010 at 11:35 AM, Bill Guion > wrote: > >>>> > >>>> > At 6:45 PM -0600 7/29/10, Tristan wrote: > >>>> > > >>>> >

Re: [PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-29 Thread Tristan
rome same thing with web page cannot be displayed more information etc... On Thu, Jul 29, 2010 at 6:36 PM, David McGlone wrote: > On Thu, 2010-07-29 at 18:11 -0600, Tristan wrote: > > I have the strangest issue with my host. They can't figure it out and I'm > > c

[PHP] [site is acting strange] - blank pages, download index.php, or works fine

2010-07-29 Thread Tristan
I have the strangest issue with my host. They can't figure it out and I'm completely perplexed. We have other sites running on the server just fine. However, this new site is acting very weird. Sometimes we get blank pages, sometimes we get a blank page and then a dialog pops up asking if we want t

[PHP] Can the pic include be based on a variable?

2006-05-25 Thread Tristan
Can the pic include be based on a variable? my client asked me this question. I have a movie that is the header to the site and it pulls in a swf that calls a picture from pic00.jpg. I'm not sure exactly what he means by this. I'm assuming he wants to pass flash a variable name instead of a hardc

[PHP] diffence between two numbers...

2005-04-15 Thread Tristan . Pretty
I need to know the difference between two numbers... eg: $a = 7; $b = 27; somefunction($a, $b) // outputs "20" $a = 10; $b = 12; somefunction($a, $b) // outputs "2" etc... does that exist?

Re: [PHP] file upload

2005-03-24 Thread Tristan . Pretty
http://www.hotscripts.com/Detailed/24113.html take a look at this.. perhaps you can reverse engineer it "William Stokes" <[EMAIL PROTECTED]> 24/03/2005 09:18 To php-general@lists.php.net cc Subject [PHP] file upload Hello, I'm (slowly) learning how to make a file upload stuff with ph

Re: [PHP] Got to be an easier way to get a list of files/folders?

2004-12-22 Thread Tristan . Pretty
Ignore me.. I'm dumb after all... I found what I needed in my very first PHP book...! Jeeez, is it Friday yet??? [EMAIL PROTECTED] 22/12/2004 16:20 To php-general@lists.php.net cc Subject [PHP] Got to be an easier way to get a list of files/folders? I'm writing a photo gallery for m

[PHP] Got to be an easier way to get a list of files/folders?

2004-12-22 Thread Tristan . Pretty
I'm writing a photo gallery for my site. I want to make it as idiot proof as possible... What I'm planning, is to is upload my pics to a folder in the photo directory, and then run a scan to see what new folders there are. All good, I've built a DB backend to lsit teh folders etc... but I need to

[PHP] URL variables, and the $_GET[xxx] function...

2004-10-21 Thread Tristan . Pretty
I'm moving hosts for a freelance site I do... They have an events section, and it's sortable by date, name and category etc... To achieve this, I passed the search/sort variables via the URL... However, I'm testing the new server, and those variables are not being detected? I've put this code a

[PHP] converting from name - id and PHP not seeing it?

2004-09-23 Thread Tristan . Pretty
I jsut finished converting my pages to be W3C compliant... One of the recuring 'errors' I had was my form elements were all using the 'name' atrtribute... apparently, this is bad, and I was suggested to switch them ti use the 'id' attribute... all good, I did that, but for some reason, when I po

Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I've tried just having a name, and it still doesn't reach my notes based E-mail... :-( Hmmm, also, how do you specify to send in the BCC field, using the mail() function? All in all, we're getting there..! -John Nichel <[EMAIL PROTECTED]> wrote: - To: [EMAIL PROTECTED] From: John N

[PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query... Anyhoo, In the mail() function, if I use the final field for the From: attribute. I'm having probs... HAving: ..."From: [EMAIL PROTECTED]"); doesn't work on all recipients... BUT.. ..." From: justana

[PHP] Combining two variables...

2004-08-04 Thread Tristan . Pretty
I'm trying to create a links page, and I wanna filter by category. Anyhoo, What I need to do, is have one block of code that I repeat ad neaseum, based on each category, so if I adda new category, I don't need to add new code... All good so far. So I have a variable $show_links but I wanna chan

Re: [PHP] PHP upgrade... issues???

2004-07-15 Thread Tristan . Pretty
Phew! However, While reading about php upgrades, I've got the impression that version 5, will not support MySQL by default... Does that mean that I'll have to ensure my hosts install an extra module, or worse case senario, I'll have to re-write all my pages, to take new code into effect... I' kn

[PHP] PHP upgrade... issues???

2004-07-15 Thread Tristan . Pretty
I've just got this mail from my host... = Dear customer, This email is sent to inform you that we'll upgrade the PHP version on your server to the latest stable version 4.3.8 within the next hour. = Are there any issues that I need to panic about...? I'm off to google now

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
really? me.. I've not turned that on in over a year? That's a worry... when was this...? I'll tell our tech support group, perhaps there was a problem.. cheers for the heads up! raditha dissanayake <[EMAIL PROTECTED]> 13/07/2004 16:46 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTE

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
I get the distinct impression that this idea is not a favourable one? Just trying to earn brownie points with the misses... not trying to annoy 'the man'. Ho hum... Back to surfing for porn at work ;-) raditha dissanayake <[EMAIL PROTECTED]> wrote on 13/07/2004 14:56:38: > [EMAIL PROTECTED] w

Re: [PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
You're very welcome... Indeed... who doesn't enjoy a brief break to see what's happening in their world? I ended up using 'hail' (http://www.hailware.com/) As far as I can tell, it doesn't allow attatchments... Spending lunch hour checking personal mails... who can honestly admit that it never h

[PHP] Email, Hotmail and PHP?

2004-07-13 Thread Tristan . Pretty
Hi there... My misses has just started a new job, but has got loadsa websites blocked, including hotmail. So I've decided to see if there's a php alternative, that I can code/steal etc... If I can host a series of php pages, that can get a list of emails, and access to read them... replying wou

Re: [PHP] email formatting

2004-06-02 Thread Tristan . Pretty
When you create $selections Make sure you add a '\n' to the end of each line... EG: $selection .= "$myrow[result1]\n"; "BigMark" <[EMAIL PROTECTED]> 03/06/2004 08:28 To [EMAIL PROTECTED] cc Subject [PHP] email formatting Is it possible to have this code changed easily to make the out

Re: [PHP] making selection in drop down

2004-05-28 Thread Tristan . Pretty
I use a javascript to help me with bigger dropdowns... function get_links() { document.all["field_name"].value='' "Torsten Roehr" <[EMAIL PROTECTED]> 28/05/2004 16:12 To [EMAIL PROTECTED] cc Subject Re: [PHP] making selection in drop down "Alex Hogan"

Re: [PHP] IF statement question...

2004-05-19 Thread Tristan . Pretty
If I'm being Dumb, I apologies... but When using this: $row[bands] = "1,2,3,4,5,6,7,8"; $row2[id] = "7"; if (strpos($row[bands], $row2[id]) != FALSE) { // do stuff } I get the No 13 (as it's inthe 13th place in the string) as my result. Now I'm aware that it should work, as it's not retu

[PHP] IF statement question...

2004-05-19 Thread Tristan . Pretty
Is it possible to request that a string CONTAINS another string...? EG: $string = "1, 2, 3, 7, 8, 9"; if ($string CONTAINS "7") { // Do stuff } * The information contained in this e-mail message is intended only for the

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Tristan . Pretty
Cheers for all ideas/suggetions so far.. I've made a little progres... Visit this URL: http://www.risk.sungard.com/secure.php?secure=126807.714285714 and here's the code.. DONE IT!!!"; } ?> Secure Test Debug: Secure: Day: Master: Code 1: Code 2: Code 3: If I change the GET

Re: [PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Tristan . Pretty
I looked into getting PHP to talk to a Lotus notes database, and was really really scared..! I think this is my best bet, for now at least... however, my simple code does not work? Wierd... Any other ideas? Richard Harb <[EMAIL PROTECTED]> 07/05/2004 11:38 Please respond to Richard Harb <[E

[PHP] A work around my HTTP_REFERER Prob...

2004-05-07 Thread Tristan . Pretty
To recap... We have two servers: 1. USA - holds most of our databases, and E-mail. but specifically, the usernames and passwords, or all our users (Lotus Domino Server) 2. UK - Runs our website. (Unix Server) We wanted to be able to allow people to login on on server 1, and getr authenticated et

Re: [PHP] Re: HTTP_REFERER ... ?

2004-05-06 Thread Tristan . Pretty
TTP_REFERER ... ? [EMAIL PROTECTED] (Tristan Pretty) wrote in news:OF19FCC4A7.F49C9B83-ON80256E8B.00544E7D- [EMAIL PROTECTED]: > if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { > // Stuff > } > > Now why does this not work? > I wanna asign varibales based

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Tristan . Pretty
Sadly, I get nothing... the other server I'm talking to is owned by our company, it's a Lotus Domino server... so in theory, they'll be able to enable this variable to be passed? John Nichel <[EMAIL PROTECTED]> 05/05/2004 17:07 To [EMAIL PROTECTED] cc Subject Re: [PHP] HTTP_REFERER ... ?

[PHP] HTTP_REFERER ... ?

2004-05-05 Thread Tristan . Pretty
if ($_SERVER['HTTP_REFERER'] == 'http://www.mysite.com/') { // Stuff } Now why does this not work? I wanna asign varibales based on certain referers... but this is not working? Any ideas why? * The information contained in this

[PHP] View folders...

2004-04-15 Thread Tristan . Pretty
I'm trying to create a page where I can show all folders in a directory. I've looked on google and php.net, but have yet to find an answer... Any clues? * The information contained in this e-mail message is intended only for the

[PHP] Maths not working.. or is it me?

2004-04-15 Thread Tristan . Pretty
Im trying to implement some really simply credit card encryption... I know it's not perfect, but it's a stop gap measure until I do this properly... however... To Encrypt before I put into my DB, I'm using this formula... $encrypt = $CardNumber / ($ExpiryYear * 41.9); (41.9 is just a random No to

Re: [PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
$view_request_$i = strtolower($view_request_id_$i); } else { $view_request_$i = "Error"; } } = Richard Davey <[EMAIL PROTECTED]> 06/04/2004 18:27 Please respond to Richard Davey <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject Re: [PHP] c

[PHP] combining variables...

2004-04-06 Thread Tristan . Pretty
Simply put, can I connect 2 variables, to make one... I want to output: $view_request_$i making for example a string: view_all_2 But I'm getting errors..? Parse error: parse error in /home/risk/public_html/download/results3.php on line 675 is there a simple explination...? **

[PHP] faking $HTTP_REFERER

2004-03-29 Thread Tristan . Pretty
My boss wants to combine the previously build security, that we have within a notes Domino server, with a few pages that we run on PHP. As I've tried to use PHP to talk to a notes database, and failed I've decided that the easiest option is to: 1. Add a link on the notes site to the PHP site. 2

[PHP] the '&' character and PHP...?

2004-03-18 Thread Tristan . Pretty
I've a script that uses '&' However, if I pass that as a variable to another page, everything after it, gets ignored... I've tried: 1. Esacping the character with '\' 2. Using & But nothing works... Any ideas how to include an '&' in my variable? Tris... **

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Sorry, had an extra \ == Do you mean the email is not working at the moment or you're asking for the solution we did last time? We modified your code and changed @ to \@ within the mail header. Tristan Pretty/Infinity 17/03/2004 15:37 To [EMAIL PROTECTED] cc &quo

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Well, they replied: Do you mean the email is not working at the moment or you\'re asking for the solution we did last time? We modified your code and changed @ to \\@ within the mail header. Any use? [EMAIL PROTECTED] 17/03/2004 15:21 To "Gerard L Petersen" <[EMAIL PROTECTED]> cc "Php-Gen

Re: [PHP] mail() to own domain not working

2004-03-17 Thread Tristan . Pretty
Ooo, I had this recently when we moved to beamhost.co.uk I'll mail them and ask them what they did to fix it... I'll be back... "Gerard L Petersen" <[EMAIL PROTECTED]> 17/03/2004 14:59 To "Php-General" <[EMAIL PROTECTED]> cc Subject [PHP] mail() to own domain not working Hi all Im h

[PHP] Forms, or multiple headers?

2004-03-05 Thread Tristan . Pretty
I'm talking to a MySQL database that contains info on all downloads from our site. I list all these entries, on a PHP page. The table structure etc, are static, but the fields retrieved, are dynamic, based on the users search criteria. Within each result, I've added a small form, that posts that

Re: [PHP] Advanced PHP Mailing List?

2004-03-05 Thread Tristan . Pretty
I use 12All from Active campaign... Great site, GREAT support... and the code was not beyond me in most places... Galen <[EMAIL PROTECTED]> 05/03/2004 08:58 To [EMAIL PROTECTED] cc Subject [PHP] Advanced PHP Mailing List? Hi, Don't mind if I ask this, but are there any other large PH

Re: [PHP] Re: Delayed mail()... ?

2004-02-20 Thread Tristan . Pretty
Right, I'm off to php.net, to learn all about cron jobs... i've never heard ofit ;-) (I'll come out from under my rock now) Cheers everyone Ben Ramsey <[EMAIL PROTECTED]> 20/02/2004 13:36 To [EMAIL PROTECTED], Tristan Pretty <[EMAIL PROTECTED]> cc Sub

[PHP] Delayed mail()... ?

2004-02-20 Thread Tristan . Pretty
I've been asked to add a small amount of functionality to a site I've built (It's a techer at home web site) Basically, prospective teachers/students, can sign up for more info etc. Currently, that info is captured, and the site admin people are E-mailed... all good so far.. What they've as

[PHP] htmlspecialchars... or...?

2004-02-18 Thread Tristan . Pretty
Hi all... I've having problems submitting information to salesforce.com... I have a system set up that allows my users here in the office, to send individual leads, to salesforce... However, if the users details contain characters such as... Ù ë ý Ñ Ã etc... htmlspecialchars only does & " < >

[PHP] generating arrays using $_REQUEST/$_GET/$_POST

2004-01-22 Thread Tristan Gutsche
wever with register_globals=off only the last value passed in the HTTP string is being returned. Any suggestions welcome. Regards Tristan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Unsubscribe (mailign lsits in general) question...

2004-01-20 Thread Tristan . Pretty
I've been told by my boss, that the law has changed in relation to 'Opt out' options on mailing lists etc... she tells me that I have to now change all my forms to conform. She claims that now, each time the user must click the 'remain subscribed' link, or we have to remove them from our mailing

Re: [PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
Danke looks like its a simple case where the reference book had a Typo in it putting the ! on the outside of the bracket. Thanx for your help. Regards Tristan "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > -BEGIN PGP SIGNED MESSAGE- >

[PHP] odd error with if !(cond){}

2004-01-19 Thread Tristan Gutsche
ected '!', expecting '(' in c:\inetpub\wwwroot\php\car.php on line 9 To avoid the error im simply using a script that doesnt use the ! mark but the fact that using an ! in this position is occuring is worrying.. Has anyone else encountered this? Regards Tristan Gutsche -- PHP

Re: [PHP] Destroy all session data...

2004-01-13 Thread Tristan . Pretty
I do't know to be honest, how do I find out? (I'm on a unix server) "Matt Matijevich" <[EMAIL PROTECTED]> 13/01/2004 16:11 To <[EMAIL PROTECTED]> cc Subject Re: [PHP] Destroy all session data... [snip] Until I get this sorted, can I kill everyones stored session data? [/snip] How is t

[PHP] Destroy all session data...

2004-01-13 Thread Tristan . Pretty
I've just asked my host to set my session time limit to 30 days... From 0 I'm now running into problems, and I think that destroying all session data sill help... Until I get this sorted, can I kill everyones stored session data? *

[PHP] file upload - But outside of web directory...?

2004-01-12 Thread Tristan . Pretty
Hi there... I keep all my downloads outside of the web folder on my site. I only allow users to download them by them using the download page, and changing teh header info when a file is requested.. What I want to do now, is allow the other site users to upload files to that same directory... >F

Re: [PHP] writing Excel files through PHP

2004-01-12 Thread Tristan . Pretty
You know, I've been struggling with this probelm fr ages, and wouldn't you know it, I really over complicated things.. using this simple header method, I've done it... Cheers for the heads up... It pays to read eh? ;-) Tris.. Marek Kilimajer <[EMAIL PROTECTED]> 10/01/2004 13:22 To Binay <

Re: [PHP] Comparison PHP to Perl

2004-01-06 Thread Tristan . Pretty
>> "In fact, I hope you do more than "session_start() and go" in PHP, else you are probably vulnerable to a number of session-based attacks." Man, that's all I do alot of the time? What dangers are there, care to share any facts figures about that...? I'll go away now and read up again on sessions

Re: [PHP] Counting back 90 days...

2004-01-05 Thread Tristan . Pretty
t Re: [PHP] Counting back 90 days... Hello Tristan, Monday, January 5, 2004, 11:29:16 AM, you wrote: TPrsc> But is there an easy was to calculate 90 days from the timestamp... Based on the current time: $previous_90_days_timestamp = strtotime ("-90 day"); All in one: $previous_9

[PHP] Counting back 90 days...

2004-01-05 Thread Tristan . Pretty
Got this function... I wanna remove 90 days from todays date, giving a final date, in the same format as the original, that counts back 90 days... I'm listing dates on a reporting tool, and I've been asked to only show info that we recieved in the last 90 days... Anyhoo... I believe I can minus 1

Re: [PHP] best way to specify path to a file in a $variable?

2003-12-30 Thread Tristan . Pretty
I personally link my css files using the root dir... eg: host/myaccount/mywebsite/mycssfile.css That way, it's always pointing to the correct file... hope it helps/// Danny Anderson <[EMAIL PROTECTED]> 30/12/2003 14:15 To [EMAIL PROTECTED] cc Subject [PHP] best way to specify path to a fil

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
I am a monkey... I had me angle bracket the wrong way round... what a stoner...! "Chris Boget" <[EMAIL PROTECTED]> 22/12/2003 15:04 To <[EMAIL PROTECTED]> cc <[EMAIL PROTECTED]> Subject Re: [PHP] combining two variables to make one??? > Doesn't work for me though...? Which isn't workin

Re: [PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
Cheers... Doesn't work for me though...? What do the '{' mean when declaring the variable? "Chris Boget" <[EMAIL PROTECTED]> 22/12/2003 14:16 To <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc Subject Re: [PHP] combining two variables to make one??? > $i = 1; > while ($i >= 3) { > $op

[PHP] combining two variables to make one???

2003-12-22 Thread Tristan . Pretty
I want to out put three bits of text... I want my end page to look like this... = result 1 result 2 result 3 = here's the code I've got... === = 3) { $options$i = "result $i"; } ?> === yet I get an error...? Anyone know who

Re: [PHP] includes...

2003-12-18 Thread Tristan . Pretty
Oh... So it's the same as not having any /'s just the file name? Marco Tabini <[EMAIL PROTECTED]> 18/12/2003 14:01 To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PHP] includes... That means "the current directory" Cheers, Marco -- php|architect - The Magazine for PHP Profes

[PHP] includes...

2003-12-18 Thread Tristan . Pretty
bit of a random thought I need answering really... when referencing external files, what's the difference between: ../ / ./ I know that ../ means back one directory and jsut a / means look from the root directory, but what is: ./ ??? Cheers all.. **

[PHP] Inserting function into mail()???

2003-12-17 Thread Tristan . Pretty
Ok, here's my code that I want to pick a random line from a text file, and then mail myself 10 times with a different line each time... But It simply won't work... Anyone know why? $i) { $abc = randomline('text.txt'); mail("[EMAIL PROTECTED]", "$abc", "$abc", "From: [EMAIL PROTECTED]"); $i++; }

RE: [PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
Forget my whole new post retort ;-) "Wouter van Vliet" <[EMAIL PROTECTED]> 09/12/2003 14:11 To "'Wouter van Vliet'" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc Subject RE: [PHP] Leechers... On dinsdag 9 december 2003 14:30 Wouter van Vliet told the butterflies:

RE: [PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
Cheers for this... On the 'new mail' thread... I did start a new mail this time, I remember cause I'm been flamed for this before..? Curious... Sadly, I use Lotus Notes, if I opened an E-mail, copied the address and then hit new mail, would Notes remember and extra info? Quite quite confusing :

[PHP] Leechers...

2003-12-09 Thread Tristan . Pretty
I've just installed and am happily using Galery HP (http://www.galleryhp.org/) A great photo gallery package... Anyhoo, I want to now be able to stop people from linking to the images directly, and only be able to access the images via my site... Is this possible...? Perhaps my questio is to v

[PHP] CHMOD...

2003-12-04 Thread Tristan . Pretty
Is there anyway to use CHMOD: chmod ("/somedir/somefile", 0755); but have it set all files, folders etc to the CHMOD setting I want? I have a folder, and within that, I wanna quickly, jsut set it all to CHMOD 777. all sub DIR's and files etc... can it be done simply? E.G. : chmod ("/somedir/%

[PHP] trim...

2003-11-26 Thread Tristan . Pretty
Why doesn't this work...? $body = " blurb blah happy days end of text"; $body = trim($body); $body now should output: "blurb blah\nhappy days\nend of text" but it doesn't...? I'm using a text string in a javascript, adn it needs to be outbut on one line to work, yet this isn't doing it... Any

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
It should be off...! I went away for two weeks recently, and left my subscription runing ot he list... sorry... I'll be more careful... It's been a funny few weeks... ;-) Tris... Marek Kilimajer <[EMAIL PROTECTED]> 19/11/2003 17:17 To [EMAIL PROTECTED] cc [EMAIL PROTECTED] Subject Re: [PH

Re: [PHP] R: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Cheers to everyone, it works great! Easy when I look at it now, but ant it the way... I'm off to the pub now.. later... Tris... "Alessandro Vitale" <[EMAIL PROTECTED]> 19/11/2003 16:50 To <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> cc Subject [PHP] R: [PHP] mailing multilple addresses...?

Re: [PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Not a problem... I do try and be thorough when I create mails... I'll be more list friendly in the future... cheers for the heads up! Nw, if I can only solve my prob, I can go home ;-) Jason Wong <[EMAIL PROTECTED]> 19/11/2003 16:42 Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED]

[PHP] mailing multilple addresses...?

2003-11-19 Thread Tristan . Pretty
Below is some code, I've written, where I'm trying to do the following... 1. Display a text box, for a user to enter a number of email addresses, seperated by a comma. 2. take that value, split it based on the comma and place that vlaue into an array. 3. Count the No of elements in the array 4.

[PHP] Passing header info for use in downloading files...?

2003-11-11 Thread Tristan . Pretty
I have a page where the user clicks a link to download a file, but the file is out side of the root DIR. passing certain variables in the link, (type, file_name) I call the correct file... However, it's stopped working? My code below shows how I select the correct mime info to pass to the header

[PHP] Tristan Pretty is out of the office.

2003-11-05 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

[PHP] Tristan Pretty is out of the office.

2003-10-29 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

[PHP] Tristan Pretty is out of the office.

2003-10-29 Thread Tristan . Pretty
I will be out of the office starting 23/10/2003 and will not return until 11/11/2003. I will respond to your message when I return. Please contact Fiona or Alan for any issues. * The information contained in this e-mail me

[PHP] Allowing specific IP's to bypass security.

2003-10-21 Thread Tristan . Pretty
Hi all... I have a form that captures data, before then showing a few download links... However, If the user is in our office, I want to bypass the form... so at the very top of my page, I've put this... (details_captured is my variable I use on the form as a hidden field, to confirm that the for

[PHP] Sessions.. (I'm learning), can't call a variable?

2003-10-16 Thread Tristan . Pretty
Not sure if this is a MySQL Q. or a PHP one, but here goes... I'm just learning sessions... And I'm trying to add a session variable to a MySQL database. I've done this page that takes the results from a previous form... But I get this error: Parse error: parse error, expecting `T_STRING' or `T_VA

Re: [PHP] Re: header() function...

2003-10-15 Thread Tristan . Pretty
You are all heart... ;-) Curt Zirzow <[EMAIL PROTECTED]> 14/10/2003 17:23 To [EMAIL PROTECTED] cc Subject Re: [PHP] Re: header() function... I officially declare this thread foobar. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dynd

Re: [PHP] Re: header() function...

2003-10-14 Thread Tristan . Pretty
Bog standard web server logs... We're hosted on a windows server I think... (sadly) "Scott Fletcher" <[EMAIL PROTECTED]> 14/10/2003 16:25 To [EMAIL PROTECTED] cc Subject [PHP] Re: header() function... Web Server's log file or user defined log file (Sort o

[PHP] $PHP_SELF and include all variables?

2003-10-14 Thread Tristan . Pretty
I'm using $PHP_SELF, but need to automatically record what variables are in the URL at that time... is that possible? I've searched PHP.net, but cannot find this specific function... Cheers, Tris... * The information contained

[PHP] header() function...

2003-10-14 Thread Tristan . Pretty
We've just moved sites, to a new URL... on the home page of the old url, I simply had a page that was; http://www.newsite.com); ?> All good, any requests to that page, were cleanly redirected to the new site. I know this cause I tested it many times... Now on the stats for the new site, we can

  1   2   >