[PHP] Re: $POST and $_SESSION

2012-03-15 Thread Michael Clark
On 3/15/2012 9:04 AM, Tedd Sperling wrote: What's a better/shorter way to write this? $first_name = $_SESSION['first_name'] ? $_SESSION['first_name'] : null; $first_name = isset($_POST['first_name']) ? $_POST['first_name'] : $first_name; $_SESSION['first_name'] = $first_name; Better: $first_na

Re: [PHP] Error logging

2007-05-31 Thread Clark Alexander
Upon review, I also discover that fatal error entries are being made as well. On 5/31/07 5:14 PM, in article [EMAIL PROTECTED], "Jochem Maas" <[EMAIL PROTECTED]> wrote: > Clark Alexander wrote: >> We have the following php.ini settings: >> error_reporting =

Re: [PHP] Error logging

2007-05-31 Thread Clark Alexander
Yes, it does write to the file, but the only things going in there are notice type entries. Also, for further information, it is php 5.1.2 using the Suse rpm. On 5/31/07 5:14 PM, in article [EMAIL PROTECTED], "Jochem Maas" <[EMAIL PROTECTED]> wrote: > Clark Alexander wr

[PHP] Error logging

2007-05-31 Thread Clark Alexander
quot;); ini_set("error_reporting", E_ALL); ini_set("error_log", "logs/error_log"); Parse errors are not being written to their personal log file, though. Why not?? About the only going in there are NOTICE level entries. Thanks. Clark W. Alexander -- PHP General Mailin

[PHP] PHP Consultant / Contractor

2006-11-07 Thread Max Clark
Hi all, I apologize in advance for a commercially orientated posting in this discussion list - I did not see a business focused list to use instead. I am looking for a good reliable PHP developer that can help with some one off projects that I have (10-20 hours a month perhaps) - geographic

Re: [PHP] order of elements in $_POST super global

2006-06-08 Thread Ron Clark
ay as $value) { if (isset($_POST[$value]) { do something; } } -- Ron Clark System Administrator Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Ron Clark
f you want to run apache as user apache group apache then you will have to edit httpd.conf and change the User and Group directives. Otherwise chown chgrp the tmp directory to the user/group that is listed in the httpd.conf file. -- Ron Clark System Administrator Armstrong Atlantic State

[PHP] using curl to peform post

2005-12-04 Thread Brent Clark
Hi all I have need to simulate the role of a web browser by submitting the following code. GREENc Heres my PHP code that got from the curl function. Any assistant would gratefully be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Links exchange with http://php-faq.com.

2005-04-19 Thread Ann Clark
here! Best regards, Ann Clark. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Ron Clark
On Wed, 5 Jan 2005, Jay Blanchard wrote: > [snip] > ...stuff... > [/snip] > > I think we can all agree that PHP and ASP can do the same things, so the > one glaring difference is COST. An efficient Apache / PHP server can be > set up for much less than an IIS / ASP server, even if you take the s

Re[3]: [PHP] How to argue with ASP people...

2005-01-05 Thread Ron Clark
On Tue, 4 Jan 2005, Richard Davey wrote: > Hello Ron, > > Tuesday, January 4, 2005, 5:59:31 PM, you wrote: > > RC> You then do <%=filen%> to go back into ASP to get the value of the > RC> variable into the HTML code that you wrote. ASP is not including the file, > RC> it is only supplying a fi

Re[2]: [PHP] How to argue with ASP people...

2005-01-04 Thread Ron Clark
ML. You then do <%=filen%> to go back into ASP to get the value of the variable into the HTML code that you wrote. ASP is not including the file, it is only supplying a file name for SSI includes whether apache SSI or IIS SSI. The server parsing the HTML recognizes the HTML comment is sentax for

Re: [PHP] a question about the PHP manualB

2004-12-09 Thread Ron Clark
hat function that you never thought you would need. It never hurts to no what's available even if you don't think you will need it. Ron Clark System Administrator Armstrong Atlantic State University -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] system command

2004-08-24 Thread ron clark
Daniel Schierbeck wrote: Ron Clark wrote: Capture the output in the $output variable then ob_clean to empty the output buffer before printing the the desired message. ob_get_clean() is preferable: $output = ob_get_clean(); // Gets the buffered output and cleans the buffer Didn't nee

[PHP] Re:[PHP] system command

2004-08-23 Thread ron clark
John Holmes wrote: From: "ron clark" <[EMAIL PROTECTED]> I an trying to add virus scanning to the file upload section of our portal using uvscan. The virus scanning is working properly using a system call , but I am having problems with formatting the output. I need to check

[PHP] system command

2004-08-23 Thread ron clark
!!! A virus was found in your file. Found the W32/[EMAIL PROTECTED] virus !!! How can get rid of the first line and still have data $output? I tried adding a 2 > &1 to the system call and tried redirecting the output to /dev/null. This got rid of the first line but also resulted in $output

Re: [PHP] php training tips

2004-07-07 Thread Brent Clark
some of the other wonderful sites (PHPClasses etc), basically teach the people to think for themselves and where the resources are if they hit a stumbling block. Just my 2c for the day Kind Regards Brent Clark - Original Message - From: "Jaskirat Singh" <[EMAIL PROTECTED]

RE: [PHP] file locking over NFS?

2004-07-05 Thread Brent Clark
Hi there If i am not mistaken, that is a standard part of the nfs suite. All you need to make sure is that your export is correct, and the you are not using the -nolock option. Other than that if its PHP you more interested in, look at the flock() function. Kind Regards Brent Clark

[PHP] php functions avail ?

2004-07-01 Thread Brent Clark
Hi I would like to know if these functions (for php 5)are already uploaded, available on the php.net sites, in terms of research and or support. http://zend.com/php5/whats-new.php Kind Regards Brent Clark MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell: +27 82 701 7827 Work No: +27 21 683

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/fi

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

[PHP] file locking question

2004-06-21 Thread Brent Clark
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 MSN: [EMAIL PROTECTED] eMail: [EMAIL PROTECTED] Cell:

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

[PHP] html problem

2004-06-17 Thread Brent Clark
Hi all When ever I do echo on my variable I get the following out: Business%20Class is there a way to strip the %20, or what ever be displaying if the future. If someone could assist, it would be most appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To

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] Just Testing

2004-06-16 Thread Kevin Clark
Um how so? On Wed, 16 Jun 2004 04:18:27 +, Curt Zirzow <[EMAIL PROTECTED]> wrote: > > * Thus wrote Michael Lauzon ([EMAIL PROTECTED]): > > I am just testing, so that I can create a filter. > > btw, you're going about it wrong. > > Filters will just contribute spaming to the list. > > Curt

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] PHP

2004-06-14 Thread Brent Clark
hi is this a joke -Original Message- From: Cheung Pui Pan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP Dear Sir/Madam, I would like to make a page on which people may add records to a table and view them (As my web server do

[PHP] Array problem

2004-06-14 Thread Brent Clark
s what I was going with. foreach($ff as $qaz=>$wsx){ $ffile[substr($qaz[0],1)]=$qaz[0]; } If anyone could assist, it would really be appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

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] Re: Free news feeds

2004-06-10 Thread Ron Clark
benramsey.com Attached is a text file containing a list of rss and xml news feeds we use in our portal. You have to write the code to convert the xml to plain text. -- Ron Clark sysadmin/webmaster Armstrong Atlantic State UniversityFaculty / Staff Applications|Information Retrieval|IR| Faculty

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

[PHP] Cant right click

2004-05-31 Thread Brent Clark
ght click on the pic Weird Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] BUTTONS

2004-05-31 Thread Brent Clark
Hi all I came across this on freshmeat, I thought I must share it http://phpbutton.sourceforge.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] want to buy second hand books online - cant remember site

2004-05-21 Thread Brent Clark
appreciated. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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)

[PHP] Distance and info

2004-05-19 Thread Brent Clark
its pretty acurrate. Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] XML problem

2004-05-18 Thread Brent Clark
.zend.com/zend/tut/index.php Kind Regards Brent Clark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] between date

2004-05-18 Thread Brent Clark
Hi Sorry, I should have copied and pasted the table structure before, sending the mail. (Sorry for the scewness) Kind Regards Brent Clark ++---+++++ | id | user | ref_id | stage | files_captured | time

[PHP] between date

2004-05-18 Thread Brent Clark
Hi all I have a table whereby I use the php date() and time() function. I retrieve the data etc, no problem. but I now need to perform a query of between dates. Is there a function or method to perform this. Kind Regards and thank you in advance Brent Clark -- PHP General Mailing List

[PHP] Select box

2004-05-18 Thread Brent Clark
Hi all For the likes of me I cant seem to figure out how to have a select drop down box , and have it so, that when I click the submit button, the page displays the correct content (which is what it does) but at the same time I need the select box to be at the option of the query. Below is part o

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

  1   2   3   4   5   6   >