RE: [PHP] resize an image with php

2004-02-20 Thread craig
> I want to resize an image before display it in the window. > Is there a php fonction which do it ? > > Thanks ! > this will actually resize the photo, hope it helps, Craig /*** ** Function: resizeImag

[PHP] Passing Variables

2002-11-23 Thread Craig Edgmon
I am sure this question has been answered, but there is a ton of data to sift through on this. I am running Apache 1.3 and the latest PHP 4.2.3. . I am just working with variables and I cannot seem to get them to pass from my html file to the php call. I will get the html portion fine, but not the

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
think. Just a thought, -Craig >>-Original Message- >>From: Rodney Green [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 10, 2002 11:35 AM >>To: Shane; [EMAIL PROTECTED] >>Subject: Re: [PHP] Pls Help: Moving script from Win to Linux >> >> >

RE: [PHP] Re: Help please: Unable to get $_POST["variable"]; to work in a form.

2002-12-10 Thread Craig Thomas
Using $_REQUEST[""] works because the vars are in the http request, but $_POST[""] contains nothing as the other poster noted: mehtod="post" >>-Original Message- >>From: David Scott [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, December 10, 2002 1:20 PM >>To: [EMAIL PROTECTED] >>Subject: [P

RE: [PHP] Pls Help: Moving script from Win to Linux

2002-12-10 Thread Craig Thomas
>>Can't be done at run-time. See table in manual. Perhaps "programmatically" was the wrong word. Using .htaccess files it can be set per directory/site. http://www.php.net/manual/en/security.registerglobals.php (read to the BOTTOM of the page). -Craig &g

RE: [PHP] Re: Problems connecting to a MySQL database

2002-12-12 Thread Craig Thomas
use mysql_pconnect() if the mysql.allow_persistent directive is enabled. -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
>>The problem is I have to reset the SQL result array on each for >>loop. How do >>you do that? $myNewArrayFullofSqlResultsThatICanLoopOverAsManyTimesAsIWant = mysql_query($sql); -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP + MySQL looping question

2002-12-12 Thread Craig Thomas
Set the new array before your for loops, then loop over the array. -Craig >>-Original Message- >>From: Mark McCulligh [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, December 12, 2002 4:56 PM >>To: [EMAIL PROTECTED] >>Subject: Re: [PHP] PHP + MySQL looping qu

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
36 while($row = mysql_fetch_row($mysql_result)) Anyway, where do you define $row? HTH -Craig >>-Original Message- >>From: GWAD Mailinglist [mailto:[EMAIL PROTECTED]] >>Sent: Thursday, December 12, 2002 6:01 PM >>To: [EMAIL PROTECTED] >>Subject: [PHP] MyS

RE: [PHP] MySQL error

2002-12-12 Thread Craig Thomas
>>>>--> line 36 while($row = mysql_fetch_row($mysql_result)) >> >>Anyway, where do you define $row? >> >>HTH >> >>-Craig DOH! it's been a long one... -Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get the mail sending stuff to work on Win2k?

2003-01-05 Thread Rad Craig
ws up in the event logs. One more question, when I make a change to that ini file, do I have to reboot the machine or just restart IIS? Rad Craig Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

FW: [PHP] How to get the mail sending stuff to work on Win2k?

2003-01-05 Thread Rad Craig
ead to see if you see anything. If its IIS SMTP server I > beleive they are stored in c:\winnt\system32\Logfiles\\blah.log. > > Also to reload the php settings you just have to restart IIS. > > Hope this helps > Andrew > - Original Message - > From: "Rad Cr

RE: [PHP] How to get the mail sending stuff to work on Win2k?

2003-01-05 Thread Rad Craig
I just turned PHP authentication off and it didn't make any difference, still didn't receive any email from PHP. Rad... > -Original Message- > From: Rad Craig [mailto:[EMAIL PROTECTED]] > Sent: Sunday, January 05, 2003 6:37 PM > To: PHP Mailing List > Subject:

[PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
as built-in support for MySQL. Can someone PLEASE help. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
ry 06, 2003 9:20 AM > To: '[EMAIL PROTECTED]'; PHP Mailing List > Subject: RE: [PHP] mail() not working on Win2k > > > Do you have this line in your php.ini file? > > SMTP =;for > win32 only > > -Original Message-

[PHP] include directory?

2003-01-06 Thread Rad Craig
Where should this point to? Mine points to c:\php4\pear and I dont' have a pear directory under \php4. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
Any ideas? ==== Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail() not working on Win2k

2003-01-06 Thread Rad Craig
10:20 AM > To: [EMAIL PROTECTED] > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] mail() not working on Win2k > > > Hello, > > "Rad Craig" <[EMAIL PROTECTED]> wrote: > > yes, I've tried: > > > > SMTP = localhost > > SMTP = 127.0.0.

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
I run IIS5, but yes, I restart it each time I make a change. > -Original Message- > From: Mat Harris [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:26 AM > To: Rad Craig > Cc: PHP Mailing List > Subject: Re: [PHP] php.ini - changes aren't taking? >

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
t; > On Monday 06 January 2003 17:26, Rad Craig wrote: > > I have been trying to get my email working. I have made some changes in > > the php.ini file in the Windoze directory, but when I run phpinfo() the > > changes I make aren't changing on what it prints out. &g

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
: [PHP] php.ini - changes aren't taking? > > > On Tuesday 07 January 2003 00:26, Rad Craig wrote: > > I have been trying to get my email working. I have made some changes in > > the php.ini file in the Windoze directory, but when I run phpinfo() the > > changes I make a

RE: [PHP] php.ini - changes aren't taking?

2003-01-06 Thread Rad Craig
> -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 10:55 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] php.ini - changes aren't taking? > > > On Tuesday 07 January 2003 00:43, Rad Craig wrote: > >

RE: [PHP] Re: mail() not working on Win2k

2003-01-06 Thread Rad Craig
TECTED] > Subject: [PHP] Re: mail() not working on Win2k > > > Hello, > > On 01/06/2003 01:21 PM, Rad Craig wrote: > > I'm running under Win2k, new install of PHP(last week), I have > been trying > > to test the mail() function, but it doesn't seem to work.

[PHP] test_smtp.php

2003-01-07 Thread Rad Craig
such a PITA, but I REALLY need to get this thing working. Thanks in advance. Rad Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: howto set variablevalue with link?

2003-08-01 Thread Craig Roberts
Yeah - then access the variable in page.php - $_GET['lang'] == "en"; You could then store the language variable in a cookie, session or just pass it from page to page by calling each page with "page.php?lang=xx". Craig Roberts "Kalle Saarinen" <[EMA

[PHP] Re: COUNT(*)

2003-08-01 Thread Craig Roberts
use mysql_fetch_rows(); $result="SELECT COUNT(*) FROM pet"; $sql=mysql_query($result); $number_of_rows = mysql_fetch_rows($sql); while ($row=mysql_fetch_array($sql)){ $pet_name=$row['pet_name']; echo ..; } Craig Roberts "Yury B ." <[EMAIL PROTECTED]> wr

[PHP] Re: reading variables in other script files

2003-08-01 Thread Craig Roberts
inc.php file. Messy: Open file1.php from file2.php and read the variable out of it... ***MESSY, SLOW AND DIRTY*** Craig Roberts "Kalle Saarinen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello > > I was just wondering how can I get value of a varia

Re: [PHP] connecting access (*.mdb) database with PHP

2003-08-02 Thread Craig Roberts
Have a look for MyODBC. I've got Access talking to SQL easily, dont know if it can be done the other way round. Craig Roberts "Skate" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > > how can I connect access database(*.mdb) with php? what is

[PHP] Re: LDAP_connect()

2003-08-02 Thread Craig Roberts
Have you enabled the module in php.ini? Uncomment the line extension=php_ldap.dll in php.ini (windows..) I think LDAP support needs to be complied in on Linux but I've never used it so cant say. Craig Roberts "Ron Allen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL P

[PHP] Re: subtracting dates...

2003-08-02 Thread Craig Roberts
arted typing craig :) "John Ryan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > yeah, i was thinking that before i decided to post to the newsgroup. i > thought there was some simple way of doing it and id be wasting my time. > obviosuly not > > > "

[PHP] Re: subtracting dates...

2003-08-02 Thread Craig Roberts
Try something along the lines of if($current_MM < $MM) { $age = $calculatedage - 1; } you'll also need to do something like this with the day of the month if the user's bday is in the current month. at least... i think that works out :$ Craig Roberts "John Ryan" &l

RE: [PHP] Sorting Country List

2003-06-24 Thread Craig Avnit
he country table I use stores the Country Code and then the Country Name, can send the SQL for that if you need it. Craig > -Original Message- > From: Ralph [mailto:[EMAIL PROTECTED] > Sent: 25 June 2003 06:43 > To: PHP General Mailing List > Subject: [PHP] Sorting Co

RE: [PHP] Credit Card Validation With Expiration Date

2002-07-30 Thread Craig Vincent
algorithm attached to it...as long as it is past the present date there's no way to consider it invalid without cross-referencing against a database of active cards. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help needed about queries with MySQL, thanks.

2002-08-18 Thread Craig Vincent
nID = '$sessionID' Although if $sessionID contains an integer (which I assume is would) the quotes aren't needed, you never know. Some OSes are quirky. Also you may want to add an echo mysql_error(); line after your initial mysql_query to see if perhaps there's a problem

[PHP] Re: checkbox question

2002-09-09 Thread Craig Donnelly
int_r($_POST[interesting_area]); echo ""; ?> >From here it depends on what you want to do with the data.. You can loop through the array, using for(), foreach() or while(), or alternatively write a function to manipulate the data. Hope that helps, Craig "Alex Shi&

[PHP] Re: select box

2002-09-09 Thread Craig Donnelly
Can you be a bit more clearer with your question? "Meltem Demirkus" <[EMAIL PROTECTED]> wrote in message 011c01c257f0$c4499780$5583@hiborya">news:011c01c257f0$c4499780$5583@hiborya... > Hi, > > Can I put the "selected" option of select box later by using php? > > thanks > > -- PHP

[PHP] Re: checkbox question

2002-09-10 Thread Craig Donnelly
this: b.php == "; print_r($foo); // Look whats in the array echo ""; ?> == Best of luck, Craig "B.C. Lance" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">ne

RE: [PHP] Using HTTP Referer

2002-09-11 Thread Craig Vincent
pass referring URLs at all, and some browsers (such as AOL) do not pass referring URLs if the page now being access was opened up in a new window. You may want to prepare for the potential of not having a referring url be passed occasionally as well. Craig -- PHP General Mailing List (http://w

[PHP] Re: Sending Attachements through php email form

2002-09-12 Thread Craig Donnelly
Edit this to what you need: http://www.evilwalrus.com/viewcode.php?codeEx=546 Regards, "Heidi Belal" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > I was wondering if anybody could tell me the best way and how to code sending an attachement with an

[PHP] Re: confirm box

2002-10-09 Thread Craig Donnelly
On your submit button put the following: Hope that helps, Craig "Davy Obdam" <[EMAIL PROTECTED]> wrote in message 001a01c26f9e$a1c78a80$960a@davy">news:001a01c26f9e$a1c78a80$960a@davy... > Hi people, > > Maybe a bit off-topic, but i thought le

[PHP] echo w/ here document

2002-11-11 Thread Craig Buxton
er, but I can't find where I've gone wrong. Any help would be greatly appreciated. Craig Buxton Gravity Pilot Productions [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Here Document on Mac OS X

2002-11-12 Thread Craig Buxton
I have been trying to include an echo statement incorporating a here document on pages being served by my Mac OS X (v10.1.5) and Apache (v1.3) When I try to browse test.php, which contains... echo<< hello...hello... ENDOFECHO; ?> I get a parse error. When I upload it to my ISP it works as e

[PHP] re: echo w/ here document

2002-11-12 Thread Craig Buxton
I'm still having a problem with including a here document. Trying this code: echo << hello... hello... hello... hello... ENDOFECHO; ?> I get a parse error on line 7. Please help. I have a major project that has ground to a halt. Craig Buxton Gravity Pilot Productions [E

[PHP] Re: Swear word substitution

2002-11-19 Thread Craig Donnelly
http://www.evilwalrus.com/viewcode/560.php "Cj" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I'm posting this again as i got a mail saying > > Trend SMEX Content Filter has detected sensitive content. > > Place = [EMAIL PROTECTED]; ; > Sender = CJ > Subject =

[PHP] Re: Setting Cookies

2002-06-10 Thread Craig Donnelly
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.cooki es Use Superglobals...you will see what I mean. Also, Apache 2.0 is not recommended as of yet for PHP commercial development http://www.apacheweek.com/issues/02-06-07 Regards, Craig "Scott 'Intense!&

[PHP] Re: SMS with PHP

2002-06-11 Thread Craig Donnelly
You need to have an SMS gateway..Have a look on hotscripts.com here: http://www.hotscripts.com/search/?query=sms&category=php Regards, Craig "Alexandra Aguiar" <[EMAIL PROTECTED]> wrote in message 025f01c210a6$d1657ce0$[EMAIL PROTECTED]">news:025f01c210a6$d1657ce

[PHP] newbie on security

2002-06-24 Thread Craig Williams
Will PHP ever support code protection ? Something to encrypt the php file so when customers get copies they can't tamper with the code ;-) I know Zend have a solution but its too bloody expensive and must be supported by the hosting isp. Craig

RE: [PHP] Whats wrong with my code?

2003-09-16 Thread Craig Lonsbury
no semicolon after "include ($include)" hope that helps, Craig -Original Message- From: Stevie D Peele [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 3:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Whats wrong with my code? Can someone spot what Is wrong wi

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
off the top of my head: SELECT AVG(age), SUM(salTotal) FROM blah WHERE section = 3 i'm not sure if you can use the 2 functions in the same query, you might have to break it into 2 queries. Craig -Original Message- From: Ryan A [mailto:[EMAIL PROTECTED] Sent: Wednesday, Septemb

RE: [PHP] Feeling a bit brain dead, please help in maths: averages

2003-09-17 Thread Craig Lonsbury
$salaryAvg = $ageSum / $rowCount; > > > > off the top of my head: > > > > SELECT AVG(age), SUM(salTotal) > > FROM blah > > WHERE section = 3 > > > > i'm not sure if you can use the 2 functions in the same query, > > you might have to break it int

RE: [PHP] Flash Chat

2003-09-18 Thread Craig Lonsbury
> > -Dan not a chat app, but www.chefs-hat.com has an all flash front-end, and php doing all of the backend db work. it is pretty straightforward to get flash and php working together. have fun, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Help with treeview

2003-10-02 Thread Craig Lonsbury
This should get you started... http://www.sitepoint.com/article/1105/1 it is a great article assuming that you will be using a db to store your data. hth, Craig -Original Message- From: Stephen [mailto:[EMAIL PROTECTED] Sent: October 1, 2003 11:19 PM To: [EMAIL PROTECTED] Subject

[PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
13 to 350 pix in one go before stoping, and it takes 3 or 4 tries to get it restarted. I have set_time_limit(0); in the code, so it isn't timing out. I can't even think what else it could be, so any help is greatly appreciated. thanks in advance, Craig if ($HTTP_GET_VARS['

RE: [PHP] why does this script mysteriously die?

2003-10-03 Thread Craig Lonsbury
it's not a time limit or safe mode issue, the script is currently running, and has been for about 10 minutes. it's not a fast script =( Craig >Is safe mode on? > >Craig Lonsbury wrote: >> Hi All, >> I have a script that takes a directory of user uploaded f

RE: [PHP] Credit Card Validation

2003-10-08 Thread Craig Lonsbury
back here, it is coming up soon for me =) hth, Craig -Original Message- From: Nathan Taylor [mailto:[EMAIL PROTECTED] Sent: October 8, 2003 2:04 PM To: php-general Subject: [PHP] Credit Card Validation Hey guys (and gals), I am sure this has been asked many times before, but I couldn&#

[PHP] nested require_once

2003-10-16 Thread Craig Lonsbury
e exactly what the whole 'once' part is about, but better safe than sorry. thank you, Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How can i print out the files in a directory?

2003-10-17 Thread Craig Lonsbury
; && $file != "..") { $filesArr[] = trim($file); } } closedir($handle); } return $filesArr; } hth, Craig -Original Message- From: Bas [mailto:[EMAIL PROTECTED] Sent: October 17, 2003 6:42 AM To: [EMAIL PROTECTED] Subject: [PHP] How

RE: [PHP] dictionary

2003-11-05 Thread Craig Lonsbury
are you using windows or *nix? There is a good dictionary (I think it is called dict) built into most *nix distros,and have yet to find a good dictionary for windows. maybe someone else knows a good one =) Craig > -Original Message- > From: pete M [mailto:[EMAIL PROTECTED]

RE: [PHP] Re: High bandwidth application tips

2003-11-07 Thread Craig Lonsbury
sent, maintains code readablity, and doesn't adversely affect script execution time. Craig > -Original Message- > From: felix zaslavskiy [mailto:[EMAIL PROTECTED] > Sent: November 5, 2003 8:35 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Re: High bandwidth application tips

RE: [PHP]{so far OT it boggles} BTML 2.0 released!!!

2003-11-07 Thread Craig Lonsbury
t for topics such as these! > I couldn't agree more. Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Conditional code execution

2004-01-26 Thread Craig Jackson
capability? Thanks Craig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] hosting "closed" web application for multiple users

2001-05-19 Thread Craig Vincent
ional features but I would consider it well worth it to a company rather than spending countless tech hours and security testing to prevent the source from being viewed. http://www.zend.com Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [

RE: [PHP] mail() problem

2001-05-19 Thread Craig Vincent
000 - 1500 individual emails per minute with minimal resources consumed on the system so a solution of this nature more than likely will work out in your favor. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] Problem using unpack

2001-05-20 Thread Craig Vincent
roblem would be much appreciated =) I've been plagued with this problem for a few days now and I'm having no luck =/ Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: [PHP] select the max value

2001-05-21 Thread Craig Vincent
SELECT MAX(scorevalue) FROM score Will display the maximum value of your scorevalue column. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

RE: [PHP] function to complete strings with white spaces on the left

2001-05-21 Thread Craig Vincent
untested! The reason for the if statement is that str_repeat will produce an error if 17-strlen($word) <= 0 and that'll break your scriptof course you could remove the if state if you're positive the # of characters in $word never exceeds 16. Sincerely, Craig Vincent --

Re: [PHP] Variables Limit

2002-01-26 Thread Craig Vincent
s. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Re: Tagi It!

2002-04-19 Thread Craig Donnelly
Have a look here... http://www.planet-source-code.com/vb/scripts/ShowCode.asp?lngWId=8&txtCodeId =585 Craig "Jason Whitaker" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I am looking for a pre-wrote script thats does the sa

RE: [PHP] some problems about gd in php

2002-04-19 Thread Craig Vincent
sr/local/mysql > --with-apache=../apache_1.3.24 --enable-track-vars > --with-gd=../gd-1.8.4 --with-png-dir=../libpng --with-zlib-dir=../zlib What version of PHP are you using? Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] problem when my php forum tries to send a mail

2002-04-19 Thread Craig Vincent
forums here for phpBB. You may want to search here to see if there have been others with a similar problem. My guess would be that you don't have an smtp setup on win 98. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] creating table help

2002-04-19 Thread Craig Vincent
elping to resolve your issues. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php permissions

2002-04-19 Thread Craig Vincent
io if your admin has done his job properly is one could manage to erase all the other php uploaded files if they found an exploit. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] $PHP_AUTH_USER

2002-04-20 Thread Craig Vincent
#x27;t find my notes so I can't give you an exact answerhowever if I remember correctly by sending a 401 error header to the user when they log out it will force the browser to re-request authentication Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] grab a number

2002-04-20 Thread Craig Westerman
d to grab the 19/Apr/02 count of 181756. But the date will change daily. So it would need to always grab last number from second to last line. Any suggestions? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] adding numbers in a text file

2002-04-21 Thread Craig Westerman
x27;m doing this a counter script will be reading this file, but NOT writing to it. Will the file need to be locked while adding $newnumber to it? Thanks Craig ><> [EMAIL PROTECTED]

[PHP] adding numbers to a file

2002-04-22 Thread Craig Westerman
to do this once a day to correct a poor count. Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
I have a string that ends in a comma. What is best method to remove the comma? Craig ><> [EMAIL PROTECTED]

RE: [PHP] remove last character in a string

2002-04-22 Thread Craig Westerman
Wouldn't it be better to check to see if charicater is indeed a comma before removing it? I was guessing eregi_replace would be the way to go. Am I thinking wrong? Craig ><> [EMAIL PROTECTED] First, you'll need to get the length of the str with the str_len() function.

[PHP] Session Registering

2002-04-25 Thread Craig Donnelly
Im using session in my form, there are 6 pages to the form, It all works fine, until You work your way back through the form, to ammend the filled in details. e.g - If I go to page 1, and fill out my name, and post to the next page, heres the code Im using: PHP:

[PHP] Re: Sessions not staying a session...

2002-04-25 Thread Craig Donnelly
You should use session_start(); on every page that u want to pass session information.. Craig "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message 00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT">news:00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT... > I am storing session informati

[PHP] Removing empty elements from an array

2002-04-28 Thread Craig Westerman
] => 23/Mar/02 [12] => [13] => 24/Mar/02 [14] => 25/Mar/02 [15] =>) Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] odd behavior

2002-04-30 Thread Craig Westerman
number 30. Is $file somehow retaining value of 30 and not getting new value of 45 when script runs second time? What is it called when this happens? Thanks Craig ><> [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Checkbox Initial Value based on record in db

2002-05-01 Thread Craig Vincent
rkto have a checkbox autochecked the HTML must be similar to So a sample coding might be > Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Editors

2002-05-01 Thread Craig Vincent
now I'm hooked on TextPad. Let us know if you have any > experience using Dreamweaver MX. I don't know about thatI've used Dreamweaver Ultradev for years and it worked great for my PHP/HTML coding. I haven't tried MX but am curious as to how it may work. S

RE: [PHP] Query > Close

2002-05-01 Thread Craig Vincent
7;ll sleep better at night using mysql_close() =) Really the question to ask is why shouldn't you use mysql_close()? Overall it is better for your system and relieves you of worrying about any potential memory hogging or MySQL connection rejections. Sincerely, Craig Vincent -- PHP General

RE: [PHP] getting a function name of the calling function

2002-05-01 Thread Craig Vincent
pass the name of a parent function to a child function. However you could always pass the parent function's name to the child function as a normal parameter. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
are created so say you create the cookie on page A, until the user refreshes page A or goes to page B the cookie won't actually be in effect. A snippet of your code would be helpful as well Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
MOTE_USER to equal the apache authentication username easiest method (for me anyways) is: $REMOTE_USER = getenv('REMOTE_USER'); Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Session Initially Does Work

2002-05-01 Thread Craig Vincent
n name goesyou actually don't need to specify oneby default the session name is PHPSESSION and really unless you have a real reason for using a different session name there is no real benefit to specifying another session name (afaik). Sincerely, Craig Vincent -- PHP General Mailing List

RE: [PHP] Kinda HTML and PHP question....

2002-05-01 Thread Craig Vincent
t; tables get wight bigger..they are set to wight=100% . thanks for > any help or any suggestion what should i do. http://www.php.net/manual/en/function.wordwrap.php This I think is exactly what you're looking for. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php

RE: [PHP] variables over 2 pages w/ a table.

2002-05-01 Thread Craig Vincent
ile on your system. There's an exact example of this on http://www.php.net/manual/en/function.include.php example 11-5. Basically you need the include to be an http link...not a local link ex. include("http://www.foobar.com/index.php?lext=php?start=8";); Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Opinions Wanted

2002-05-02 Thread Craig Vincent
it if a person refreshes the page or returns to that page using the forward/back navigation buttons on their browser. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Stupid question

2002-05-02 Thread Craig Vincent
ints use the round() function. However if you don't want to round and instead just want to truncate the number, the number_format() function would be what you need. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] arithimetic

2002-05-02 Thread Craig Vincent
please? It may help shed some light on your situation. Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Linux and permissions

2002-05-06 Thread Craig Vincent
php directory *and* copy the files. It means that DirectoryIndexing is enabled in apache =) you can either disable that (recommended) or as a quick fix put a blank index.htm (or .html file) in that directory so when someone calls up just the directory they get that blank page. Sincerely, Craig Vincent --

[PHP] file_exists

2002-05-06 Thread Craig Westerman
What am I doing wrong? I get parse error between first echo statement and else. Thanks Craig ><> [EMAIL PROTECTED] "; else echo ""; } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file_exists

2002-05-06 Thread Craig Westerman
I found my problem. >From manual: "file_exists() will not work on remote files; the file to be examined must be accessible via the server's filesystem. " File is on another server. Is there a way to check if file exists on another server? Craig ><> [EMAIL PROTECT

RE: [PHP] Self Destruct code

2002-05-07 Thread Craig Vincent
gly urge you to get a deposit for any projects you're going to work on. Such a retainer is perfectly acceptable in a circumstance like thisand it protects you from companies deciding to terminate a project mid-development (or if they don't pay you, you at least get somethin

RE: [PHP] PHP and mySQL

2002-05-14 Thread Craig Vincent
uspect you meant quantity=$quantity (again if it's not an integer you need single quotesheck put single quotes around it anyways...it doesn't hurt) $sql = "UPDATE Book2 SET stock ='$stock-quantity' WHERE booktitle='$booktitle' AND quantity='$quantity'&

RE: [PHP] PHP and mySQL

2002-05-14 Thread Craig Vincent
, just the MySQL server trying to execute the query). Sincerely, Craig Vincent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   >