Re: [PHP] Asuming query without the ?

2004-06-03 Thread Daniel Clark
I think it's in the Apache config file. > Where and how do I set this? I'm to Unix and PHP. > > "Marek Kilimajer" <[EMAIL PROTECTED]> escribió en el mensaje > news:[EMAIL PROTECTED] >> Robert Winter wrote: >> > Is it possible to configure PHP/.htAccess/etc. for assuming a query >> when > the >> >

RE: [PHP] Best way to sort?

2004-06-04 Thread Daniel Clark
Order by the 2nd column >>what is the 2? in the order by statement mean? >>thanks >> >>-Original Message- >>From: Raúl Castro [mailto:[EMAIL PROTECTED] >>Sent: Thursday, June 03, 2004 6:20 PM >>To: [EMAIL PROTECTED] >>Subject: Re: [PHP] Best way to sort? >> >> >>The best way is: >> >>SELEC

Re: [PHP] sessions

2004-06-04 Thread Daniel Clark
Did you have session_start() on this page before accessing the session variables? Could also do: $name = "$_SESSION['first_name'] , $_SESSION['last_name']" ; >>why is this not working. I am using instead of a form ($name = >>$_POST[name];) >>and linking to it from a users logged in page. >> >>$F

Re: [PHP] script location

2004-06-04 Thread Daniel Clark
I use of realpath() > Does anyone know of a simple/efficient way to determine the path to a > script on the URL? > > For instance: > > http://www.nowhere.com/test/whatever/testing.php > > All I want out of that URL is this: > > /test/whatever/ > > I didn't see an element in one of the super global

Re: [PHP] Refresh Page

2004-06-05 Thread Daniel Clark
Put inside the tags, this refreshed the page every 10 seconds. >>I want to refresh page every 10 seconds, without clicking on "Refresh" >>button. >>Any ideas how this can be done? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Refresh Page

2004-06-05 Thread Daniel Clark
I've used this META tag is IF statement conditionals in the header too. Works well NOT to refresh when in a "edit mode". >>You can use javascript timer that are much more flexible than >HTTP-EQUIV="REFRESH"> because you can test for conditions, etc. >> >> >>"Mike Mapsnac" <[EMAIL PROTECTED]> es

Re: [PHP] DB Query

2004-06-05 Thread Daniel Clark
Run an explain plan, but my first quess would be to add indexes to c1, c2, c3, c4, c5 fields. >>I'm trying to optimize a query that in the first example is taking too long >>to run. >> >>This is my existing working query: >>$sql = "SELECT count(*) as cnt, id FROM `mYTable` WHERE c1 not in (1,16,

Re: [PHP] Prevent IE6 from blocking cookies

2004-06-05 Thread Daniel Clark
In IE you can turn ON or OFF accepting cookies, select Tools, Options, Security, Advanced, cookies. But the web server can't command IE to enable cookies. >>Do I a prevent Internet Explorer 6 from blocking cookies (session cookies, >>etc)? Do I have to setup something in the META HEADERS? >> >>

RE: [PHP] DB Query

2004-06-05 Thread Daniel Clark
gt;-Original Message- >>From: Daniel Clark [mailto:[EMAIL PROTECTED] >>Sent: Saturday, June 05, 2004 11:41 AM >>To: bskolb; [EMAIL PROTECTED]; [EMAIL PROTECTED] >>Subject: Re: [PHP] DB Query >> >>Run an explain plan, but my first quess would be to add indexes to

Re: [PHP] mkdir after mkdir

2004-06-06 Thread Daniel Clark
I think PHP and mkdir() is using the web servers rights. So the web server would need rights to create directories. >>Hello, >> >>I have a problem with the mkdir function. >>I'm trying to make a seperate folder every photoalbum. inside I want to >>create another folder ('.../thumbnails/') for,

Re: [PHP] count number of occurences of character in a string

2004-06-08 Thread Daniel Clark
substr_count() http://www.php.net/manual/en/function.substr-count.php >>what function can I use to count the number of occurences of a certain >>character in a string? >> >>-- >>Diana Castillo >>Global Reservas, S.L. >>C/Granvia 22 dcdo 4-dcha >>28013 Madrid-Spain >>Tel : 00-34-913604039 >>Fax :

Re: [PHP] PDA / Normal Browser

2004-06-08 Thread Daniel Clark
$_SERVER['HTTP_USER_AGENT']; > [snip] > Is it possible to use PHP to detect the type of browser accessing my > site. > For example if a PDA is using it I would prefer not to include large > graphics... > [/snip] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] previous page

2004-06-09 Thread Daniel Clark
Then you could set a hidden form variable or set a sesssion variable on the previous page. >>Larry, >> >>Thanks all makes sense, but, if I add this: >>>echo($_SERVER['HTTP_REFERRER']); >>?> >>I don't get anything back when the page is called? >> >>Cab >> >>"Larry E . Ullman" <[EMAIL PROTECTED]> w

Re: [PHP] Limit the number of characters in a string

2004-06-11 Thread Daniel Clark
substr( xxx, 1, 100) >> >>Hi >> >>Anyone know how to clip the number of characters in a string? For instance, >>I have a string carrying a long piece of text, say, of 200 characters, but I >>want to reduce this to just the first 100 characters. >> >> >>Thanks in advance. >> >>Russell -- PHP Gene

Re: [PHP] passing a function as a parameter

2004-06-11 Thread Daniel Clark
Can you use eval() ? > I want to pass a function as a parameter and execute it in another > function. > A callback. :-) > > For example: > > function a() { > echo "a"; > } > > > function b( $func ) { > func(); > echo "b"; > } > > > The output of "b( a )" will be "ab". -- PHP Gener

Re: [PHP] testing array_search

2004-06-11 Thread Daniel Clark
What output do you get? > I'm having a very hard time testing array_search. > > $j = array_search( $i, $errList ); > echo "j=" . $j; > if (($j != false) && ($j >= 0)) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] patRSS

2004-06-11 Thread Daniel Guerrier
try http://magpierss.sourceforge.net/ --- Edward Peloke <[EMAIL PROTECTED]> wrote: > Does anyone use patRSS for the rss feeds? > > http://www.php-tools.net/site.php?&PHPSESSID=99dd0269b03bee4046c3395d5561162 > 1&file=/patMisc/rss.xml > > I don't see much online about it. It seems to work > fine,

Re: [PHP] Function Date

2004-06-14 Thread Daniel Clark
How about. strtoupper( date("j M Y")) > I am using date("j M Y"), the format date is 14 Jun 2004, but i need this > format 14 JUN 2004. The unique difference is Jun -> JUN. How can i change > this?. > Thank You, > Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: ht

Re: [PHP] Erroring out?!

2004-06-14 Thread Daniel Clark
I think you need single quotes around $user. $query = "select * from quoteprefs where salesman = '$user'"; > I am trying to figure out why if there is an error in my query it throws > an error message to the screen instead of parsing the rest of my script > to get the rest of the information. I

Re: [PHP] update count

2004-06-16 Thread Daniel Clark
If your table has a primary key, or auto increment field works well and is quick. > What is the best way to only do an update if it going to update only one > row? > I want to protect my code so that it won't accidentally update more than > one row. > I can do a select first but there must be an e

Re: [PHP] Problems with arrays

2004-06-17 Thread Daniel Clark
echo "$InputString" . ''; // for HTML echo "$InputString\n"; // for output to screen >>Hi, >> >>I have this array: >> >>$array = array(element1, element2, element3, element4) >> >>I want to list all elements of this array, so i used: >> >> foreach ($array as $index => $eleme

Re: [PHP] Read Last Lines of a Text File

2004-06-17 Thread Daniel Clark
Try adding number of bytes to read. $line = fgets($fp, 4096); > >> * Thus wrote Scott Miller ([EMAIL PROTECTED]): >> > I have a text file (log file) that I want to be able to read the last >> 30 > or >> > 40 lines of. I've created the code below, but since this file is so > large >> > (curren

Re: [PHP] This weird behavior is killing

2004-06-17 Thread Daniel Silva
Php.Net wrote: The way PHP handles includes is very weird, for example: - create a folder, name it f ex "includes" - create 2 sub-folders, call them level1 and level2 - now lets create a file, "includes.php" includes.php -- --

Re: [PHP] variable question

2004-06-20 Thread Daniel Clark
How about: eval( '$lie' . x ) ; >>is there a way to use one variable to create another? >>Example >>$poo=1 >>and i want >>$lie1 >>OR >>$poo=2 >>and i want >>$lie2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] umm i am confused...

2004-06-20 Thread Daniel Clark
Looks like several lines need quotes around the print statements and \" inside. print("delete"); >>>//the function for adding new addresses >>function loop_new_address($loopnum,$url,$name){ >>//the ${'link' . $loopnum} says put $link and add $loopnum to the end >>if(isset(${'link' . $loopnum . '}

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Daniel Clark
Use mysql_fetch_assoc() for fieldnames >>when I call mysql_fetch_row() I get an array, but this Array doesn't have >>the fieldnames as array-keys. >>I've seen several codes from others where they use something like >> >>print $row['key']; >> >>This doesn't work on my server. Is this because my s

Re: [PHP] hi all can you read me ?

2004-06-21 Thread Daniel Clark
Can read you now(). >>Hi all just wanna check if you can read me >> >>Thx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] file locking question

2004-06-21 Thread Daniel Clark
If you're just going to read only, no. >>Hi all >> >>I have this script whereby I use the php function file(). >>Just a quick question, do I need to implement file locking. >> >>if so, can I just use something like >> flock( file("/path/file.ext") ); >> >>Kind Regards >>Brent Clark -- PHP G

Re: [PHP] Association Problem?

2004-06-21 Thread Daniel Clark
Good idea storing it in an array. Sort the unique row ID and the count in the array and use asort(). > Wanted to see if anyone had any input on this. I have a recordset that > is returned to me in my script. What I then would like to do is go > through each row of the recordset and use the subs

Re: [PHP] TIFF display problem...

2004-06-21 Thread Daniel Clark
Do you want... if ( !isset($_SESSION['user_id']) ) > [snip] > session_start(); > > if ( !$_SESSION['user_id'] ) > { > exit(); > } > > [/snip] > > Are you sure you are getting past the if ( !$_SESSION['user_id'] ) > condition? -- PHP General Mailing List (ht

RE: [PHP] TIFF display problem...

2004-06-21 Thread Daniel Clark
culprit. > > -Dan Joseph > >> -----Original Message- >> From: Daniel Clark [mailto:[EMAIL PROTECTED] >> Sent: Monday, June 21, 2004 4:47 PM >> To: Matt Matijevich >> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] >> Subject: Re: [PHP] TIFF display problem... >&g

[PHP] Re: session_is_registered gets session values only after doing some output first !?

2004-06-23 Thread Daniel Kullik
Frank Rust wrote: I try to check if a session is registered. This works fine if I first do some output echo "abc"; if (!session_is_registered('userid')) { do_something(); } else { redirect_to_somewhere(); } and I can't redirect to another page ... If I comment out the echo statement I get alw

[PHP] Re: Error Reporting

2004-06-28 Thread Daniel Kullik
Tom Chubb wrote: I ave a strange problem with my error reporting! I have set php.ini to: error_reporting = E_ALL but I don't see any errors. (After I was happy things were working on my Apache Test Server, I uploaded to my web host and discovered errors.) Thanks, Tom Make sure that "display_error

[PHP] Re: problem with embeded objects and reference

2004-07-01 Thread Daniel Kullik
; third [2] => forth ) ?> Hallo. Thogh I am not really sure if this solves your problem, but you should take a closer look at your method setChild(). Your parent-class has a property which you want to be an array. [snip] var $child; //array [/snip] But setChild() turns it into an obje

[PHP] Re: Session file problem?

2004-07-01 Thread Daniel Kullik
/www.php.net/manual/en/function.session-cache-limiter.php): [snip] In private mode, the Expire header sent to the client may cause confusion for some browsers, including Mozilla. You can avoid this problem by using private_no_expire mode. The expire header is never sent to the client in this mod

Re: [PHP] Object is not instatiated on POST, Fatal error

2004-07-02 Thread Daniel Kullik
You might as well add a reference of your db-object to global scope. [code] $GLOBALS['_db_object'] =& $db; [/code] Then you could access it anywhere in your code like this: [code] $GLOBALS['_db_object']->sumbitQuery($query); [/code] Daniel Angelo Binc2 wrote: Ok guys, I

[PHP] Re: Problem with session on first page loaded

2004-07-02 Thread Daniel Kullik
client-side (user might deny cookies). Therefore PHP chooses another way of storing the current session id until next page has been loaded (GET-param, hidden-field...). Daniel Jordi Canals wrote: Hi all, I have an extrange problem with the session cookie: In all my pages there I have this two lines to

[PHP] Re: Header or includes for one-level up access?

2004-07-02 Thread Daniel Kullik
n_up.php'); [/code] Add this line to a script in your docroot. In subdirs you'll certainly have to add some '/..'. Some prepend-file is suggested. Daniel -- WWE e-commerce IT GmbH Eiffestrasse 462, D-20537 Hamburg Tel.: +49-40-2530659-0, Fax: +49-40-2530659-50 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
base, etc } [/code] .. might do, while 'button_name' is the name of your form's submit-button. Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel -- WWE e-commerc

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
Afan Pasalic wrote: July 6th? What are you talking about? Can you please give me more info about that? afan Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the sub

Re: [PHP] Re: MySQL Database Connection Question

2004-07-08 Thread Daniel Kullik
John Nichel wrote: Afan Pasalic wrote: Daniel Kullik wrote: Note: You should checkout the thread 'Form Submission' started on July 6th since this is appearently not the best way to check if the user hit the submit-button. Daniel July 6th? What are you talking about? Can you please gi

[PHP] Re: Retrieving Data To Edit

2004-07-09 Thread Daniel Kullik
t try this instead of your posted line of code: [code] $sql = sprintf( 'SELECT * FROM RegisteredMembers WHERE UserID = "%s"', $_POST['TXT_UserID'] ); [/code] (So maybe you just forgot some quotation-marks (-:) Daniel -- WWE e-commerce IT GmbH Eiffestrasse 462, D-205

[PHP] gzip compression verification

2004-07-09 Thread Daniel Guerrier
I've enabled gzip compression of pages on my site. The question is, how do I check the size of the page being sent to verify that the page is being compressed. Danny __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promoti

Re: [PHP] after submitting, working with data on same page

2004-07-09 Thread Daniel Guerrier
You have the data in the $_POST global. So submit it to _self as you already have and if $_POST['calcentry'] is present and not null then do your calculation then set the value of the sencond textarea to the result. --- "Hull, Douglas D" <[EMAIL PROTECTED]> wrote: > I have my two html textarea fi

[PHP] Re: unset empty elements in an array

2004-07-12 Thread Daniel Kullik
f(empty($v)) { unset($in[$k]); } } ?> --- Justin French http://indent.com.au Though it's not really a one-liner: [code] while ($key = array_search('', $in)) unset($in[$key]); [/code] For more infos on array_seach(): http://www.php.net/array_search Daniel -- WWE e-comme

[PHP] Re: unset empty elements in an array

2004-07-12 Thread Daniel Kullik
Daniel Kullik wrote: Justin French wrote: Hi, Looking for a one-liner to delete all empty elements in an array. I know I can do it with a foreach loop, but I'm hoping that I've missed an existing function in the manual which may already do this, or a simple one-liner to replace t

[PHP] Re: addslashes vs string unescape

2004-07-12 Thread Daniel Kullik
t_string, 0, -2), addslashes($rand_string) ); // Save return value of format-random-combo in $final $for_eval = sprintf('$final = %s', $for_eval); // Dump and eval printf('%s', $for_eval); eval($for_eval); // Before and after - remember string's new length $strlen_end =

Re: [PHP] track click throughs

2004-07-16 Thread Daniel Kullik
mysql_query() should return a boolean true if your insert-query works. Check that. [code] print (mysql_query('insert bla...')) ? '(-:' : ')-:'; die(); [/code] Cab wrote: Ed, Sorry it redirects now but on checking the database is no longer being updated? require_once('/home/virtual//var/www/cgi-bin

[PHP] Re: Trouble with include/require

2004-07-16 Thread Daniel Kullik
You should not overwrite the whole include-path. Just append new paths. This should do: [code] // Expand include-path (';' on Windows) $sep = ('WIN' == substr(PHP_OS, 0, 3)) ? ';' : ':'; ini_set('include_path', ini_get('include_path') .

Re: [PHP] Re: Trouble with include/require

2004-07-16 Thread Daniel Kullik
clude 'includes/db.inc', would work, since include_path is set to "." in php.ini, but it does not. Any help? On Fri, 2004-07-16 at 10:35, Daniel Kullik wrote: You should not overwrite the whole include-path. Just append new paths. This should do: [code] // Expand include-path (

[PHP] Re: Getting the primary key from a MySQL insert

2004-07-16 Thread Daniel Kullik
mp;m=108986762507986&w=2 Daniel Andrew Wood wrote: If the primary key in a MySQL DB is an autoincrementing integer, is there anyway of automatically getting it back when I do an insert in PHP. In other words taking the status returned by mysql_query and extracting the PK of the record we just

Re: [PHP] Re: Trouble with include/require

2004-07-16 Thread Daniel Kullik
worked. Any help? On Fri, 2004-07-16 at 11:30, Daniel Kullik wrote: Does your PHP-interpreter parse .inc files at all? Did you get any error-messages? If not, set your error-reporting level to E_ALL any force PHP to display errors on screen. [code] error_reporting(E_ALL); ini_set('display_e

[PHP] Re: Parse Error, Unexpected $

2004-07-19 Thread Daniel Kullik
Hello. Cannot find any unexpected dollar-sign ($) in this code. But please enclose the associative array-indexes within quotation-marks and run your script again. [code] $foo = $_POST['assoc_index']; [/code] Daniel Harlequin wrote: I've checked my syntax but obviously missing s

[PHP] Re: Stuffing those damn values into their fields...!

2004-07-19 Thread Daniel Kullik
); [/code] Paste these two lines of code into the beginning of your script. With error_reporting set to E_ALL you will also see the errors of type E_NOTICE. Daniel Aidan Lister wrote: Michael, You need to gain some very basic debugging skills. If you're trying to update a database: 1) Check th

Re: [PHP] Re: Mixing $_POST with text in a variable

2004-07-20 Thread Daniel Kullik
quotes for array identificators. Once the habit is in you'll have less headaches to worry about. Hello. Skippy, you ought to read this: http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing.simple Explains how PHP parses variables (including arrays) inside strings.

Re: [PHP] 'echo' and 'html_decode'

2004-07-21 Thread Daniel Kullik
ample: $query = "SELECT * from tablename where index='var'"; $result = mysql_result($query); while ($row = mysql_fetch_array($result)) { //do stuff with $row } --Matthew Sims --<http://killermookie.org> Hello. Matt, appearently you're confusing mysql_result() wi

Re: [PHP] OT Re: [PHP] javascript in or in ?

2007-08-13 Thread Daniel Brown
"Hell yeah!" "How the hell did you pull those up?" "I didn't want to say anything, but that's why I always want to be on top." -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list 50% off for life o

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
computer. Whatever is inside the tag will be processed exactly like that, but you can't pass any info to that. If that just confused you even more, blame it on my lack of coffee this morning -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-Ge

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 10:34 AM, Daniel Brown wrote: > > > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> Hey Everyone, > >> > >> Is it possible to have variables affect the databas

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: > > >> > >> Unless I use sessions maybe? Could I write the sort order into a > >> session variable and have that change? Or did I completely >

Re: [PHP] A question that has been bugging me..

2007-08-16 Thread Daniel Brown
On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 16, 2007, at 11:56 AM, Daniel Brown wrote: > > > On 8/16/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> > >> On Aug 16, 2007, at 11:31 AM, Daniel Brown wrote: > >> > >>>

Re: [PHP] This is a bug?

2007-08-20 Thread Daniel Brown
I read your code over several times where is the clients(); code, and how is that returned to the script? I couldn't find it anywhere in there, and I didn't see an explanation. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list

Re: [PHP] Pass $_GET to php cli.

2007-08-20 Thread Daniel Brown
command line [snippity-snip!] One method: [filename=foo.php] Then just call it like so (from a Unix-like command line --- change this as appropriate for Windows, etc.): `which php` foo.php varpass=112233 checkpass=Submit -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobil

Re: [PHP] LDAP

2007-08-21 Thread Daniel Brown
$data = $info[$row][$column]; > echo $data.":".$info[$row][$data][0].""; > } > echo ""; > } > ldap_close($connect); > ?> > This may be kind of a dumb question but did you check your firewall settings?

Re: [PHP] Table shows even when if () is false

2007-08-22 Thread Daniel Brown
RE credit_card_id = > '$credit_card_id' AND request_type = 'D'"; > $result_deferred_comments = mssql_query($deferred_comments) or > die(mssql_error()); [snip!] That's an SQL result resource identifier that's being returned, which is why it won't work. Eve

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
in, they and > have access to a database of addresses. [snip!] Not the end-all-be-all, of course, but here's the basics: Keep in mind that, as always, this hasn't been bug-checked, re-read, or otherwise validated. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
user']);) > $sql = "SELECT * FROM users WHERE user='".$user."' AND > pass='".$pass."' LIMIT 0,1;"; [/snip] -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list 50% off for life

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
On 8/24/07, Borokov Smith <[EMAIL PROTECTED]> wrote: > Daniel Brown schreef: > > On 8/24/07, Borokov Smith <[EMAIL PROTECTED]> wrote: > > [snip] > > > >> A warrant about your example not being validated, will most likely not > >> stop the OP fro

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote: > > > On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > [snip] > >>> $sql = "SELECT * FROM users WHERE use

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
".$user."' AND email='".$pass."' LIMIT 0,1;"; Is the password they supply in the `email` column of the database? -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list 50% off for life on web hostin

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-28 Thread Daniel Brown
On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > > On Aug 28, 2007, at 10:21 AM, Daniel Brown wrote: > > > On 8/28/07, Jason Pruim <[EMAIL PROTECTED]> wrote: > >> > >> On Aug 28, 2007, at 10:03 AM, Daniel Brown wrote: > >> > >>&

Re: [PHP] Round

2007-08-29 Thread Daniel Brown
et/unsub.php > > Richard (Heyes) is right. Tested on 5.0.4 and 5.2.3. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Hey, PHP-General list 50% off for life on web hosting plans $10/mo. or more at http://www.pilotpig.net/. Use the coupon code

Re: [PHP] Round

2007-08-29 Thread Daniel Brown
( round(-1.26) ) ); > > ?> > > > > does this give you the desired results? > > > > What if I expected -1 for the last answer? It didn't take much thinking this time if you were expecting -1 for the last answer, you'd be wrong. ;-P The very natu

Re: [PHP] Heredocs

2007-08-29 Thread Daniel Brown
; To unsubscribe, visit: http://www.php.net/unsub.php > > Additionally, I don't believe that the END; used to terminate the HEREDOC block in this code should be indented. To my understanding, the terminator must begin the line, regardless of the position of the initiator, like so:

[PHP] PHP-VOX Project Advancement (PHP Text-To-Speech)

2007-09-02 Thread Daniel Brown
s in half, for life. That is all. Thanks for listening. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good deed goes unpunished -- PHP Gene

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Daniel Brown
e $0.05 difference on the dollar adds up to $2,500 on a $50k salary. Not a bank-breaker, but still worth a mention. I know I'd certainly like an additional $2,500. Actually, I'd like it right now. Volunteers? ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile]

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Daniel Brown
to $84k+ American. At which point, I'm going to get a tattoo of a maple leaf on my face and move north. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Daniel Brown
r > > Open August 30, 2007, > > Closing September 14, 2007 > > Formal Education: University Degree in computer science/engineering or > related discipline > > Employer: University of Toronto, Faculty of Information Studies, > Adaptive Technology Resource Centre, -- Daniel

Re: Fw: [PHP] cant mail

2007-09-06 Thread Daniel Brown
When telnet starts, type: open 25 (Note: Replace with the correct server address) 5.) If it connects, type: EHLO 5b.) If it doesn't connect, then investigate the possible reasons why. Hope that helps with the part your testing now, Diana. -- Daniel P. Brown [offi

Re: [PHP] Fwd: 403 Forbiden

2007-09-10 Thread Daniel Brown
On 9/10/07, Jesús de Diego Alarcón <[EMAIL PROTECTED]> wrote: > Daniel > > Here is the provincias.php code: > > header('Content-Type: application/xml'); > //error_reporting(E_ALL); > $request = ' > https://ovc.catastro.meh.es/ovcservweb/OVCSWLocal

Re: Fw: [PHP] remove page referrer

2007-09-11 Thread Daniel Bächtle
> my problem is for the 'Back' button of Internet Explorer,.. You cannot disable the back buttom of any browser with php ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fwd: 403 Forbiden

2007-09-11 Thread Daniel Brown
On 9/11/07, Jesús de Diego Alarcón <[EMAIL PROTECTED]> wrote: > Daniel > > Wo... Yes. This solved the problem... > Thank you; many , many thanks.. > I'm really surprised with the very goog PHP people > > Jesús de Diego > > 2007/9/11, Daniel Brow

Re: [PHP] mandriva and gd problem

2007-09-11 Thread Daniel Brown
d, back up your php.ini file (and any external configuration scripts you may have) and `rpm -e` them. You may have to force the removal with --nodeps flipped on. If that doesn't work, reply back with what version of PHP you're using and we'll go from there. -- Daniel P. Brown [of

Re: [PHP] remove page referrer

2007-09-11 Thread Daniel Brown
ession remains active, any time the user attempts to reload that page, they'll be forwarded to a page of your choice (in this case, page2.php). If you absolutely want a 404 error, you can either spoof one or legitimately create one --- by forwarding them to a page that does not and will no

Re: [PHP] remove page referrer

2007-09-11 Thread Daniel Brown
On 9/11/07, NOSPAM plz wrote: > I think you have to put the exit(); function in the code to prevent hacks. > > if($_SESSION['already_submitted'] == True) { > header("Location: page2.php"); > *exit();* > } Good call. I forgot to type that in the

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
use the core that was dumped was the Apache server's binary (httpd), which may indicate that it's pure coincidence with the PHP version upgrade. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
On 9/12/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > On 9/12/07, Per Jessen <[EMAIL PROTECTED]> wrote: > > Migrating from v4 to v5 is not necessarily straight forward. > > Depending on what features you've used, you may have to rewrite some of > > your

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
le in debugging in that fashion, IMHO. Right, and I'll agree with you that user code can cause that, which I mentioned. However, in the context of this issue, it's when Apache is first starting, prior to ever even being requested to serve the content. Hence my assertion. -- Daniel

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
y helpful! Add index.php to your DirectoryIndex area of httpd.conf and that will fix it. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll find out he was allergic and is hospitalized. See? No good de

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > > > There's only one problem left to be solved. After the upgrade php > > > scrip

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Hello, > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > >

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Hello, > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > >

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped)

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Hello, > > 2007/9/12, Zbigniew Szalbot <[EMAIL PROTECTED]>: > > Hello again, > > > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > > > > > > > > > > >

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped) [SOLVED]

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Dear Daniel and all! > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > > > > > > > > > > > > > > > > > > > > >

Re: [PHP] PHP 5.2.3 - Segmentation fault (core dumped) [SOLVED]

2007-09-12 Thread Daniel Brown
On 9/12/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > Hello, > > 2007/9/12, Daniel Brown <[EMAIL PROTECTED]>: > > No problem at all. > > Your help was very much appreciated! > > > > > Now my guess at explaining it > > > >

[PHP] dynamic

2007-09-18 Thread Daniel Brown
u want to use it as a $_GET, $_POST, or $_REQUEST, it will need a variable name with an assigned value. For example: L>thumb.php -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he'll eat for a day. Then you'll fin

Re: [PHP] scaling images

2007-09-20 Thread Daniel Brown
$imageinfo[0]; > $iy=$imageinfo[1]; > > > > //upload the images script > I > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-81

Re: [PHP] Access name of variable in $_POST array

2007-09-21 Thread Daniel Brown
verything is. > > By the sounds of it the posted values are actually in $_POST['Post > Array'] but use the above line to be sure. > > -Stut > > -- > http://stut.net/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visi

Re: [PHP] IF's!

2007-09-26 Thread Daniel Brown
ults per page: ".$max_results."\n "; > //echo "Total results: ".$total_results."\n "; > //echo "Total number of pages needed: ".$total_pages."\n "; > ?> > Dan, Your syntax is correct, but mssql_error() doesn't exist in

Re: [PHP] an apology

2007-10-02 Thread Daniel Brown
On 10/1/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > Most of us have pretty thick skin around here. Yeah, especially Rob. Wait skin or skull? Ah, well ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 Give a man a fish, he

<    19   20   21   22   23   24   25   26   27   28   >