Re: [PHP] reading last -n lines array is emty

2003-03-06 Thread 1LT John W. Holmes
> Holy crap looks like I was wrong! I just tested it and sure enough '|' does > return an error.. how do you like that. So use split("\|", $file[$i]). For a regular expression "|" means OR. You could use explode("|",$file[$i]) for the sam effect. Benchmark split() vs. explode() and see which is

Re: [PHP] Uploading file problem

2003-03-06 Thread 1LT John W. Holmes
> Well, I have a statement that says: > > if ([EMAIL PROTECTED]($photo, $long_path . "speakers/" . $photo_name)) { > echo an error > }else{ > proceed with renaming the file > } > > The error that is echoed after the copy is the one that pops up. So, it > could be some other problem,

Re: [PHP] Need help with ?> vs. php?>

2003-03-05 Thread 1LT John W. Holmes
> I've installed the Apache v2.0.44 with PHP4.3.1., under Windows. > > My pages starting and ending with "" don't work anymore. I would > have to change them to "". php?> is not valid. It's or > Do you know if there is a way for keeping "http://www.php.net/) To unsubscribe, visit: http://www.

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread 1LT John W. Holmes
> >What's your actual code? How are you looking for the match in $matches? > >If something was matched, then it'll be there. > > The full cod in the loop is. > > $cnt = 0; > while(!feof($fp)) > { > // Get body > $line_in = fgets($fp,4096); > $cnt++; > // looking for the other

Re: [PHP] TO Bryan LipscyRe: [PHP] i got a problem

2003-03-05 Thread 1LT John W. Holmes
"He" probably needs register_globals turned ON in your php.ini file. ---John Holmes... - Original Message - From: "Luis A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 11:49 PM Subject: [PHP] TO Bryan LipscyRe: [PHP] i got a problem HE show me this INSERT IN

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread 1LT John W. Holmes
> Thanks, John- that works brilliantly. > Just wandering how I can include a file in a different > directory so that it still remembers variables. > > for example what if I want to include the file > www.example.com/two/example.php in the file: > www.example.com/one/example.php > ? > would include(

Re: [PHP] preg_match fails to fill $matches

2003-03-05 Thread 1LT John W. Holmes
> $ts = '/(' . $trigger_string .')/is'; > echo "trigger_string is $ts "; > $matches = array(); > $hit = array(); > > In the loop > > $hit[] = preg_match ($ts, $line_in,$matches); > > Now the $hit array fills up correctly, if the trigger string is on the > line just read in, putting 1 or 0 in $h

Re: [PHP] i got a problem

2003-03-05 Thread 1LT John W. Holmes
Try $result = mysql_query($sql) or die(mysql_error()); to see what the problem is. ---John Holmes... - Original Message - From: "Luis A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 9:29 PM Subject: [PHP] i got a problem hi every one here o got one proble

Re: [PHP] Getting error REG_EMPTY

2003-03-05 Thread 1LT John W. Holmes
> Way does this give me this error It's a warning, not an error. > Warning: REG_EMPTY: in emailusers.php on line 52 > > > $lines = file("data/members.txt"); > foreach($lines as $line){ > list ($logged_email,$logged_title,$logged_first_name,$logged_last_name) = split("|", $line); > if ($logged_ema

Re: [PHP] Re: php forgetting variables very easily

2003-03-05 Thread 1LT John W. Holmes
> I am still having problems with variables not being > remembered by included files. I've tried using the > global command and it still doesn't work. I've cut > down my two pages to contain the main stuff so you can > see what's happening. Basically main.php includes the > file new.php and I wa

Re: [PHP] inserting date() into MySQL

2003-03-04 Thread 1LT John W. Holmes
> If I am going to use date('U') to insert an epoch timestamp into a > mysql table, what is the appropriate field type to use? Integer. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] strange problem

2003-03-04 Thread 1LT John W. Holmes
Look for anything outside of the or tags in the rest of your table. That's generally what causes things like this. ---John Holmes... - Original Message - From: "Denis L. Menezes" <[EMAIL PROTECTED]> To: "PHP general list" <[EMAIL PROTECTED]> Sent: Tuesday, March 04, 2003 10:40 AM Subjec

Re: [PHP] ICQ # validation

2003-03-03 Thread 1LT John W. Holmes
Use single quotes around your pattern. if(ereg('^[0-9]{7,9}$',... With the double quotes, PHP is probably seeing the $ and looking for a variable, even though it's at the end of the string. ---John Holmes... - Original Message - From: "Liam Gibbs" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [PHP] Keeping existing data in textarea's

2003-03-03 Thread 1LT John W. Holmes
> Hi, I have a developed a simple Helpdesk for our small company. When users > log calls they get an alert message warning them that they must fill in all > the fields if they have missed a field. At the moment if they happen to > forget a field, they receive the alert message, but then have to st

Re: [PHP] changing colors on buttons

2003-03-03 Thread 1LT John W. Holmes
> is there a way you can change the text color on buttons as well as the > background color for a button? i have a button that looks like: > onclick="window.location='edit.php';" > onkeypress="window.location='edit.php'"> > so is there a way to change text color and background color for that? or i

Re: [PHP] PHP on IIS session problems

2003-03-03 Thread 1LT John W. Holmes
You need to restart IIS. c:\> net stop iisadmin c:\> net start w3svc or use the control panel. ---John Holmes... - Original Message - From: "Victor Stan" <[EMAIL PROTECTED]> To: "1LT John W. Holmes" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> S

Re: [PHP] PHP & Oracle

2003-03-03 Thread 1LT John W. Holmes
> i have one big Oracle database, 20GB. Is it better to comunicate > directly to Oracle with PHP, or to export data to MySQL. How secure is > PHP & Oracle, can they communicate well? Why would you send it to MySQL? Just get PHP and Oracle talking and go with that. ---John Holmes... -- PHP Gene

Re: [PHP] Automatic Table Creation

2003-03-03 Thread 1LT John W. Holmes
The easiest way would be nested tables. Your three "columns" would each have a nested table within them where you loop through 1/3 of the results. Some simple math functions and the result of mysql_num_results() should tell you how many to loop through in each table.

Re: [PHP] File array mailing list pharse error

2003-03-03 Thread 1LT John W. Holmes
> I worked on it so long now I have to come back to you > it gives me an Parse error: > Parse error: parse error, expecting `'('' in members_read_send.php on line > 5 > > Iam so sorry to bug u so much but can u help me finish here please? > > $lines = file(data/default2.users); > for each ($lines

Re: [PHP] PHP on IIS session problems

2003-03-03 Thread 1LT John W. Holmes
> I get these errors from a simple "session_start();" script. > > Warning: session_start() [function.session-start]: > open(/tmp\sess_f4aa3ef3c537bb6327d5e7b991e91be7, O_RDWR) failed: No such > file or directory (2) in c:\inetpub\wwwroot\picoblog\admin.php on line 2 Do you have a /tmp folder on yo

Re: [PHP] Any function that gives the coordinates of the cursor?

2003-02-28 Thread 1LT John W. Holmes
> Are there any functions in PHP which can give us the coordinates of the cursor when we click the mouse? > Thanks for the replys. If you use an image as your submit for your form, you can. When that image is clicked on, you'll have $_POST['image_x'] and $_POST['image_y'] as the coordinates wh

Re: [PHP] Little help please

2003-02-27 Thread 1LT John W. Holmes
> I'm looking for a webbased interface that will allow me to managae mysql > databases. However, phpmyadmin has been ruled out due to the fact it > requires the username and password to be stored in the config file No it doesn't. > and that it doesn't have any security to protect the average joe

Re: [PHP] Reading files

2003-02-27 Thread 1LT John W. Holmes
>while (!feof ($handle)) ; Take that semi-colon away. You're running this loop continously. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] File upload problem - permission denied

2003-02-27 Thread 1LT John W. Holmes
Make sure whatever user the _web server_ is running as has access to write to that directory. With IIS, this is the IUSR_ account. > $AppImageDir = Web/Images"; You've got a error in that line, also, hopefully it's just a typo, though. ---John Holmes... - Original Message - From: "Nikl

Re: [PHP] classes and functions in include files

2003-02-27 Thread 1LT John W. Holmes
> just a fast question here.. and the lotic probably isnt to bright on my part > and i think i know the answer to this question too but just to make sure... > if you can include variables in an include file and use them outside that > file (in the file that includes that file that is) then can you

Re: [PHP] Escape Characters

2003-02-27 Thread 1LT John W. Holmes
> I'm running a script that reads the contents of images and stores them > in a MySQL database. The problem I'm running into is that my server is > seeing "\" as escape characters and stripping them out. I assume this > has something to do with "Magic Quotes" or something of that nature but > I'm

Re: [PHP] Deleting a page after viewing it

2003-02-26 Thread 1LT John W. Holmes
> I have a confirmation of "membership" page a user would arrive at after > clicking on a URL in an email. After they click on a link in this page I > want to delete the page itself so it will only exist for this one use. > The URL in the page does go to another "Welcome" page which is on > ano

Re: [PHP] date, "first of next month"?

2003-02-26 Thread 1LT John W. Holmes
> Does anyone know a way to do this easily? I have a script that pretty much > says "this is due on the first of next month" but I would like it to > actually use the correct date. You would think strtotime("first of next month") would work, but it doesn't. This does: $t = mktime(0,0,0,date('m')+

Re: [PHP] Too many connections - MySQL

2003-02-26 Thread 1LT John W. Holmes
There is a setting in MySQL for the max_connections. You just need to increase this. If you're using persistent connections, do some research on them and make sure you really need to be using them. They will eat up your connections and cause you to have this error more quickly. ---John Holmes...

Re: [PHP] niklasRe: [PHP] mysql trouble

2003-02-26 Thread 1LT John W. Holmes
> On Thursday 27 February 2003 00:08, 1LT John W. Holmes wrote: > > Dude... honestly, lay off the coffee and learn to type. > > Shouldn't that be cigars? I guess so. He can send the cigars to me!! :) John -- PHP General Mailing List (http://www.php.net/) To unsu

Re: [PHP] niklasRe: [PHP] mysql trouble

2003-02-26 Thread 1LT John W. Holmes
Dude... honestly, lay off the coffee and learn to type. ---John Holmes... - Original Message - From: "Luis A" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 26, 2003 9:24 AM Subject: Re: [PHP] niklasRe: [PHP] mysql trouble oh IN GONNA TRY NOW thanks i scream a

Re: [PHP] Out of Range

2003-02-25 Thread 1LT John W. Holmes
Probably means that only one row was returned from your query, so 2 is out of range. ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 5:11 PM Subject: [PHP] Out of Range here is my code $Query = "SELEC

Re: [PHP] simple problem about authentication

2003-02-25 Thread 1LT John W. Holmes
> I'm trying to set up a password section on my website. But I don't want > a window popping up asking for a username and password. I'd rather like > to have a form that submits the data. I did that and it works fine, but > the browser seems to not save the username and password, because if i > cli

Re: [PHP] Empty Query

2003-02-25 Thread 1LT John W. Holmes
>From what I can tell, if $img is an empty string, and $file_dir is not a directory, $sql will not be assigned a value. This could be what's causing your error when you try to run an empty query. ---John Holmes... - Original Message - From: "Richard Whitney" <[EMAIL PROTECTED]> To: <[EMAI

Re: [PHP] Javascript

2003-02-25 Thread 1LT John W. Holmes
Nothing to do with PHP at all but, Pretty sure you have to tack on the URL variables within the window.open() function. When you specify the name of the file to open, try putting the variable there. ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP] Output Numerical Month as String?

2003-02-25 Thread 1LT John W. Holmes
> http://www.zend.com/manual/function.date.php > --- CF High <[EMAIL PROTECTED]> wrote: > > Hey all. > > > > Easy question here (can't find the answer in php > > manual) > > > > In Cold Fusion I'm able to format a given numerical > > month value, say the > > third month, as #MonthAsString(3)# and i

Re: [PHP] line number

2003-02-25 Thread 1LT John W. Holmes
The constant __LINE__ works well. ---John Holmes... - Original Message - From: "Chandler, Jacob R" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 25, 2003 2:21 PM Subject: [PHP] line number What function can I use to find out the current line number? -- PHP Gene

Re: [PHP] general question ?

2003-02-24 Thread 1LT John W. Holmes
> http://kemu.ath.cx/intranet/login.phps > when I press submit everything is OK it works like I want it to work but > I'm not happy with the result I see in my url window > I see this > http://localhost/intranet/login.php?user=kemu&passwd=test&submit=login > I don't like it that you can know the p

Re: [PHP] Keep cariage returns

2003-02-24 Thread 1LT John W. Holmes
> Is it possible to maintain the carriage returns in a > database insert. When I input data from a textfield > with returns into the database, it is lost on a > subsequent select and print. They're still there, they don't disappear for no reason. HTML does not understand newlines, though, only e

Re: [PHP] PHP_SELF syntax

2003-02-24 Thread 1LT John W. Holmes
> What you might try is removing the single-quotes from around PHP_SELF. > > Before: $_SERVER['PHP_SELF'] > After: $_SERVER[PHP_SELF] > > Another note: as far as I can tell you do not need the braces ({}) to > enclose a variable within a double-quoted string. I may be wrong, but > nothing I've rea

Re: [PHP] What is wrong with this?

2003-02-24 Thread 1LT John W. Holmes
> > Put some quotes around the tag value for just in case the $aviao has a space > > in it: > > $drop_down_list .= "$aviao"; > > what about if $aviao contains a double quote? > what's the proper way to handle that case? > or, in other words, what's the most general way to solve this pr

Re: [PHP] Received: (from www@localhost) ???

2003-02-24 Thread 1LT John W. Holmes
> I am using sendmail and php and it works great... > > However, It always says this in the header of the email > > Received: (from [EMAIL PROTECTED]) > > > Is there a way I can change this to something less generic, more specific to > my server? Read the manual page on the mail() function along w

Re: [PHP] Creating my own super global variables

2003-02-24 Thread 1LT John W. Holmes
> Is there any way I can creat my very own super global variables? You can assign values directly to $_POST, $_COOKIE, etc arrays and reference them wherever you want later. It's just for the duration of the script, though. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Multiple Data Requests

2003-02-24 Thread 1LT John W. Holmes
> Hi guys, > > Wonder if you can help me with this. > > I have a "recording_global" table which has "recording_global_id" in and > "dj_global_id". > > I want to be able to sort the "recording_global" table alphabetically by > dj name which I need to find from the "dj_global_id" table referencing >

[PHP] Re: [PHP-DB] Checkboxes to gather rows to delete

2003-02-24 Thread 1LT John W. Holmes
them all in a string and add them to your DELETE query. ---John Holmes... > "1lt John W. Holmes" <[EMAIL PROTECTED]> a écrit dans le message de > news: [EMAIL PROTECTED] > > > I have a mysql database with a table using one column as a primary key. > > > (rowID)

Re: [PHP] dynamic list box

2003-02-24 Thread 1LT John W. Holmes
> I have an sql statement that pulls data into a dynamic list box, the problem > is, I have this list box twice on my form, since the query returns a lot of > rows, I do not want to have the query executed twice but I populate my list > box using the while loop so when it is time for the second lis

Re: [PHP] Cannot find php.ini

2003-02-21 Thread 1LT John W. Holmes
> I've taken over a redhat server with apache/php4.1. I need to enable > register_argc_argv but I can't find the php.ini file (I've searched the > entire system). > > Would creating a new php.ini file with only register_argc_argv line work? > Where's the default location for php.ini? Load up a pa

Re: [PHP] What do these errors mean?

2003-02-21 Thread 1LT John W. Holmes
> I was looking through php.ini and noticed that show_error was set to Off. I > turned it On, and now I see these errors on one of my pages: > Notice: Use of undefined constant option - assumed 'option' in > /usr/local/apache/htdocs/tyler/encodeDecode.php on line 37 > > Notice: Undefined index: opt

Re: [PHP] function to discover if value is already in array

2003-02-21 Thread 1LT John W. Holmes
> Here is an example array: > > > array( > array("1","2"), > array("2","3"), > array("3","1") > ) > > now suppose I get some form inputs with the value 1 and 1. I am trying to > find a way to figure out if the first coloumn is already in the table and > if so just add the

Re: [PHP] session expiration

2003-02-21 Thread 1LT John W. Holmes
> I'm using sessions for authentication in a content management system and > experiencing rare but occasional problems with the session apparently > expiring unexpectedly. I've checked the manual and I've reviewed the session > configuration on the commericial host I'm using. I don't see anything w

Re: [PHP] Php Oracle & Word object

2003-02-21 Thread 1LT John W. Holmes
SELECT it out, send Word headers with header() and echo your data. ---John Holmes... - Original Message - From: "M.ALPER KARASAHIN" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 8:53 AM Subject: [PHP] Php Oracle & Word object Hi, i want to display a bl

Re: Re[2]: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
> Thank you for answer, but I need application for personal small ads. > > I am looking for application which need to show categorized > personal small ads and needto allow on-line adding of > personal small ads (for everyone) and and > need to have some mechanism for ads administration. > > > I do

Re: [PHP] small ads system

2003-02-21 Thread 1LT John W. Holmes
> I need web application (PHP/MySQL) for small ads > (personal ads, that is advertisements to buy and > sell cars, houses etc). http://www.phpwizard.net/projects/phpAds/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] list "a", list "b" ...etc

2003-02-21 Thread 1LT John W. Holmes
> how can i sort names by first letter, like, show only names starting > with a, then b, c .. etc Where is the data? In an array? database? file? If it's a database, then you can just do SELECT * FROM table WHERE column LIKE 'a%' or SELECT * FROM table WHERE LEFT(column,1) = 'a' ---John Holmes

Re: [PHP] List folder contents with links?

2003-02-20 Thread 1LT John W. Holmes
> Is it possible to display the contents of a given folder, list them , and > make them links? Yes. ---John Holmes... PS: www.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting Article Into Multiple Pages

2003-02-20 Thread 1LT John W. Holmes
If you use the method, you could use: $part = explode("",$text); to break apart the essay. Then echo $part[0] for page 1, $part[1] for page 2, etc... I'm sure there are other ways. ---John Holmes... - Original Message - From: "Alan McCoy" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Se

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
> Thursday, February 20, 2003, 9:34:03 PM, you wrote: > Rec> Hi all, > > Rec> Have simple but annoying issue, I want to display a string within an > Rec> input field. This string contains ' & so when it's being display the, > Rec> anything after the ' is being left out. Here is the code I'm

Re: [PHP] Test

2003-02-20 Thread 1LT John W. Holmes
> This is a test message. I sent a real message last night and apparently > it didn't make it to the server. So this is not a real message? Do I exist? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] define("DOC_HOME_PATH", "what goes here")

2003-02-20 Thread 1LT John W. Holmes
> define ("DOC_HOME_PATH", "http://localhost/killerspin/web/store/";); > define ("IMG_HOME_PATH", "http://localhost/killerspin/web/images/";); > define ("CTL_HOME_PATH", "http://localhost/killerspin/web/control/";); > > Click Here > > > doesn't work. It should. The above code produces this when

Re: [PHP] Encrypted URL links?

2003-02-20 Thread 1LT John W. Holmes
> I have a site that sells software and wants to have downloadable purchases. > > Is there a way to encrypt a URL that will still work when clicked on, BUT > not show the customer where the file actually resides? Is it also possible > to have it expire after a given amount of time? Sure, just have

Re: [PHP] Display strings with single quotes

2003-02-20 Thread 1LT John W. Holmes
> On Thursday 20 February 2003 20:26, Ernest E Vogelsinger wrote: > > At 13:16 20.02.2003, Tom Rogers said: > > [snip] > > > > >Rec> Have simple but annoying issue, I want to display a string > > >within an > > >Rec> input field. This string contains

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
> > > $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > > > > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > > > > > How can I exactly match "1," in both strings using one regular expression? > > > (first "1" is the first element and second time in a random position)? > > > > if(preg_match('/(^|,)1(,|$)/',$st

Re: [PHP] Multi-User phpMyAdmin

2003-02-07 Thread 1LT John W. Holmes
IIRC, when you use the 'cookie' or 'http' method of authentication, it'll validate everything against the actual mysql.user database and only let them access what they have permissions to. In other words, you set up your users and permissions in MySQL. When they log into PHPMyAdmin, they're actuall

Re: [PHP] is_numeric fails and don't know why

2003-02-07 Thread 1LT John W. Holmes
Well, since is_numeric('.101972E+00') works on it's own, there must be something else coming with it from the file that makes it fail. Try to trim() each number before you test it. Maybe that'll help. ---John Holmes... - Original Message - From: "fmendezpalma" <[EMAIL PROTECTED]> To: <[EM

Re: [PHP] 3 tier web development

2003-02-07 Thread 1LT John W. Holmes
>> //Class to handle ALL operations an ANY database You may want to change that... it only does 2 operations and it only does them for two databases... ---John Holmes... - Original Message - From: "Daniel Masson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003

Re: [PHP] Strings and regular expression?

2003-02-07 Thread 1LT John W. Holmes
> $a1="1,8,98,244,9,243,2,6,36,3,111,"; > > $a2="8,98,244,9,243,2,1,6,36,3,111,"; > > How can I exactly match "1," in both strings using one regular expression? > (first "1" is the first element and second time in a random position)? if(preg_match('/(^|,)1(,|$)/',$str)) { echo "one is found"; } -

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread 1LT John W. Holmes
> Thanks for the answer; but there is nobody who can show me an example in > code??? You mean do the work for you? Do you want the PHP or Javascript solution? Only one can be posted on this list... The PHP one is simple. Assuming $_POST['num'] is the number from your drop down... for($x=0;$x<$_P

Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
> If you are using cookies the new window will pick it up. Have the original > page change a variable to say that it has loaded then when the new window > loads have it check that variable first. How do you tell a "new window" from a "new request" though? You can't. The cookies are all there, the

Re: [PHP] Avoiding several windows with the same session

2003-02-07 Thread 1LT John W. Holmes
> > I place > > > > session_start(); > > if (!session_is_registered('somevar')) > > { > > header('location: login.php'); > > exit(); > > } > > > > at the top of all my pages to prevent people to view pages before they log > > in. However, once thay have logged in succesfully, they can ctrl-

Re: [PHP] PhpBB2 Error

2003-02-07 Thread 1LT John W. Holmes
> I have been runing PHP BB2 successfully on my site for a couple of > months . Recently I got this error. > > phpBB : Critical Error > > Could not connect to the database > > > Can someone tell what this means..?? It means phpBB cannot connect to the database. ---John Holmes... PS: You'll want

Re: Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> empty doesnt work either... it still comes up as though something is in them > and excludes either nothing at all or includes everything...even the empty > vars..any reason for that ? Because you're jacking something up in your logic or code... show us how your trying to solve this perplexing di

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> > > how would you test for an empty (unused) variable from a form.. > > > i have a phone number split into 3 different vairiables and want to test > > to > > > see if they were used in the form before displaying either the phone > > number > > > itself or just leaving it out of the display... wh

Re: [PHP] empty variables from a form

2003-02-05 Thread 1LT John W. Holmes
> how would you test for an empty (unused) variable from a form.. > i have a phone number split into 3 different vairiables and want to test to > see if they were used in the form before displaying either the phone number > itself or just leaving it out of the display... what code would be good to

Re: [PHP] Sessions and Cookies

2003-02-05 Thread 1LT John W. Holmes
> I'm trying to use cookies in PHP4 (.whatever the latest release is). I want > to use them for validation (ensuring a user has logged in) but all I can find > is setcookie, which seems only to create the cookie. In trying to use PHP > sessions, I end up with odd errors. > > When I try to use ses

Re: [PHP] In Need of a PHP freelancer...

2003-02-04 Thread 1LT John W. Holmes
-Original Message- >>Greetings... I am in need of a freelancer to write an additional >>function to our company's extranet. Before I go and post a >>request to this list, I would like to know if there is >>a more appropriate place to post such a request, and still >>get quality folks wh

Re: [PHP] Access GAH

2003-02-04 Thread 1LT John W. Holmes
It probably depends on how you're creating your SQL statement... ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 2:56 PM Subject: [PHP] Access GAH Hello folks, I was wondering if anyone had anyluck w

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread 1LT John W. Holmes
>Something is still not right. Now I'm getting unexpected >T_CONSTANT_ENCAPSED_STRING when using: > >$inc_current_ad = WrapMySQLDatabaseResults("macasap", "update ads where >ad_id = ".$current_ad->Value("ad_id")." set >rotate=".$current_ad->Value("rotate")+1."", >"block=0","inc_current_ad"); The p

Re: [PHP] Is there a way to retrieve an entire source code from a php file?

2003-02-04 Thread 1LT John W. Holmes
No, you can only get the output of the PHP script, not it's source code. ---John Holmes... - Original Message - From: "The New Source" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 04, 2003 11:57 AM Subject: [PHP] Is there a way to retrieve an entire source code from

Re: [PHP] Is my syntax wrong?

2003-02-04 Thread 1LT John W. Holmes
>The following code is giving me a "parse error, unexpected T_STRING." > >$inc_current_ad = WrapMySQLDatabaseResults("macasap", "update ads where >ad_id = '.$current_ad->Value("ad_id").' set >rotate='.$current_ad->Value("rotate")+1.'", >"block=0","inc_current_ad"); > >It's supposed to increment the

Re: [PHP] Getting key of value added to array with []?

2003-02-04 Thread 1LT John W. Holmes
> Is there any way to get the key of an element added to an array with []? > I need to use this for a reference to it. The only idea I can think of > is to foreach through the array and use the last key looped through, but > that seems very dirty. If elements are only being added with [], then y

Re: [PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread 1LT John W. Holmes
> This hasn't come up too much yet in one of the databases on my site, but as > I get closer to starting a big project, I thought I'd get an idea of how the > rest of you handle this. > > How do you handle accented words and other problematic symbols on your > database-driven sites? If you need to

Re: [PHP] dealing with accents in your databases (or to entity or not to entity...)

2003-02-03 Thread 1LT John W. Holmes
> --- "Ian M. Evans" <[EMAIL PROTECTED]> wrote: > > How do you handle accented words and other problematic > > symbols on your database-driven sites? If you need to > > store one, do you store it as the actual character and > > display it with htmlentities, or do you store it as the > > html entity

Re: [PHP] Need to check whether a param exists!

2003-02-03 Thread 1LT John W. Holmes
if(isset($_REQUEST['page'])) { $pagename = $_REQUEST['page']; } else { $pagename = 'home'; } Should work... If not, let us know. Make sure your case match, too. ?page=hello and ?Page=hello are two different variables. ---John Holmes... - Original Message - From: "Brian Dunning" <[EMAIL P

Re: [PHP] escaping quotes in mail() message

2003-02-03 Thread 1LT John W. Holmes
> I'm having a problem escaping double quotes in email messages sent with > mail(). The message is built as a string and assigned to a variable and the > variable name is passed to the mail function. > > The double quotes appear correctly in a simple test like this: > $message = "This message uses

Re: [PHP] Html forms

2003-02-03 Thread 1LT John W. Holmes
> Parse error: parse error in C:\apache\htdocs\tsadbatest.php on line 148 > Its the line after the html ends Almost always means you forgot a closing brace somewhere. Count up your { and } and make sure they match. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Html forms

2003-02-03 Thread 1LT John W. Holmes
What is the error message you get? ---John Holmes... - Original Message - From: "Todd Barr" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, February 03, 2003 9:59 AM Subject: [PHP] Html forms I am having difficulty putting results into an form Once the query runs, I have thi

Re: [PHP] How to compare 2 strings

2003-02-03 Thread 1LT John W. Holmes
> How to compare 2 strings in PHP > I hawe 2 array where I have only string values some values in both arrays > are same but if command don't send me a good result. > e.g > > foreach ($array1 as $a1) { > foreach($array2 as $a2){ >if ($a1 == $a2) echo "good"; //never system send me a good re

Re: [PHP] Delete Related Table

2003-02-03 Thread 1LT John W. Holmes
> i need delete two related table from mysql database, > but i am found and error.. > this following my sql language : > > DELETE FROM X INNER JOIN Y ON X.ID = Y.ID WHERE Y.No = 144; > > i found an error in INNER JOIN syntax.. > but i have successfully displaying 2 Related table in SELECT syntax..

Re: [PHP] mktime with Feb or Jan ..

2003-02-03 Thread 1LT John W. Holmes
> I parse the apache logfile and get a date format like this > [03/Feb/2003:09:22:50 +0100] > OK i split it with preg_match and the result is > > Array > ( > [0] => 03 > [1] => Feb > [2] => 2003 > [3] => 09 > [4] => 22 > [5] => 50 > ) > > Now I'd like to convert it in a time

Re: [PHP] Followup on form problems

2003-01-31 Thread 1LT John W. Holmes
> Well, after much debugging, turns out it was the "isset" command that was > causing all the problems. By simply removing that, everything started > working properly. > > Thanks to everyone for their input! It will also work if you replace all of your code with , but is that a solution, either?

Re: [PHP] Followup on form problems

2003-01-31 Thread 1LT John W. Holmes
> Well, after much debugging, turns out it was the "isset" command that was > causing all the problems. By simply removing that, everything started > working properly. > > Thanks to everyone for their input! IT COMPILES! Ship it! ---John Holmes... -- PHP General Mailing List (http://www.php.n

Re: [PHP] Question

2003-01-31 Thread 1LT John W. Holmes
[snip] > I understand most of what is going on here except for this line: > > printf ("%s\n", htmlspecialchars ($row[$i])); > > Can someone explain to me what the %s is? www.php.net/sprintf sprintf() and printf() have the same type of syntax and all of the %s, etc, are explained on the sprintf()

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> You're saying you're only uploading 10K total... for all of the files. If the browser is respecting this, and you're trying to upload more than 10K, then it could not upload anything and you get your error. If it was a PHP issue, it seems like you'd get an error or warning from PHP, not from t

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> >>Ok now I am able to send the request. I set the post_max_size into 50M > >>and now when the request is sent the whole apache goes down giving: "The > >>document containd no data" everytime I send a request. I tried also 10M > >>but same happens. What the h**l is this? > > > > > > Do you have th

Re: [PHP] Unable to upload multiple files

2003-01-31 Thread 1LT John W. Holmes
> Ok now I am able to send the request. I set the post_max_size into 50M > and now when the request is sent the whole apache goes down giving: "The > document containd no data" everytime I send a request. I tried also 10M > but same happens. What the h**l is this? Do you have this line in your for

Re: [PHP] PHP & Apache

2003-01-30 Thread 1LT John W. Holmes
> Maby you could help me on why I get this message when using variables: > Undefined variable: UN1 in c:\inetpub\wwwroot\sdd\pages\redirection.php > on line 15 Because you have an undefined variable. You have a variable that has not been assigned a value. Assign it a default value or use isset() i

Re: [PHP] Using custom "button" form element instead of standard "submit"?

2003-01-30 Thread 1LT John W. Holmes
> At 13:37 30.01.2003, Durwood Gafford spoke out and said: > [snip] > > > > > > > > > > > >your php form handler can now simply do: > > > >print "The user selected button $sample\n") If that's what you want, then just make each button a normal link and pass

Re: [PHP] chat rooms

2003-01-29 Thread 1LT John W. Holmes
> Does anyone have any suggestions for a good small FREe chat room to add to a > family site? A friend here at work is hosting a site from home and is > looking to add a chat room. Some of his site is php so if it is php based, > that would be great. We even talked today about creating our own.

Re: [PHP] Multiple Emails

2003-01-29 Thread 1LT John W. Holmes
> are all your email duplicated? if people are replying to a message you sent > you are probably getting one copy from them and one from the list. No, it's not that. I'm talking about just regular questions that are send only to the list. Hours later I will receive another copy of the message for

[PHP] Multiple Emails

2003-01-29 Thread 1LT John W. Holmes
Is anyone else getting multiple emails from this list? I'm about to jump on people for asking the same question 3 or 4 times, but maybe it's just me getting copies of the same message. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

  1   2   3   4   5   6   >