[PHP] Re: mysql auto increment question

2003-02-07 Thread Justin Garrett
http://www.php.net/manual/en/function.mysql-insert-id.php Justin Garrett "Van Andel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] m... I have an application that updates two MySQL database tables. One table has an auto_increment id field. I need to use this id to link to an entry

[PHP] Re: Need To Find A php Person

2003-02-07 Thread Jean-Christian Imbeault
I might be able to help you with support/customization of your application depending on what kind of PHP application it is. I have a great deal of experience programming with PHP and developing large application. Could you let me know what kind of application you have? Jc Michael McGlaughlin

RE: [PHP] Permenant Page Generation

2003-02-07 Thread John W. Holmes
> I would like to create two pages: > > One form page to enter information. I've done that and used the same > format as a typical html page. method="post" action="submit.php"> > > I want the second page to show the information was submitted and have the > information create a permenant html page

[PHP] Re: Array sorting

2003-02-07 Thread Philip Hallstrom
never done it, but check out: http://www.php.net/manual/en/function.array-multisort.php On Sat, 8 Feb 2003, Zydox wrote: > My question is if anyone have any idé on how to sort this array so that the > names and ages are sorted after Close Friend, Friend, Wife and last > Family... > > $A[] = arra

[PHP] Permenant Page Generation

2003-02-07 Thread Mecca
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named aft

[PHP] Permenant Page Generation

2003-02-07 Thread Mecca
I would like to create two pages: One form page to enter information. I've done that and used the same format as a typical html page. method="post" action="submit.php"> I want the second page to show the information was submitted and have the information create a permenant html page named aft

Re: [PHP] ImageJPEG?

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 05:24, John Wards wrote: > Quickie > > I want to save a modified jpeg to a file. I can out put it by doing this: > > Header("Content-type: image/jpeg"); > > imagejpeg($image_thum); > > imagedestroy($image_thum); > > I want to save it to this location: > > /images/10

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Thanks, but I know how it works. I'm on the Pear general list and the php db list. I just join the php general list...replied to the confirm email then posted my question. There was no attatchments, it was a brand new email. I did it 3 times and received the same auto responder. So the last ti

RE: [PHP] Strings and regular expression?

2003-02-07 Thread John W. Holmes
> > Very true, I agree. For your solution, though, wouldn't it correctly > match a > > string such as '2,3,11,12' even though there is no entry that's just > one? > > Ok, why not something like this.. > There is almost always a better solution than regex > > > $string = '98,244,9,243,2,6,36,3,1

[PHP] Array sorting

2003-02-07 Thread Zydox
My question is if anyone have any idé on how to sort this array so that the names and ages are sorted after Close Friend, Friend, Wife and last Family... $A[] = array ("Nils", "23", "Friend"); $A[] = array ("Emma", "21", "Friend"); $A[] = array ("Cassie", "21", "Wife"); $A[] = array ("Zydox", "23"

Re: [PHP] delete query doesnt work (fixed)

2003-02-07 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > in the form that submits the $delete var add this: > > now in query change $delete to $flag_delete... and poof > it magically works It's not magic, and John Holmes already explained it to you. If you do not pass a variable via GET, POST, or as a cookie, a

[PHP] PHP 4.3.0 safe_mode

2003-02-07 Thread Devin
I am running Apache 1.3.27 with PHP loaded as a module and I have several sites on the server running. I want to enable safe_mode so that PHP can be more secure on the server so one user can't read another users files. However I notice that with safe_mode enabled it denies readfile function, but t

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 06:39, Jeff Busby wrote: > Sorry, every time I posted I got an auto reply saying it had an attatchment > and it wasn't sent...and I had to post again. The only way it worked was > for me to reply to another post and change the subject and message. Didn't > mean to ann

Re: [PHP] strip slashes from variable content

2003-02-07 Thread Hardik Doshi
Ok i got your problem. First of all check php.ini settings for magic_gpc_quotes. If it is on then turn it off. I guess that the only problem you have. If you want to make it turn it on then you have to use stripslashes function. thanks Hardik --- Jason Wong <[EMAIL PROTECTED]> wrote: > On Saturd

Re: [PHP] delete query doesnt work

2003-02-07 Thread Hardik Doshi
Hi, I think you are facing problem with variable delete. Make sure your Php.ini settings for global off. Check value of variable is coming on the form or not. In case of your update, i think you forget to put where part. For example: mysql_query("update table_name set varible_name='$variable_na

Re: [PHP] strip slashes from variable content

2003-02-07 Thread Jason Wong
On Saturday 08 February 2003 09:51, Sunfire wrote: > hi.. > i have a hidden variable and when its submitted to another script it has > the value of "\\\... anybody know how to get the \ out of it? Search www.php.net for "strip slash". -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open

[PHP] delete query doesnt work (fixed)

2003-02-07 Thread Sunfire
hi... my delete query : mysql_query("delete from members where company like '$delete'"); now works..this is how i fixed it... in the form that submits the $delete var add this: now in query change $delete to $flag_delete... and poof it magically works still need to debug the edit system since a

[PHP] strip slashes from variable content

2003-02-07 Thread Sunfire
hi.. i have a hidden variable and when its submitted to another script it has the value of "\\\... anybody know how to get the \ out of it? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date

[PHP] Re: [PHP-DB] Passing ARRAY through URL

2003-02-07 Thread Leif K-Brooks
Servers usually have limits on the get method (usually 500 characters IIRC), and some browsers may as well. I reccomend you look into using the post method through javascript. Squirrel User wrote: Help. I've tried to pass large array through URL but it keep telling me page can not be display

[PHP] Re: setcookie() in various browsers..

2003-02-07 Thread Al
cookies work just fine with NS4x. Here's one I use: setcookie ("LastVisit", time(), time()+7776000); Chad Day wrote: This is with PHP 4.2 and register_globals off. I am setting cookies and starting a session in the following fashion: setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".

RE: [PHP] Escaping Chars

2003-02-07 Thread John W. Holmes
> Thanks for the reply, but I still can't seem to make the connection... > If I enter the value > 123\"/' > in a web form and put the form post value directly into the db (no > stripslashes or any other function), the value as reported by the db at a > command line query is > 123\"/' That's not ri

RE: [PHP] Escaping Chars

2003-02-07 Thread Walls Rob W Contr 75 CS/SCBS
Thanks for the reply, but I still can't seem to make the connection... If I enter the value 123\"/' in a web form and put the form post value directly into the db (no stripslashes or any other function), the value as reported by the db at a command line query is 123\"/' (it LOOKS like the same va

[PHP] Re: How do I force a 'timeout' in a loop for that itteration, orconversley how to timeout a 'ping" request?

2003-02-07 Thread Philip Hallstrom
Not sure on linux, but on freebsd ping's man page says: -t timeout Specify a timeout, in seconds, before ping exits regardless of how many packets have been recieved. On Fri, 7 Feb 2003, Daevid Vincent wrote: > I'm trying to automate finding pingable domains given an IP or a domain. > The proble

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
yes all of the select option values are coming up as true values just like i wanted and even when i shift $delete from the combobox ($delete is the name of the combobox) to the form with the check box i have printed on the screen "check the box to aprove the deletion of $delete" and in that line ne

[PHP] Need To Find A php Person

2003-02-07 Thread Michael McGlaughlin
Hello, I am looking for someone well versed and established who understands the php language and who can support a product that I have that I cannot receive support from by the original developer. What would be the best way for me to go about finding someone? We paid the developer by making a

[PHP] How do I force a 'timeout' in a loop for that itteration, or conversley how to timeout a 'ping" request?

2003-02-07 Thread Daevid Vincent
I'm trying to automate finding pingable domains given an IP or a domain. The problem is that some domains don't actually return "pings", and on Linux, it just sits there forever (ugh!). So... Can someone tell me how to 'abort' or 'timeout' an itteration of a loop. Maybe start a timer and then check

Re: [PHP] include_path doesn't seem to work

2003-02-07 Thread Reuben D. Budiardja
On Friday 07 February 2003 05:56 pm, Mike D wrote: > Hello all, > > I have the following set in my php.ini file: > > > ; UNIX: "/path1:/path2" > include_path = ".:/usr/local/php/scripts" > ; > > I placed a file in this directory containing a function, and I when I > call the functions name i get a

RE: [PHP] Escaping Chars

2003-02-07 Thread John W. Holmes
> I need to get a password value from a form, store it in a database and > then > later be able to compare a login password to the one stored in the db. > This works great unless the password contains the '\' char. > magic_quotes_gpc is ON and magic_quotes_runtime is OFF. > As a klude, I tried just

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
Okay. Next step would be to check the select option values in the resulting webpage and make sure that the values are actually there. I think the fact that delete is coming up blank is the key. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Frid

RE: [PHP] delete query doesnt work

2003-02-07 Thread John W. Holmes
Your problem is that form variables only exist on the page you POST your data to (or GET). You have a "confirmation" as that page. After your confirmation, $delete is empty on any other pages! If you want to pass it, then add it to a link or put it into another form as a hidden element or add it to

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
In fact does not require the closing tag. will be ignored. Make sure you have Registered Globals ON. Or change $delete to $_POST['delete']; -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 4:16 PM Subject: Re: [PHP]

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > Very true, I agree. For your solution, though, wouldn't it correctly match a > string such as '2,3,11,12' even though there is no entry that's just one? Ok, why not something like this.. There is almost always a bet

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
ok i changed the endings to those to but still keep getting blank variable in the end for $delete in the delete query - Original Message - From: "Van Andel, Robbert" <[EMAIL PROTECTED]> To: "Sunfire" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 5:51 PM Subject

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
You're form code is incorrect. select a member to delete should read select a member to delete The line: value=\"$DeleteMember[Company]\">\"$DeleteMember[Company]\""; should read value=\"$DeleteMember[Company]\">\"$DeleteMember[Company]\""; Robbert van Andel -Original Message- From

[PHP] include_path doesn't seem to work

2003-02-07 Thread Mike D
Hello all, I have the following set in my php.ini file: ; UNIX: "/path1:/path2" include_path = ".:/usr/local/php/scripts" ; I placed a file in this directory containing a function, and I when I call the functions name i get a fatal error - function not defined... Am i missing something here?

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
here is the forms that delete uses: //the first one is the combo box to select a member to //delete select a member to delete \"$DeleteMember[Company]\""; ?> the second form now is a check box with a submit button to confirm they want it deleted: are you really sure you want to delete the mem

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
Then you just answered your own question. -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: "Kevin Stone" <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 3:37 PM Subject: Re: [PHP] delete query doesnt work > ok so i mistyped it the real one is > mysql_query("delete

Re: [PHP] delete query doesnt work

2003-02-07 Thread Chris Shiflett
--- Sunfire <[EMAIL PROTECTED]> wrote: > so the $delete is blank for some reason... is it > possible that submitting a variable from 1 form > to another that some wont get carried over? No. It might help to read this: http://www.php.net/manual/en/security.registerglobals.php Chris -- PHP Gener

Re: [PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Sorry, every time I posted I got an auto reply saying it had an attatchment and it wasn't sent...and I had to post again. The only way it worked was for me to reply to another post and change the subject and message. Didn't mean to annoy anyone with multiple posts. - Original Message -

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
I've never heard of a variable not getting passed. Make sure that your form element is actually called delete and that it's part of the submitted form. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:35 PM To: [EMAIL PROT

Re: [PHP] mail() vs sockets

2003-02-07 Thread Paul Roberts
just post once - Original Message - From: "Jeff Busby" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 9:30 PM Subject: [PHP] mail() vs sockets Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() fu

RE: [PHP] mail() and sendmail path

2003-02-07 Thread Dennis Cole Jr
You can find this here -> http://www.php.net/manual/en/ref.mail.php -Original Message- From: micah lamb [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 5:29 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() and sendmail path Is there any way to declare the path to sendmail locall

Re: [PHP] Client Side PHP

2003-02-07 Thread [-^-!-%-
I think that's a great idea. I'll support it. -john =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database. Hosting. Multimedia. On Thu, 6 Feb 2003, Maxim Maletsky wrote: > > I am doing now ;) > > > How would you guys like t

[PHP] mail() and sendmail path

2003-02-07 Thread micah lamb
Is there any way to declare the path to sendmail locally (on the page that has the mail() function) ? I need to use mail() but do not have access to the php.ini file. Micah -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] delete query doesnt work

2003-02-07 Thread Sunfire
it doesnt say anything query returns 1 and there are 0 errors and 0 warnings but when i echo the query string: echo "delete from members where company= '$delete'"; it will show on the web page: delete from members where company = so the $delete is blank for some reason... is it possible that submi

RE: [PHP] delete query doesnt work

2003-02-07 Thread Van Andel, Robbert
What is the error message you get if you put this in if(!mysql_query("delete from members where company='$delete')) die (mysql_error()); This would be the first step. Robbert van Andel -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:06 PM

RE: [PHP] delete query doesnt work

2003-02-07 Thread Roedel, Mark
First two things I'd check: (1) Make sure the user you're connecting as has permission to delete rows, and (2) Make sure that your $delete variable has the value you were expecting. --- Mark Roedel | "Blessed is he who has learned to laugh Systems Programmer| at himself, for he s

Re: [PHP] delete query doesnt work

2003-02-07 Thread Kevin Stone
You have a syntax error. Look at your quotes. -Kevin - Original Message - From: "Sunfire" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 3:05 PM Subject: [PHP] delete query doesnt work > i have a delete query: > mysql_query("delete from members where compan

RE: [PHP] delete query doesnt work

2003-02-07 Thread Daniel Masson
Maybe you have to use wildcards like: mysql_query("delete from members where company like '%$delete%'");?? Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co (57 1)2182064 - (57 1)61632

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

[PHP] delete query doesnt work

2003-02-07 Thread Sunfire
i have a delete query: mysql_query("delete from members where company='$delete'); it doesnt work should i change it to : mysql_query("delete from members where company like '$delete'");?? the first one worked in mysql client but it doesnt work in php script for some reason... also having proble

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
> I have used a few different Web hosting companies, and I > have never seen a case where my home directory was my > document root. I have always had a directory like > public_html/ or www/ that was my personal document root, so > as long as I don't place files in there, they are not > accessible v

[PHP] Efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as some

[PHP] more efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as s

Re: [PHP] Strings and regular expression?

2003-02-07 Thread Kevin Waterson
This one time, at band camp, "1LT John W. Holmes" <[EMAIL PROTECTED]> wrote: > > $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 tim

[PHP] more efficient alternative to mail()

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as s

[PHP] odbc_prepare

2003-02-07 Thread Jeff Hatcher
I am using MSSQL. I need to speed up a page. I have 3 count queries and one data query that gets loop through by the # of items * # of weeks that I need to return. Basically 460 as a general idea. I thought about using the prepare statement, something I have notice in pear. But its not support i

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chris Shiflett
--- Chad Day <[EMAIL PROTECTED]> wrote: > if (!isset($startlimit)) { > $startlimit = 0; > } > > $endlimit = $startlimit + 10; > > $yourquery = "your query data LIMIT $startlimit, > $endlimit" > > that should give you enough insight on how to work it. Nice example. As an interesting tidbi

Re: [PHP] ImageJPEG?

2003-02-07 Thread John Wards
On Friday 07 Feb 2003 9:26 pm, you wrote: > Other than that you're > code looks good to me. Arrrgh! Bl*0dy cacheing in my ftp programgr Cheers for looking though! John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail() vs sockets

2003-02-07 Thread Jeff Busby
Question regarding php's mail function. I've created a targetted mail system for a client, that uses the mail() function to send the the customer list. I find it's ok for a few hundred names, however the client has a list of over 1 and I know that would be way to taxing on the server, as s

Re: [PHP] PhpBB2 Error

2003-02-07 Thread Delta_5
Pushpinder Singh Garcha wrote: Hello All, 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..?? Many Thanks --Pushpinder Singh Garcha ___

RE: [PHP] 3 tier web development

2003-02-07 Thread Daniel Masson
Mr. Holmes Im assuming that you can add all the other database operations and the other dbtypes ... that was just the short version. Daniel E Massón. Ingeniero de desarrollo [EMAIL PROTECTED] Imagine S.A. Su Aliado Efectivo en Internet www.imagine.com.co

[PHP] Problems with sessions

2003-02-07 Thread John Almberg
I've got an odd problem . . . I've got a PHP site (PHP 4.2.2, Apache 1.3.26, Linux box) that uses sessions to track a user_id for each user. I use the user_id to grant various rights. This works like a dream 95% of the time. But every once in awhile, the session information gets lost. It's so r

[PHP] ImageJPEG?

2003-02-07 Thread John Wards
Quickie I want to save a modified jpeg to a file. I can out put it by doing this: Header("Content-type: image/jpeg"); imagejpeg($image_thum); imagedestroy($image_thum); I want to save it to this location: /images/1000/ with its original filename but with a t_ attached to the begining. I

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] Limit the amount of returns in a MySQL query

2003-02-07 Thread Chad Day
if (!isset($startlimit)) { $startlimit = 0; } $endlimit = $startlimit + 10; $yourquery = "your query data LIMIT $startlimit, $endlimit" that should give you enough insight on how to work it. Chad -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday, Febr

RE: [PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Rankin, Randy
select * from mailaddresses where id < 10 LIMIT 10; -Original Message- From: Daniel Page [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 2:53 PM To: [EMAIL PROTECTED] Subject: [PHP] Limit the amount of returns in a MySQL query Hi All, Imagine I have a giant database table tra

[PHP] Limit the amount of returns in a MySQL query

2003-02-07 Thread Daniel Page
Hi All, Imagine I have a giant database table tracking email addresses (I don't but it is the first example that jumps to mind after my recent antispam campaign!). If i do a select * from mailaddresses; I will get all of the table. If i do a select * from mailaddresses where id < 10; I will get

Re: [PHP] Re: Protecting include files

2003-02-07 Thread Chris Shiflett
--- Daniel Page <[EMAIL PROTECTED]> wrote: > If someone wants to call your .inc file like > http://www.my.site/lib.inc they will see the code, > as it is a text file. OK, we all know that. No, we don't, because that is not entirely correct. There are many cases where your Web server will not serve

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

[PHP] Multi-User phpMyAdmin

2003-02-07 Thread Stephen
Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin installation? I would like to just have one central copy, then have other users able to access their corresponding database in phpMyAdmin. How can I do this? Thanks, Stephen Craton http://www.melchior.us "What's the point in ap

[PHP] Re: How to insert time and date into mysql?

2003-02-07 Thread Daniel Page
The easiest way is to create a timestamp field (see manual depending on how you want to store the date, as you can go from to ddmmhhmmss...), and when you create your DB update query, use now(). for example, update a field with a new email address, and the user's current ip with the time

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

[PHP] Multi-User phpMyAdmin

2003-02-07 Thread Stephen
Can anyone tell me a tutorial on how to setup a multi-user phpmyadmin installation? I would like to just have one central copy, then have other users able to access their corresponding database in phpMyAdmin. How can I do this? Thanks,Stephen Cratonhttp://www.melchior.us   "What's the point i

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"; } -

[PHP] Re: Protecting include files

2003-02-07 Thread Daniel Page
If someone wants to call your .inc file like http://www.my.site/lib.inc they will see the code, as it is a text file. OK, we all know that. As the .inc file is in reality a renamed php script, containing variables, functions, etc, if you call it .php instead of .inc, it will be parsed by PHP, but

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 Dennis Cole Jr
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. -Original Message- From: Roman Sanchez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 1:

[PHP] setcookie() in various browsers..

2003-02-07 Thread Chad Day
This is with PHP 4.2 and register_globals off. I am setting cookies and starting a session in the following fashion: setcookie("EMAILADDR", $row[EMAIL], time()+2592000, '/', ".$dn"); where $dn = mydomain.com I want the cookies accessible sitewide .. at www.mydomain.com, mydomain.com, forums.myd

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

[PHP] PhpBB2 Error

2003-02-07 Thread Pushpinder Singh Garcha
Hello All, 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..?? Many Thanks --Pushpinder Singh Garcha _ Web Archit

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

2003-02-07 Thread Kevin Stone
That's interesting.. the session id should be different for each instance of the browser. The only exception I can think of is the MacOS since it runs multiple windows within the same instance of the application. This assumption is untested of course. Maybe it would help for you to explain why y

[PHP] Problems in uploading files due to upload_max_filesize

2003-02-07 Thread Geckodeep
I have a problem with transfer of Image files to the server. I've checked with the aid of phpinfo on my service provider's server and this is what I found upload_max_filesize 200K. My page needs to upload 9 images simultaneously each one of them having the size between 45 kb to 50kb, Can any

Re: [PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Chris Shiflett
--- Jeremy Bowen <[EMAIL PROTECTED]> wrote: > I am modifying some else's script I added some rows to > the myself database and no I get this error when I try > to add information to the database. Most likely, the SQL statement in question is something like this: insert into foo values ('bar', 'ph

[PHP] Avoiding several windows with the same session

2003-02-07 Thread Roman Sanchez
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-U in IE to open a new window. This new win

Re: [PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Matt
- Original Message - From: "Jeremy Bowen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 1:30 PM Subject: [PHP] Column count doesn't match value count at row 1? That means the the number of columns in the fields clause doesn't match the number in the values.

[PHP] Virtual Directory Support

2003-02-07 Thread Rw
On my phpinfo() it shows Virtual Directory Support to be DISABLED .. does anyone know what the switch setting is called in the php.ini file to ENABLE this setting? Thanks!

[PHP] Column count doesn't match value count at row 1?

2003-02-07 Thread Jeremy Bowen
Hey, I can't seem to figure this out. I am modifying some else's script I added some rows to the myself database and no I get this error when I try to add information to the database. I am searching the docs but I can't seem to find the answer. Thanks, Jeremy -- PHP General Mailing List (ht

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread Kevin Stone
Based on your description it could litterally be coded one of a hundred different ways. The way I would code a small problem like this is in a monolithic logical construct such as the if/else statement below. This allows you to be a little bit more careless how you construct the page. Another con

[PHP] Strings and regular expression?

2003-02-07 Thread Radu Manole
Hi guys, I have 2 strings $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)? Thanks, Radu -- PHP General Mailing List (h

Re: [PHP] GD Chinese support - php4.3

2003-02-07 Thread Tom Rogers
Hi, Saturday, February 8, 2003, 3:30:11 AM, you wrote: ED> any one know how display Chinese Characters (tradition or simplified) in ED> GD.? ED> is that something deal with multibyte functions...? ED> i have installed the bundled GD and Libjpeg ED> they all worked perfectly with english words

[PHP] Uploading an image to a db

2003-02-07 Thread Barajas, Arturo
Greetings, people. I have the following code to upload an image to a db: if (isset($imgLogo) && $imgLogo != "none") $data = addslashes(fread(fopen($imgLogo, "r"), filesize($imgLogo))); else $data = ""; Then I just "INSERT INTO table (image) VALUES $data" but I think that the stri

Re: [PHP] Dynamic input fields in Form

2003-02-07 Thread Frank Keessen
Hi, Thanks for the answer; but there is nobody who can show me an example in code??? Regards, Frank - Original Message - From: "Jon Haworth" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 1:45 PM Subject: RE: [PHP] Dynamic input fields in

[PHP] Escaping Chars

2003-02-07 Thread Rob Walls
I need to get a password value from a form, store it in a database and then later be able to compare a login password to the one stored in the db. This works great unless the password contains the '\' char. magic_quotes_gpc is ON and magic_quotes_runtime is OFF. As a klude, I tried just removing sl

Re: [PHP] Max Limit of post variables

2003-02-07 Thread R B
I was making an aplication few months ago, and i had your same problems. I think that crash because the php file send to the client its to large, and the client machine dont have the necesary memory to suport that in the navigator. So i chanche my grid to one row of controls, and i put all the

[PHP] Re: issues with ksort()

2003-02-07 Thread Shawn McKenzie
Ah Thanks! -Shawn - Original Message - From: "Paul Chvostek" <[EMAIL PROTECTED]> To: "Shawn McKenzie" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 07, 2003 11:18 AM Subject: Re: issues with ksort() On Fri, Feb 07, 2003 at 11:09:10AM -0600, Shawn McKenzie wrote:

RE: [PHP] mysql auto increment question

2003-02-07 Thread Van Andel, Robbert
Thanks, I knew there was a function like this, but couldn't for the life of me remember what it was or find it. Robbert van Andel -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 9:28 AM To: Van Andel, Robbert; [EMAIL PROTECTED] Subject: RE

Re: [PHP] update to table errors/strange things happen

2003-02-07 Thread Sunfire
//connect to server and database //start combo box select a member to edit //code to populate combobox from db \"$edit[Company]"; } ?> //rest of code for page here... not that hard probably about 4 lines of code to make the box and put db stuff in it... still need to figure out why my updat

  1   2   >