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

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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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
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] 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] 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] 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] 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] 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] 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-03 Thread Daniel Clark
SELECT DISTINCT person_name, count(*) FROM table_name GROUP BY person_name ORDER BY 2 DESC > I'm not sure if this is a complex SQL query or a PHP array sorting > thing, but what's the best way to take this data: > >Tom >Greg >Brian >Tom >Brian >Tom > > And return the follow

RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Seems to me there was a problem with Apache 2 and PHP (some version). > The content of my test.php file has: > > phpinfo(); > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Running Apache? Windows? > I get the source display on the browser as: > > phpinfo(); > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
And you test.php file has? (note starting with > Yes. > > Have you stopped and restarted the web server? > >> OK - I tried that and what came up on the browser was the content of the >> test.php file. >> >> I checked in my httpd.conf file I do have the following: >> >> AddType application/x-http

RE: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Have you stopped and restarted the web server? > OK - I tried that and what came up on the browser was the content of the > test.php file. > > I checked in my httpd.conf file I do have the following: > > AddType application/x-httpd-php .php > AddType application/x-http-php-source .phps > > LoadMod

Re: [PHP] php installation verification

2004-06-02 Thread Daniel Clark
Save to your root directory as test.php (or something ending in php). > I am new to php and was tasked with installing php v.4.3.6. I installed > it on redhat with apache v2.0.48. > I read in the doc that you can create a test file called test.php with > some php tags such as . > Could someone

Re: [PHP] Finding the sizeof a variable....

2004-06-02 Thread Daniel Clark
There is memory_get_usage() but it returns the amount of memory allocated to PHP. http://us3.php.net/manual/en/function.memory-get-usage.php > I'm wondering if there's something similar to the C sizeof operator in > PHP? I would like to find out how much space in memory a variable is > actually

Re: [PHP] update mysql using radio button

2004-06-01 Thread Daniel Clark
Right. (oops) > From: "Daniel Clark" <[EMAIL PROTECTED]> > >> if($row->club_member >> ='N'){echo 'CHECKED';}?>> > > =='N', you mean. :) > > ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strtotime() weirdness

2004-06-01 Thread Daniel Clark
http://us3.php.net/manual/en/function.strtotime.php Note: The valid range of a timestamp is typically from Fri, 13 Dec 1901 20:45:54 GMT to Tue, 19 Jan 2038 03:14:07 GMT. (These are the dates that correspond to the minimum and maximum values for a 32-bit signed integer.) Additionally, not all plat

Re: [PHP] update mysql using radio button

2004-06-01 Thread Daniel Clark
I think you need Values for the radio buttons. club_member ='N'){echo 'CHECKED';}?>> > > hello all - > > i'm having a problem getting an UPDATE to work with radio buttons and > i'm not sure where it's gone wrong. the initial values are being grabbed > properly, but unfortunately they don't want

Re: [PHP] Re: Re: drop down menu populated from a directory

2004-05-31 Thread Daniel Clark
With the SELECT drop down, you'd need a submit button, and then the value of $file would be passed to the next page and read. There you could open that file. >>So I made my code: >> >>>if ($handle = opendir('../../../mov')) { >>while (false !== ($file = readdir($handle))) >> >>if ($

Re: [PHP] duplicating a row

2004-05-31 Thread Daniel Clark
INSERT INTO new_table (column1, column2, ...) SELECT column1, column2, ... FROM original_table >>I want to duplicate a row (back it up - copy to a table with the same >>schema) regardless of the table schema. >>This in MySQL but I need a solution that can be made easily portable to >>other data

Re: [PHP] multiple checkbox help

2004-05-31 Thread Daniel Clark
Change $_REQUEST to $_POST (a little more secure). foreach( $deleteID as $key => $value) { echo 'deleting ' . $value . '' ; } >>I tried this HTML: >> >> >> >>$_REQUEST['deleteID'] === the last box checked. >>so I did a google search and changed my HTML to: >> >> >> >> >>Now the code: >>for

Re: [PHP] installing php4 in windows 2000

2004-05-31 Thread Daniel Clark
Is your php.ini in the windows or winnt directory? >>i have configured apache 2.0.49 in my system and included the following lines of >>code in my http:conf file >> >>LoadModule php4_module "c:/php/sapi/php4apache2.dll" >>AddType application/x-httpd-php .php >> >>i have also configured the php.i

Re: [PHP] hyperlink to the mysql data

2004-05-30 Thread Daniel Clark
Can you post some of the code? --Original Message Text--- From: CurlyBraces Technologies ( Pvt ) Ltd Date: Mon, 31 May 2004 01:49:17 +0600 hi , i have retrived some perticular data from mysql , and them show in the web browser.( It is very few data ) When clicking on one of that that perti

Re: [PHP] Query Query

2004-05-30 Thread Daniel Clark
Can you send more of the code? I looks good so far. >>This may be better suited to the MySQL lists, but I'd appreciate it if >>someone could help. I'm probably just missing something stupid here but >>have been coding non-stop for a week and need another set of eyes. >> >>Here's the line of co

Re: [PHP] Text file wont' have newlines?

2004-05-29 Thread Daniel Clark
Needs a new line and return. fwrite($fp, ($credit . "\n\r") ); >>Hi everybody, >> >>I have this script in a file that allows users to upload files, and I want >>to know who submitted what so I write $userfile_name and $credit1(their >>name) to CREDIT.txt in the same directory like so : >> >>$cr

Re: [PHP] cookies malfunctioning moving from windows to linux

2004-05-29 Thread Daniel Clark
Apache must have read and write privs on the tmp directory. >>Hi, I developed a Poll system that uses cookies. It works fine under Windows >>(Apache and MySQL), but it does not work properly under Linux. - I >>transitioned my site from my windows based server to a linux machine. >> >>Cookies does

Re: [PHP] Preg_match question

2004-05-29 Thread Daniel Clark
Great quote Jeroen. >>Always code as if the guy who ends up maintaining your code will be a violent >>psychopath who knows where you live. >> -- Martin Golding -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
That's funny Travis ! >>Here's what you do. Assume 10-hour work days. Obviously, you want to start >>with the schema. That's pretty darn important, so allow yourself a whole day >>for that. >> >>You have four days left. Oh wait -- you will probably have to work the weekend >>for this one.

Re: [PHP] ColdFusion / SQL > PHP / mySQL HELP!

2004-05-28 Thread Daniel Clark
I've used Cold Fusion for years. However one week at 100 hours might not be enough time to covert everything to PHP and mySQL. > Hi everyone, > > Ok, I need serious help. I have been handed a project by my boss to > convert > an existing site that was built using ColdFusion / SQL into a site tha

Re: [PHP] datetime formatting problem

2004-05-28 Thread Daniel Clark
Isn't "date" a reserved word? > hi all - > > this is probably straight forward, but i'm learning and would appreciate > any insight. > > i'm using the datetime type in mysql and have been able to successsfully > pull the data records's date, but it's failing out and giving me the > current time [a

Re: [PHP] how to redirect with post method

2004-05-28 Thread Daniel Clark
I don't believe you can sent those post variables on the URL. Either as GET variables on the URL. Set Session variables and read on the next page. Or setup a with hidden post variables populated with the $post variables, and JavaScript to auot submit onload. > Hello, > I have a webpage that I'm

Re: [PHP] How to check for a $_GET without throwing a Notice?

2004-05-26 Thread Daniel Clark
if (isset( $_GET['id'])) >>How do I check for the presence of an optional $_GET param without >>throwing a "Notice: Undefined index" when the param is not present? >> >>Tried all three of these, they all produce the Notice when the param is >>not passed: >> >>if ($_GET['id']) >>if ($_GET['id'] !

Re: [PHP] dynamic table

2004-05-26 Thread Daniel Clark
Very slick Richard. >>$i = 0; >>while ($myrow = mysql_fetch_array($sql)) { >> if (++$i % 5 == 0) echo ''; >> ... >> >> >>Note: if used repeatedly do not increment the $i again in the loop. >> >>HTH >>Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Ok, print or echo :-) >>From: "Justin Patrin" <[EMAIL PROTECTED]> >> >>> IMHO it's just better to use concatenation and single quotes for your >>> string. PHP doesn't have to parse your strings for variables that way >>> and it makes it obvious what parts are variables. >> >>To each his own. Shall

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Good point Justin ! >>John W. Holmes wrote: >> >>> From: Daniel Clark >>> >>> >>>>>echo "\"{$search_for_list[$i][0]}\""; will work, btw. >>>> >>>>What does the {}around the array mean? >>>

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
Thank you John, and Michal :-) >>From: Daniel Clark >> >>>>echo "\"{$search_for_list[$i][0]}\""; will work, btw. >>> >>> What does the {}around the array mean? >> >>It delimits your variable so PHP knows what to inter

Re: [PHP] interesting

2004-05-25 Thread Daniel Clark
What does the { } around the array mean? >>From: "Bob Lockie" <[EMAIL PROTECTED]> >> >>> echo "\"" . $search_for_list[$i][0] . "\"" works but >>> echo "\"$search_for_list[$i][0]\"" prints "Array[0]. >> >>$search_for_list[$i] is an 'Array' which is followed by the string '[0]' ... >>how is PHP supp

Re: [PHP] Re: test

2004-05-25 Thread Daniel Clark
I think it's someone else on the list getting the email lists, and spaming. >>Signed up litterally 1 minute ago and I'm already getting spam. From >>"Advance Credit Suisse Bank" >> >>Great. Thanks php.net. >> >>Guess you can't even trust the well known sites not to slam you with spam. -- PHP Ge

Re: [PHP] Session variables not recognized?

2004-05-25 Thread Daniel Clark
Session handling was added in PHP 4.0. >>The first line of my file is session_start(); but whenever I try to set >>or reference $_SESSION['anything'] I get: >> >> Undefined variable: _SESSION >> >>What's up with that??? >> >>- Brian -- PHP General Mailing List (http://www.php.net/) To unsubsc

RE: [PHP] Re: find out ip address [beginner]

2004-05-24 Thread Daniel Clark
LOL :-) >>Jonesy >>on Monday, May 24, 2004 2:21 PM said: >> >>> WFM: >>>|$ ping ibm.com >>>|PING ibm.com (129.42.18.99) 56(84) bytes of data. >>>: >> >>wow. that's the weirdest looking php i've ever seen. is that a beta or >>something? >> >> >> >>chris.

Re: [PHP] sessions

2004-05-23 Thread Daniel Clark
Should username have quote around it? Wouldn't it try to make it a constant otherwise? echo $_SESSION['username'] >>Hi, >> >>All my session_start() calls were working fine. >>But since yesterday the vars i use does not keep there value >>i use $_SESSION['varname'] >> >>Nothing has been changed

Re: [PHP] Random Record Retrieval

2004-05-22 Thread Daniel Clark
How about rand() on your ID column. http://www.php.net/manual/en/function.rand.php >>How's that for alliteration in a subject line? >> >>Got a simple MySQL table that contains records which are made up of only >>three fields - ID, quote and author. These are "inspirational" quotes that >>I want

Re: [PHP] Newbie error with cookies and headers already declared

2004-05-21 Thread Daniel Clark
Try putting your below setting the cookie. > I'm getting this error: > > Warning: Cannot add header information - headers already sent by (output > started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php > on line 11 > > With this code in "main.php": > > > define

Re: [PHP] Sessions still do not persist

2004-05-21 Thread Daniel Clark
Try a session_start() at the top of pages, see if that works. Maybe the auto_start does not work. > > I've posted several times mentioning that I am completely unable > to cause sessions to persist. Over the intervening time, I have > replicated this problem to a different machine, with the same

Re: [PHP] How to make program execution go to another file?

2004-05-20 Thread Daniel Clark
This works providing there has NOT been any header (HTML) info outputed. if (1==a) header("Location: thisotherfile.php"); > Hi, >I want program execution to go to one of several other files > based on a decision. > For Example. > > if (1==a) >go to this .php file > > if (1==b)

Re: [PHP] $_post and array question

2004-05-17 Thread Daniel Clark
I've done a couple things. One is to use isset() and check first. The other is to add a hidden input field, that way something is always sent. > Best readers, > > //PHP version: 4.3.6 > > I have question concerning the following issue: > > I have a HTML input element of the type check. > >

Re: [PHP] Reposting elseif carry

2004-05-15 Thread Daniel Clark
echo ""; >>I have tried both of these statements and neither one works Trying to get >>the Date_and_Time to be carried in the URL. Any Help please. >> >> print ''; >> >>or >> >> echo ''; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] elseif carry

2004-05-15 Thread Daniel Clark
Ah. Must have a POST variable in that page called Date_and_Time. >>Tried it and this is the error that I get >> >> >>Notice: Undefined index: Date_and_Time in c:\inetpub\wwwroot\check.php on >>line 9 >>http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] GET and POST variables name

2004-05-15 Thread Daniel Clark
http://www.php.net/manual/en/control-structures.foreach.php Try this. echo "GET:"; foreach($_GET as $key => $value) { echo "$key = $value "; } >>i know it could be a stupid problem, but i need a help and i hope u could be >>generous with me :). >>this is my code, it writes the list of

Re: [PHP] elseif carry

2004-05-15 Thread Daniel Clark
Oops. Try this. echo "" ; >>I did a cut asnd paste to your code and this is the error that I receive >> >>Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting >>T_STRING or T_VARIABLE or T_NUM_STRING in c:\inetpub\wwwroot\check.php on

Re: [PHP] elseif carry

2004-05-15 Thread Daniel Clark
I think you want double quotes around the entire line and \" for the internal double quotes. echo "'; >>I have tried both of these statements and neither one works Trying to get >>the Date and Time to be carried in the URL. Any Help please. >> >> print ''; >> >>or >> >> echo ''; -- PHP Gener

Re: [PHP] Re: Carrying Variables

2004-05-15 Thread Daniel Clark
On the URL, use ? to separate the file name from the variables, and & to separate each additional variable. . &logdate= URL=check.php?Event_Type=&logdate="> >>How would you carry two variables? >> >> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Carrying Variables

2004-05-15 Thread Daniel Clark
I uses variables and method="post" to sent them to the next page. On your 2nd page it's inserting into the database, so past that page, if I want to retain the variables I either read them again from the database OR store those variables as $_SESSION variables. >>How would I carry a variable f

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
Guess it really is "experiemental" :-) >> http://www.php.net/manual/en/ref.sockets.ph > > Yes, I've read that page... many times. It has not helped me. That is > why I am posting my problem here, in that hopes that someone can help. > > (I don't mean to be completely helpless, but I just don't yet

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
http://www.php.net/manual/en/ref.sockets.ph > I just read something about sock warnings this morning. It said > sometimes they drop off, and to ignore the warnings, but capture the > errors. > >> I get this output: >> >> PHP Warning: socket_read() unable to read from socket [35]: Resource >> te

Re: [PHP] Why would a socket be unavailable?

2004-05-13 Thread Daniel Clark
I just read something about sock warnings this morning. It said sometimes they drop off, and to ignore the warnings, but capture the errors. > I get this output: > > PHP Warning: socket_read() unable to read from socket [35]: Resource > temporarily unavailable in /Users/rene/Sites/gpspolice/tit

RE: [PHP] PHP Sessions on Windows

2004-05-12 Thread Daniel Clark
I think you need to restart PHP to pickup the new php.ini changes. My php.ini is in the windows directory (I believe). >> -Original Message- >> From: David Mitchell [mailto:[EMAIL PROTECTED] >> Sent: 12 May 2004 13:21 >> >> OK, I managed to get it working. >> >> I first attempted to edit

Re: [PHP] PHP Sessions on Windows

2004-05-11 Thread Daniel Clark
Sounds right. Do you have a C:\temp directory? >>How does one get sessions working on Windows? I have modified my php.ini >>file so that session.save_path = C:\Temp, restarted and Apache. Still I get >>this error message: >> >>Warning: session_start(): open(/tmp\sess_26310affee160329c9e50f27663f8

Re: [PHP] include (or require) doesn't seem to work

2004-05-11 Thread Daniel Clark
Think you want something like this. require("/tristan/library.php"); > Hi, > > I'm almost ashamed to ask this question as surely enough the > problem is something very basic but, nonetheless, I can't put my finger on > it. I'm trying to implement the concept of a library (library.php

Re: [PHP] php calender

2004-05-11 Thread Daniel Clark
It could be a HTML table with links on the properties to view more details. > I am currently working on a site for a vacation rental company. They > want > the ability to show users the availability of certain properties. The > availability will be held in a mysql db so I assume I will have to

Re: [PHP] session names

2004-05-11 Thread Daniel Clark
You need to name your session variables, but no name for session_start(). >>It is necessary to always name your sessions?or is session_start() >>sufficient? >> >> >> >>Thanks, >>Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Uploaden files to the server

2004-05-11 Thread Daniel Clark
Does the img directory have writes permission? >>Please, >> >>Can anybody help me with my problem !! I'm getting crazy. >> >>I am trying the upload a file to the server where my website is. >>I get always the same fault when I want the try this code: >>"Warning: Unable to create 'test.jpg'

Re: [PHP] Dropdown menu

2004-05-11 Thread Daniel Clark
Hi Bill. Put something like: ##your form selections here## Then on your read_form.php page: $what_they_selected = $_POST['name1'] >>A question about forms and PHP. I have a dropdown list which gets the lines >>in the list from DB. Like this(col1 is used only for sorting the data): >> >>ech

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
Thanks John. > From: "Daniel Clark" <[EMAIL PROTECTED]> > >> > Does anyone know a quick way to find the full path on a shared hosting >> > plan to use in an include file? >> >> What about: >> >> $_SERER['PATH_TRANSLATED']

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
oops. $_SERVER[] > What about: > > $_SERER['PATH_TRANSLATED'] > > > http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to find path for PHP script

2004-05-10 Thread Daniel Clark
What about: $_SERER['PATH_TRANSLATED'] http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server > Does anyone know a quick way to find the full path on a shared hosting > plan > to use in an include file? > Thanks, > Tom > -- PHP General Mailing List (http://www.php.

Re: [PHP] rounding average to one decimal point

2004-05-10 Thread Daniel Clark
How about round() echo round(1.95583, 2); // 1.96 echo round(1241757, -3); // 1242000 http://www.phpbuilder.com/manual/function.round.php > Hi, I have a randon group of numbers I need the average of. When I add > them up and divide by how many there are and print the result, I get a > lot of

Re: [PHP] Strange mails...

2004-05-09 Thread Daniel Clark
Yep. I'm getting it too. >>Each time I post a message on p.general, i receive two strange mails >>from ADVANCE CREDIT SUISSE BANK. >> >>What's this spam ? It looks like an auto-responder is subscribed on the >>newsgroup. Spammers really s*x ! >> >>Greg -- PHP General Mailing List (http://www.

Re: [PHP] Re: protecting web page

2004-05-09 Thread Daniel Clark
I agree. Once the screen, text, or picture is on the clients machine they have a copy of it. >>Petr U. wrote: >>> On Sat, 08 May 2004 21:00:43 -0500 >>> Anguz <[EMAIL PROTECTED]> wrote: >>> >>> > > Do you know any solution that can help me. I've find an application named >>> > > HTML guar

Re: [PHP] page_title

2004-05-08 Thread Daniel Clark
Think you want >>I have write following code: >>>$page_title = "Welcome"; >>?> >> >>But I can not see Welcome on top of the page. >>Can someone tell me why I not can see it? >> >>Thanks >>Erik Gjertsen >> >>-- >>PHP General Mailing List (http://www.php.net/) >>To unsubscribe, visit: http://www.

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
Yes I agree, SESSION variables would be a pretty good way to pass info to the next page. > Daniel - > > What is the best way to "go to another page"? > > header("location: . $new_page); > > Todd > > Daniel Clark wrote: > >> No I don'

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
You could create a new with hidden variable. And have an automatic submit onload, going to the next location. > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does not > show in the URL?

Re: [PHP] Header() and POST data

2004-05-06 Thread Daniel Clark
No I don't think so. > I need to go to another page and I use the > > header("location: " . $the_url_to_the_page); > > Is it possible to use this method with POST so that the info does not > show in the URL? > > Todd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread Daniel Clark
OK how about. Do a count of this monthes articles, if NONE, then run another query to select the previous months articles. Note, this would only "publish" this or last monthes records. > there are a different number of articles each month...:( > > "Daniel Clark"

Re: [PHP] HTTP_REFERER ... ?

2004-05-05 Thread Daniel Clark
I found this in the manual: HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.

Re: [PHP] tweeking WHERE clause

2004-05-05 Thread Daniel Clark
Hey Melissa. Will your articles always had a certain number (for each section) each month? If so a ORDER BY and LIMIT would work. Daniel > I am trying to query a table that consists of e-news artilces. in the > table > are the following fields: ID, sortBy, datePublished, title, description.

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
180 titles and articles.... > > "Daniel Clark" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Just for right now, go ahead a make the date change, or elimate the date >> range to get SOMETHING to come out. >> >> >> >> Just cha

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Just for right now, go ahead a make the date change, or elimate the date range to get SOMETHING to come out. >> Just change the . date('m') to the actualy month you want if not the >> current month. > > > except if I have to specify the specific month I want, then every month I > have to go in

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Netscape browser? In your browser have you checked View Source to see it table data is there? > no. > > - Original Message - > From: "Daniel Clark" <[EMAIL PROTECTED]> > > >> Are you getting any output? -- PHP General Mailing List (http://w

  1   2   >