RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Dan Rossi
heh sorry excuse my arrogance , of then , find me a solution that doesnt require echoing javascript ? -Original Message- From: Philip J. Newman [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 6:49 PM To: Dan Rossi; Leif K-Brooks Cc: Peter Houchin; Dan; php-general Subject: Re: [PHP]

Re: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Leif K-Brooks
I never said there was one, I simply said that a PHP solution was requested and you gave a javascript solution. That has nothing to do with the PHP (!) list, and should be discussed off-list. Dan Rossi wrote: heh sorry excuse my arrogance , of then , find me a solution that doesnt require echo

Re: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Ashley M. Kirchner
Leif K-Brooks wrote: I never said there was one, I simply said that a PHP solution was requested and you gave a javascript solution. That has nothing to do with the PHP (!) list, and should be discussed off-list. A solution, whether JavaScript, PHP, or other, is better than nothing. All yo

Re: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Philip J. Newman
Mummy and Daddy sto fighting. - Original Message - From: "Dan Rossi" <[EMAIL PROTECTED]> To: "Philip J. Newman" <[EMAIL PROTECTED]>; "Leif K-Brooks" <[EMAIL PROTECTED]> Cc: "Peter Houchin" <[EMAIL PROTECTED]>; "Dan" <[EMAIL PROTECTED]>; "php-general" <[EMAIL PROTECTED]> Sent: Friday, March

[PHP] url rewrite

2003-03-28 Thread Sebastian
hello, i am not sure where to post this question, since it's partly related to PHP, so i'll ask here. I'd like to rewrite a url that looks like this: /news/articles/article.php?id=255 into /news/articles/255/ any help is appreciated. cheers, - Sebastian

RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Niklas Lampén
Heh, I think this kind of idiotism and hair splitting is fun for a change. :) I personnally like this in this php-list that you can ask allmost anything and get a desent answer in a short perioid of time. Lets keep it that way, even if it takes us sometimes to javascript or some other OT. :) Nikl

RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Ernest E Vogelsinger
At 09:35 28.03.2003, Niklas Lampén said: [snip] >Heh, I think this kind of idiotism and hair splitting is fun for a >change. :) >I personnally like this in this php-list that you can ask allmost >anything and get a desent answer in a short perioid of time. Le

Re: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Ashley M. Kirchner
Ernest E Vogelsinger wrote: Well then - how can I get rich quick, do I need to use JavaScript or can it be done with PHP? I'd give you an answer, but this is a PHP list. Apparently we're not allowed to give non-PHP solutions on here. -- H| I haven't lost my mind; it's backed up on tape

RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Niklas Lampén
I think you should use the function called PutMoneyToMyAccount($AccountID = '123456-98765', $AmountInUSDollars = '100');. Run it as many times as you want. This doesn't need javascript, so this wasn't OT.. :P No need to thank me, even manual tells you this. Niklas -Original Message-

Re: [PHP] url rewrite

2003-03-28 Thread Jason Wong
On Friday 28 March 2003 16:38, Sebastian wrote: > i am not sure where to post this question, since it's partly related to > PHP, so i'll ask here. Ask google or ask the archives. > I'd like to rewrite a url > that looks like this: /news/articles/article.php?id=255 > > into /news/articles/255/ -

Re: [PHP] Checkbox

2003-03-28 Thread SLanger
Hello >From a usability standpoint showing a checkbox that cannot be unchecked renders the checkbox obsolete. The consquence is not to show a checkbox at all. If you need an uncheckable checkbox because of licence aggreements or something like that. Or privacydeclaration type checkbox. Make it

[PHP] referer

2003-03-28 Thread Mat Harris
am i going mad or something? i want to use the referer string from the server vars, but the $_SERVER["REFERER"] and $HTTP_SERVER_VARS["REFERER"] vars are empty and the phpinfo doesn't show the referer at all. what's going on? cheers -- Mat Harris OpenGPG Public Key ID: C37

Re: [PHP] url rewrite

2003-03-28 Thread Sebastian
if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Sebastian wrote: | | > i am not sure where to po

Re: [PHP] referer

2003-03-28 Thread Sebastian
try: $_SERVER['HTTP_REFERER']; cheers, - Sebastian - Original Message - From: "Mat Harris" <[EMAIL PROTECTED]> | am i going mad or something? | i want to use the referer string from the server vars, but the | $_SERVER["REFERER"] and $HTTP_SERVER_VARS["REFERER"] vars are empty | and the

[PHP] file

2003-03-28 Thread Diksha Neel
hi all! i have a simple program to open and write a file. but the file is not getting created. can anyone please spot the mistake? giving the code below. thanks a lot, diksha. hii am fine"; $contents=fwrite($fp,string); echo "'$contents'"; fclose($fp); ?>

Re: [PHP] file

2003-03-28 Thread Jason Wong
On Friday 28 March 2003 18:26, Diksha Neel wrote: > i have a simple program to open and write a file. > but the file is not getting created. > can anyone please spot the mistake? > giving the code below. Turn on FULL error reporting so you can what errors (if any) there are in your code. > ech

RE: [PHP] file

2003-03-28 Thread Rich Gray
> hi all! > > i have a simple program to open and write a file. > but the file is not getting created. > can anyone please spot the mistake? > giving the code below. > > thanks a lot, > diksha. > > echo"hi?how are u doing??"; > $fp = fopen ("sandrew.html", "w"); > string="hii am > > fine"; > $cont

[PHP] submit

2003-03-28 Thread Diksha Neel
hi all, seems to be and off day for me. simple things aren't working. have this really stupid thing called dew3.html in which is a submit button to connect to new6.php that will in turn create a file sandrew.html. but the submit button in dew3.html is seen but isn't working. help please. sending co

Re: [PHP] submit

2003-03-28 Thread Nikunj Virani
change to Regards, Nikunj Virani - Original Message - From: "Diksha Neel" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 4:13 PM Subject: [PHP] submit > hi all, > seems to be and off day for me. > simple things aren't working. > have this really stupid thing c

Re: [PHP] referer

2003-03-28 Thread Mat Harris
On Fri, Mar 28, 2003 at 04:19:25 -0500, Sebastian wrote: > try: $_SERVER['HTTP_REFERER']; > > cheers, > - Sebastian > > From: "Mat Harris" <[EMAIL PROTECTED]> > > | am i going mad or something? > | i want to use the referer string from the server vars, but the > | $_SERVER["REFERER"] and $HTTP_S

Re: Re: [PHP] submit

2003-03-28 Thread Diksha Neel
hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today! well, my problem is a really funny one. through dew4.html's submit button i want to get connect to new6.php from which should open a file. but as soon as i click on the submit button, i get

[PHP] page cannot be displayed

2003-03-28 Thread Diksha Neel
hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today! well, my problem is a really funny one. through dew4.html's submit button i want to get connect to new6.php from which should open a file. but as soon as i click on the submit button, i get

[PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jens von Pilgrim
Hi, I've got a problem with the "=& new" construct. A code sample tells more than 1000 words: This code is running like that and demonstrates exactly the "weird" behaviour. Running this example, the variable $g_fooInstance is null in function main(). But why? Is the reference to the constructed

Re: [PHP] url rewrite

2003-03-28 Thread Chris Hewitt
Sebastian wrote: if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Seb

RE: [PHP] Re: Internet Explorer toolbar

2003-03-28 Thread Dan Rossi
use my example , there is no possible way , i did once see a javascript() function but obviously thats not there -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Friday, March 28, 2003 7:41 PM To: [EMAIL PROTECTED] Cc: 'Php-General' Subject: RE: [PHP] Re: Inter

Re: [PHP] page cannot be displayed

2003-03-28 Thread Chris Hayes
At 12:01 28-3-2003, you wrote: it is most likely that the error is in the referring file in dew4.html. check the file name and path of the page you redirect to, and check the form method. hi guys, yeah, i now believe this really is an off day for me. probably because i did not have food today

[PHP] tips on sorting an array of objects by an attribute?

2003-03-28 Thread neko
Hi Guys, Just after some experience... What's the best way to sort an array of objects by one of their attributes, accessed by $obj->getFoo() (its a number) ? I was thinking a bubble-sort, making multiple passses and switching array elements until there are no more switches to make. Any tips? The

Re: [PHP] shell_exec question....

2003-03-28 Thread David T-G
Kalin -- Please don't hijack threads. This question has nothing to do with your "last questions" regarding email address regular expressions. For that matter, *that* had nothing to do with php and perl. Mail and news messages have many headers, some of which serve to connect messages together.

[PHP] Microsoft SQL Server varchar(500) field text concatenated at 255characters.

2003-03-28 Thread Scott Houseman
Hi There. I am using PHP 4.3.0 on WIN32 to query data from a Microsoft SQL Server. One field I am requesting is type VARCHAR size 500. For some reason, PHP is returning only the first 255 characters of the text from that field. If I change the field type to TEXT, all of the data in that field is r

[PHP] string replace problem!!

2003-03-28 Thread Thijs Lensselink
Good day , I have the following string. ,slideimages[0],slideimages[1],slideimages[2] Wich starts with a ','. No my problem is i want to strip this first and only the first ','. i've tried $string = ",slideimages[0],slideimages[1],slideimages[2]"; $string = preg_replace('/^./','',$string,1); wi

[PHP] Random Password Making.

2003-03-28 Thread Philip J. Newman
Whats the best way to make a random password with 4 letters and 2 numbers? -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] string replace problem!!

2003-03-28 Thread Rich Gray
> Good day , > > I have the following string. > ,slideimages[0],slideimages[1],slideimages[2] > Wich starts with a ','. No my problem is i want to strip > this first and only the first ','. > > i've tried > $string = ",slideimages[0],slideimages[1],slideimages[2]"; > $string = preg_replace('/^./

[PHP] Time stamp and changing to a date.

2003-03-28 Thread Philip J. Newman
$mydate = "20030328231154"; $myPrintDate=date ("l dS of F Y h:i:s A",$mydate); echo "$myPrintDate"; Whats wrong -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Rich Gray
> $mydate = "20030328231154"; > > $myPrintDate=date ("l dS of F Y h:i:s A",$mydate); > > echo "$myPrintDate"; > > Whats wrong $mydate should be a unix style timestamp not a MMDDHHMMSS type date/time format... Check the functions time() and mktime() to help you generate unix timestamps. HTH R

Re: [PHP] Time stamp and changing to a date.

2003-03-28 Thread Ryan Gibson
On 28/3/03 11:44 am, "Philip J. Newman" <[EMAIL PROTECTED]> wrote: > $mydate = "20030328231154"; > > $myPrintDate=date ("l dS of F Y h:i:s A",$mydate); > > echo "$myPrintDate"; > > Whats wrong -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/un

[PHP] gd library + animated gif

2003-03-28 Thread rush
Can GD library produce animated gif's? rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Microsoft SQL Server varchar(500) field text concatenated at 255 characters.

2003-03-28 Thread Rich Gray
> Hi There. > > I am using PHP 4.3.0 on WIN32 to query data from a Microsoft SQL Server. > One field I am requesting is type VARCHAR size 500. For some reason, PHP > is returning only the first 255 characters of the text from that field. > > If I change the field type to TEXT, all of the data in th

RE: [PHP] Random Password Making.

2003-03-28 Thread Mark Cubitt
try this function randpassword () { $length = 6; srand((double)microtime()*100); $string = ''; while(strlen($string) != $length) { $type = rand(1,2); if ($letterammount = 4) {$type = 1;} if ($numammount = 2)

RE: [PHP] last questions

2003-03-28 Thread Steve Jackson
Here's a function you could use. The input from your form should be email ($email in this script). function valid_email($email) { // check an email address is possibly valid if (ereg("[EMAIL PROTECTED]", $email)) return true; else return false; } HTH Steve Jackson Web Developer Vi

Re: [PHP] character set problem

2003-03-28 Thread Filip De Graeve
I tried it ; it doesn't work. é ë è results into Ú Þ Ù standard, & using htmlentities é ë è results into é è ë using htmlspecialchars é ë è results into %E9%20%E8%20%EB using rawlurlencode The charset ISO-8859-1 (western europe) is supported in my apache, php, and on the global win

Re: [PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jason k Larson
Maybe I'm missing something here ... but what is the point of trying to create a reference to a new object ... it hasn't been ceated prior to make reference to. Can't you simply create the new object and then make whatever (if needed) references? -- Jason k Larson Jens von Pilgrim wrote: Hi, I

[PHP] Problem with FirwBird date

2003-03-28 Thread André Cupini
Hello people, I´m have a problem when work with date in a Firebird "date" field. By default, Firebird set up the date format as month/day/year. I need date in day/month/year format. In a Linux, i just add to the php.ini the following line: ibase.dateformat = "%d/%m/%Y" But in a machine with Apache+

RE: [PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jens von Pilgrim
Hello, Jason wrote: JL> Maybe I'm missing something here ... but what is the point of trying JL> to create a reference to a new object ... it hasn't been ceated prior JL> to make reference to. Can't you simply create the new object and JL> then make whatever (if needed) references? Uhh... maybe

RE: [PHP] date math question

2003-03-28 Thread John W. Holmes
> This leads me to another question. If I have stored the date as an > epoch then is there a way using PHP and MySQL to say find all the > records that have been added this YEAR (not last 365 days)? SELECT * FROM table WHERE YEAR(FROM_UNIXTIME(column)) = YEAR(CUR_DATE()); Benchmark each method an

Re: [PHP] dynamic/multidimensional arrays in classes

2003-03-28 Thread Jason k Larson
The problem here lies with the each function, I believe. I played with this for a minute and that's where I ran into problems with unexpected behaviour. Regardless, I was able to get expected functionality using foreach instead of the while loop. While foreach isn't available in PHP3 it is in

[PHP] Pipe broken

2003-03-28 Thread Benja
Hi all, is it possible to know in PHP if the client hit the stop button or close the browser ? Here is what I read on a forum : > I was told you cannot when I asked 'way back when. > > When the user hits stop, the pipe is broken. > Apache will attempt to spit out some more data,

RE: [PHP] Connecting to a remote server

2003-03-28 Thread Roberts, Mark \(Tulsa\)
They are not on the same server...that is the problem. They used to be on the same server, but I have had to move the application to a physically different server with a different DNS than the DB Server. So, on the surface, it would seem that I should just replace 'localhost' with the dns name o

Re: [PHP] Pipe broken

2003-03-28 Thread Marek Kilimajer
Manual -> Features -> Connection handling Benja wrote: Hi all, is it possible to know in PHP if the client hit the stop button or close the browser ? Here is what I read on a forum : I was told you cannot when I asked 'way back when. When the user hits stop, the pipe is brok

Re: [PHP] Pipe broken

2003-03-28 Thread Benja
Oups... I missed that "register_shutdown_function" function. Thanks Marek. Benja. "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Manual -> Features -> Connection handling Benja wrote: >Hi all, >is it possible to know in PHP if the client hit the stop button or cl

Re: [PHP] Connecting to a remote server

2003-03-28 Thread Jason Wong
On Friday 28 March 2003 21:06, Roberts, Mark \(Tulsa\) wrote: > They are not on the same server...that is the problem. > They used to be on the same server, but I have had to move the application > to a physically different server with a different DNS than the DB Server. > > So, on the surface, it

Re: [PHP] gd library + animated gif

2003-03-28 Thread Liam Gibbs
> Can GD library produce animated gif's? The PHP manual will tell you this. I'll save you the trouble, but next time... well... the PHP manual will tell you stuff like this: Since a certain version of PHP, GIFs are unsupported. I'm told they can be read, but as far as producing new ones (resizing

Re: [PHP] gd library + animated gif

2003-03-28 Thread Liam Gibbs
> > Can GD library produce animated gif's? Sorry. Maybe I should read more carefully. I skipped 'animatd' for some reason? Still, no, GD won't produce animated GIFs. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with "=& new" and locally created instances

2003-03-28 Thread Jason k Larson
Okay, I understand more now ... I played with this for a couple of minutes and can see exactly where is acting odd, which is exactly where you indicated. :) I tried a couple of things to keep the instance of the object, but the variable keeps getting set back. One thing I did that worked was t

[PHP] Help with procmail script...

2003-03-28 Thread Al
The past problem was solved via this group with in minutes and I just want to say thanks on that. The latest problem is a script that takes incoming emails to a certain address and puts them in the database. I included the script below called 'Gateway.php'. This worked great on my local machine

RE: [PHP] gd library + animated gif[Scanned]

2003-03-28 Thread Michael Egan
There's a section on Freshmeat about the ImageMagick project with further links: http://freshmeat.net/projects/imagemagick/?topic_id=100 Given your previous comment it's tempting to say that a search on Google for 'ImageMagick' would, er - well - but I'll resist :-) Regards, Michael >> Can G

RE: [PHP] Connecting to a remote server

2003-03-28 Thread Steve Jackson
Your remote server has PHP/MySQL setup? Your DB hostname may be different from Localhost but basically your php connection string should just reflect what host username and password you need to use to connect to your DB. DNS has nothing to do with it. For example this function will connect to *any

RE: [PHP] string replace problem!!

2003-03-28 Thread Thijs Lensselink
Hello Rich, Thanx for the reply. But i should have cheked my code better. The piece of code was stuck in a for loop that's why the ',' was removed from every slideimages[$x]. $string = substr($string,1); works great though..:) grtz, Thijs -Oorspronkelijk bericht- Van: Rich Gray [mailto:

[PHP] Anything that is changed when the browser is closed

2003-03-28 Thread Haseeb Iqbal
hi, just wanna know if there is anything in php that can be used (besides sessions) to get anything from the $_SERVER that is unique and gets changed each time we close the browser. anything at all to check if the user has closed the browser. regards Haseeb

Re: [PHP] Anything that is changed when the browser is closed

2003-03-28 Thread Marek Kilimajer
If you set cookie with lifetime set to 0, the cookie is erased. Sure this will work only if the user has cookie enabled Haseeb Iqbal wrote: hi, just wanna know if there is anything in php that can be used (besides sessions) to get anything from the $_SERVER that is unique and gets changed each

Re: [PHP] tips on sorting an array of objects by an attribute?

2003-03-28 Thread Marek Kilimajer
use usort neko wrote: Hi Guys, Just after some experience... What's the best way to sort an array of objects by one of their attributes, accessed by $obj->getFoo() (its a number) ? I was thinking a bubble-sort, making multiple passses and switching array elements until there are no more switches

Re: [PHP] Anything that is changed when the browser is closed

2003-03-28 Thread CPT John W. Holmes
While your script is running, you can use connection_aborted() to see if the user has clicked the stop button or closed the window. After your script finishes, though, then you have no way of knowing unless you use a session cookie, which will be destroyed when the browser is closed. ---John Holme

Re: [PHP] Problem with PHP

2003-03-28 Thread Marek Kilimajer
My guess is you have register_globals off. You need to use $_GET['get_variable'] or $_POST['post_variable'] '; echo $_POST['post_variable'].''; ?> Navratil, Jan wrote: Hallo, i have problem with running PHP4.3.1 on Apache1.3.19 on W2K. I instaled everithng by install.txt. Is posible to

RE: [PHP] Session Theft

2003-03-28 Thread Jon Haworth
Hi Haseeb, > if i can get something from user end that is unique > for that user.for e.g. his/her IP . Firstly, an IP address can be shared between multiple users, or it can change constantly for one user. Here's what a page request from an AOL user looks like (I've snipped the request paths, b

Re: [PHP] Session Theft

2003-03-28 Thread Larry E. Ullman
i just want to figure out a way by which i can stop session theft.i thought if i can get something from user end that is unique for that user.for e.g. his/her IP .but it will not work when they are behind firewall.they will be assigned same IP.is there a way for me to get the IP (e.g.202.202.20

[PHP] Session Theft

2003-03-28 Thread Haseeb Iqbal
i just want to figure out a way by which i can stop session theft.i thought if i can get something from user end that is unique for that user.for e.g. his/her IP .but it will not work when they are behind firewall.they will be assigned same IP.is there a way for me to get the IP (e.g.202.202.202.20

Re: [PHP] Session Theft

2003-03-28 Thread Jim Lucas
check into forcing the use of trans_sid Jim - Original Message - From: "Haseeb Iqbal" <[EMAIL PROTECTED]> To: "PHP General list" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 8:48 PM Subject: [PHP] Session Theft > i just want to figure out a way by which i can stop session theft.i tho

Re: [PHP] Session Theft

2003-03-28 Thread CPT John W. Holmes
> i just want to figure out a way by which i can stop session theft.i thought > if i can get something from user end that is unique for that user.for e.g. > his/her IP .but it will not work when they are behind firewall.they will be > assigned same IP.is there a way for me to get the IP (e.g.202.20

Re: [PHP] Session Theft

2003-03-28 Thread Marek Kilimajer
You can give the users the oportunity to turn ip check on (a checkbox in the login form). There is also a header that is set by many proxies to the ip address of the client, but I don't remember its name (maybe (X-)Forwarded-For) Haseeb Iqbal wrote: i just want to figure out a way by which i c

Re: [PHP] Grid edit form

2003-03-28 Thread Andrew Powell
For the form: for ($i=0;$i<=59;$i++) { echo ""; } For the post back: for ($i=0;$i<=59;$i++) { $somedata[$i] = $_REQUEST['myfield_'.$i]; } aap Daniel Harik wrote: Hello guys, I'm trying to make grid form that will allow to edit 60 rows at the same time, it's not hard to make a loop that wou

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
This is untested, but I seem to recall doing something like this on a project last year. and on the process page you will receive an array called row that has everything in it that you need. Jim - Original Message - From: "Daniel Harik" <[EMAIL PROTECTED]> To: <[EMA

RE: [PHP] Grid edit form

2003-03-28 Thread Don Read
On 28-Mar-2003 Daniel Harik wrote: > Hello guys, > > I'm trying to make grid form that will allow to edit 60 rows at the same > time, it's not hard to make a loop that would go from 0 to 59, but > my problem is that i don't know what rows to update as i see no way to > find > row's id after f

Re: [PHP] Grid edit form

2003-03-28 Thread Andrew Powell
Then append the id to the input name. e.g. For the input form: while (odbc_fetch_row($rs)) { echo ""; } And to read the data: while (odbc_fetch_row($rs)) { $sql = "update MyTable set MyFieldValue='".$_REQUEST['myfield_'.odbc_result($rs, "ID")]."' where (ID=".odbc_result($rs, "ID").")"; odb

[PHP] parsing

2003-03-28 Thread Diana Castillo
Hi, when I am parsing an XML document, it doesnt parse paragraphs that have line feeds correctly. For instance, if the tag is line 1 line2 line3 it loses everything before line 3 . seems to take the line feeds as a new node or something. does anyone have any tips to get it to ignore the line fee

[PHP] uploading large files through php

2003-03-28 Thread Dimitar Haralanov
Hi, I have a script that allows the user to upload a file. Sometimes the files are going to be rather large (in the order of 60Mb). I know that this is very dangerous but only trusted users will be able to upload since they have to login through ssl and the entire session is throug

[PHP] How to debug XSLT Errors?

2003-03-28 Thread Benjamin Walling
I'm trying to use the xslt_* functions, but I can't get any decent error messages out of them. I've used the XML and XSL I'm passing it in IE, and it gets processed and transformed correctly. The only error I get is: Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invali

[PHP] Classes

2003-03-28 Thread Donahue Ben
I have a ClassA file and a ClassB file stored in separate directories. I am trying to get ClassB to initiate a ClassA object. But since they are stored in seperate directories I get an error. So I tried including the ClassA file in ClassB constructor: function ClassB() { include("../A/ClassA.

RE: [PHP] Grid edit form

2003-03-28 Thread Ford, Mike [LSS]
> -Original Message- > From: Daniel Harik [mailto:[EMAIL PROTECTED] > Sent: 28 March 2003 18:55 > > Jim Lucas wrote: > > > This is untested, but I seem to recall doing something like > this on a > > project last year. > > > > > > > > > > > > > > > > > > > > > > > > > > > >

Re: [PHP] uploading large files through php

2003-03-28 Thread Larry E. Ullman
The problem that I am facing is that I can get the script/browser/php to pass such large file. I have modified the upload_max_size variable in php.ini to be larger the 60Mb but this still does not help! Is there any hard limitation that I am unaware of? You'll probably need to adjust the follow

[PHP] line feeds

2003-03-28 Thread Diana Castillo
How can I remove all line feeds from a document? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] uploading large files through php

2003-03-28 Thread Dimitar Haralanov
On Fri, 28 Mar 2003 12:39:10 -0500 Larry E. Ullman wrote: > memory_limit = 8M ; Maximum amount of memory a script may consume > (8MB) Does this mean that the content of the entire file will be stored in memory before it is written to disk? Thanx -- Mit

[PHP] Other PHP developers in Louisville, KY?

2003-03-28 Thread Steve Magruder
Hi, I'm a PHP developer in Louisville, KY interested in forming a PHP developers group. Currently, we have three individuals signed up at http://php.meetup.com but we need at least 5 to go forward with a first meeting. If you're interested, please sign up. It should be a lot of fun. Rega

[PHP] Re: [PHP-INST] PHP: Cannot send session cookie - headers already sent by

2003-03-28 Thread Matt
- Original Message - From: "Atif Jakupovic" <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 1:14 PM Subject: [PHP-INST] PHP: Cannot send session cookie - headers already sent by > Please, could you help me to find out why I'm getting an error message > like one below. > > Warning:

Re: [PHP] file

2003-03-28 Thread Steve Keller
At 3/28/2003 10:26 AM, Diksha Neel wrote: > i have a simple program to open and write a file. > but the file is not getting created. > can anyone please spot the mistake? > echo"hi?how are u doing??"; > $fp = fopen ("sandrew.html", "w"); > string="hii am $string = > fine"; > $contents=fwrite($f

[PHP] What is the e-mail to unsuscribe of the mailing-list?

2003-03-28 Thread Orlando Pozo
What is the e-mail to unsuscribe of the mailing-list? - Yahoo! Messenger Nueva versión: Super Webcam, voz, caritas animadas, y más #161;Gratis!

Re: [PHP] Random Password Making.

2003-03-28 Thread Steve Keller
At 3/28/2003 11:32 PM, Philip J. Newman wrote: > Whats the best way to make a random password with 4 letters and 2 numbers? I don't know what the "best" way is, but I had fun doing this one. I filled the first 4 elements of an array with random letters by using the minimum ASCII value of a lett

Re: [PHP] What is the e-mail to unsuscribe of the mailing-list?

2003-03-28 Thread Dimitar Haralanov
On Fri, 28 Mar 2003 19:42:06 +0100 (CET) Orlando Pozo wrote: > What is the e-mail to unsuscribe of the mailing-list? [EMAIL PROTECTED] pgp0.pgp Description: PGP signature

Re: [PHP] How to debug XSLT Errors?

2003-03-28 Thread Ray Hunter
Try using the command line sablot "sabcmd" to parse the xsl file and see if you can get any info on the well-formness of the file. If you dont have the command line version I suggest downloading an application that does xsl verification. You could also send post the file so that we can review the

Re: [PHP] How to debug XSLT Errors?

2003-03-28 Thread Benjamin Walling
I've got sabcmd and it is giving the same message. I've got about 3 hours experience with XSL, so if this file is bad, let me know. Also, do you have a recommendation for an xsl/xml validator? This XSL file works for me in IE if I return my XML to the browser along with the tag . The problem wi

[PHP] : Looking functions for deal with special characters

2003-03-28 Thread ignacio . estrada
Hi, I am getting data from a database, containing special characteres (in spanish). After that, I want to write down this data to an ascii file (.cvs), but when that is done the resulting strings does not keep the same special characteres instead of that appear strange characters. Here I want to

[PHP] Looking functions for deal with special characters

2003-03-28 Thread ignacio . estrada
Hi, I am getting data from a database, containing special characteres (in spanish). After that, I want to write down this data to an ascii file (.csv). When this file is open with excel, the resulting data on cell (strings) does not keep the same special characteres instead of that appear strange

[PHP] imap_open and 503 Error

2003-03-28 Thread Brian Mitchell
Anyone ever encounter a 503 server error when trying to open a stream to a mailbox using imap_open? If so, anyway to fix it? Thanks, Brian

[PHP] webeditor

2003-03-28 Thread Daniel Guerrier
Does anyone know of an open source webeditor that I can use to enter information into a text area field. I have a custom CMS and I would like to add webeditor functionality to the textarea fields __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA Ma

[PHP] Get the HTTP Server Username

2003-03-28 Thread Mike
Is there anyway to get the HTTP Server Username (something like $_SERVER['username']) I tried printing all the variables defined in a page (and looking at a phpinfo.php) and wasn't able to figure it out... -- Mike <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
you missunderstood my example then. then 1,2,3,4,... is only for the array, you wont be setting that with the result set from the db call. the id from the db call with be the value of row[1][id] on the process page. just think of it as a multidia indexed array Jim - Original Message -

Re: [PHP] Grid edit form

2003-03-28 Thread Jim Lucas
you don't understand how this works then... Jim - Original Message - From: "Ford, Mike [LSS]" <[EMAIL PROTECTED]> To: "'Daniel Harik'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 9:44 AM Subject: RE: [PHP] Grid edit form > > -Original Message- > > From:

RE: [PHP] Get the HTTP Server Username

2003-03-28 Thread Don Read
On 28-Mar-2003 Mike wrote: > Is there anyway to get the HTTP Server Username (something like > $_SERVER['username']) I tried printing all the variables defined in a > page (and looking at a phpinfo.php) and wasn't able to figure it out... > -- > Mike <[EMAIL PROTECTED]> > $_SERVER['PHP_AUTH_USE

[PHP] Checking a string for # of charactors.

2003-03-28 Thread Philip J. Newman
I would like to check that a string as more than 20 charactors in it. Can someone point me in the right direction. Thanks .. -- Philip J. Newman. Head Developer [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Checking a string for # of charactors.

2003-03-28 Thread Johnson, Kirk
http://www.php.net/manual/en/function.strlen.php Kirk > I would like to check that a string as more than 20 > charactors in it. Can > someone point me in the right direction. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] last questions

2003-03-28 Thread David T-G
Steve, et al -- ...and then Steve Jackson said... % ... % // check an email address is possibly valid % if (ereg("[EMAIL PROTECTED]", % $email)) ... You could just downcase the address and save some chars; email is case-insensitive. You've left out the '+' character used for name+extensions

[PHP] Re: Include Question

2003-03-28 Thread Tim Burden
You could try this instead: Checklogin.php if (!$name || !password) { $message = $enter_info; } if ($message){ include ("login.php"); echo $message; exit; } But the way you had it should work, you might just need to global $message; right before the echo in login.php in case it is insi

  1   2   >