[PHP] FORM problem
Hello! I am having a problem when people copy and paste text inside a TEXTAREA in a form that contains double quotes ' " ' . The first file is a simple form. The second one is a php script that treats the data from the user and stores in a MySQL table. Onyone has any ideas? I need to use javascript to treat the variables before I execute submit? Thank you, Rom
[PHP] Freaking difficul thing to do (at least for me)
Hey Folks! I have the following situation: I store in a MySQL table part of the HTML code that is used to mount dinamically the pages of a web site. The file looks something like this: Before I enter any data in the database I put HTML comments like this: before and after any text that appear as a result of the HTML formatting in the browser, like this: ... This is a bogus text used in this example in this boring example. ... My idea was to create a parser later that would get this result from the database and, in an administration module that I create, let the user modify the text from the page without touching the HTML code. So let's say: Our companies operate under a very simple set of rules: We try always to offer superior products at competitive prices We work to develop proprietary technologies that will give us a competitive advantage We engage in new enterprises in a controlled and conservative manner We are committed to our employee’s well being and professional development Would appear in the browser like this: Our companies operate under a very simple set of rules: o We try always to offer superior products at competitive prices o We work to develop proprietary technologies that will give us a competitive advantage o We engage in new enterprises in a controlled and conservative manner o We are committed to our employee’s well being and professional development But in the administration module all the text surrounded by the tag like this: We are committed to our employee’s well being and professional development would become something like this: We are committed to our employee’s well being and professional development where the edit_buttom.gif would appear beside of each text that could be edited in that page. Any ideas? Thank you in advance, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Ooops - I forgot the question... Freaking difficul thing to do (at least for me)
Hey Folks! I have the following situation: I store in a MySQL table part of the HTML code that is used to mount dinamically the pages of a web site. The file looks something like this: Before I enter any data in the database I put HTML comments like this: before and after any text that appear as a result of the HTML formatting in the browser, like this: ... This is a bogus text used in this example in this boring example. ... My idea was to create a parser later that would get this result from the database and, in an administration module that I create, let the user modify the text from the page without touching the HTML code. So let's say: Our companies operate under a very simple set of rules: We try always to offer superior products at competitive prices We work to develop proprietary technologies that will give us a competitive advantage We engage in new enterprises in a controlled and conservative manner We are committed to our employee’s well being and professional development Would appear in the browser like this: Our companies operate under a very simple set of rules: o We try always to offer superior products at competitive prices o We work to develop proprietary technologies that will give us a competitive advantage o We engage in new enterprises in a controlled and conservative manner o We are committed to our employee’s well being and professional development But in the administration module all the text surrounded by the tag like this: We are committed to our employee’s well being and professional development would become something like this: We are committed to our employee’s well being and professional development where the edit_buttom.gif would appear beside of each text that could be edited in that page. My question is how I can do that after I get the data from the database? I mean how I can make this admin module to work? Thank you in advance, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] transforming an HTML Comment in a HTML TAG
Hey Folks! I am bringing from the database HTML source like this: We are committed to our employee’s well being and professional development I would like to make this: We are committed to our employee’s well being and professional development So, before the end HTML comment I would like to add an image. How do I do that? Thank you, Rom
Re: [PHP] transforming an HTML Comment in a HTML TAG
This is a nice idea but would not be more efficient if I substitute the entire block like this: this is what I have in the database: ANY TEXT this is what I want: ANY TEXT what youl be a REGEX to substitute that block for this one above? Thank you, Rom > Then, you get your complete text into $buffer and just: > > $endtag = ""; >$imgtag = " " > .""; >$output = ereg_replace($endtag, $imgtag.$endtag, $buffer); > ?> > > Jason Murray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] transforming an HTML Comment in a HTML TAG
> Either way, it should be easy enough to change that code I gave you > to do that? I know what you mean, but I have more than 200 rows already with these surrounding my texts and to modify manually would take ours... I didn't think in that before... How would be a REGEX to recognize the tag and ANY TEXT below? ANY TEXT because if I could recognize the entire block and make it a string, it would be possible to use $ in REGEX to exchange only the end of the string. What do you think? Thank you -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] REGEX
Hey people! What is wrong with this code? $buffer = split("([0-9] -->)",$pagedata); $x = count ($buffer); echo $x; for ($i=0;$i<$x;$i++) { ereg("([0-9] -->)", $buffer[$i], $text); ereg_replace (" -->","", $text[1]); echo $text[1]; } Since $pagedata has 8 appearences of the REGEX I am looking for and it is only printing the first one... Help! ;-) Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I once saw a site where php codes, algorithms specially, where posted.
I think that is what you are looking for... http://px.sklar.com/ anyway in php.net they have a bunch of them in the links section. Have fun! Rom - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 15, 2001 1:23 AM Subject: [PHP] I once saw a site where php codes, algorithms specially, where posted. > It has px...something...i cannot remember the exact site. > > could someone point me to that site? > > thank you. > > bernie > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] How do I do to update part of a string?
I have a big string. How can I do to find some text inside and modify that text? I was thinking about ereg_replace(). But it is capable to handle big chuncks of text? If yes, it will notbe too heavy for theserver? Any other ideas? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Reading specific data from a .txt file into PHP
Another good way to do that is to load the file in the database. The cities are a constant, and you can have them loaded in the database by a script that check if they exist, if not create a new row with the new city; if exist you update the data only... Because if each time that a user goes to a page and this script check in the text for a specific city, it would be very slow... it would be easier, in my point of view, that the same script that grab the file from the server also update the data in the database table. This will give you more power like, the time that was updated, number of times per day and etc, that you can show to your users. Have fun, Rom - Original Message - From: Glen Scott <[EMAIL PROTECTED]> To: James Holloway <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 10:15 AM Subject: Re: [PHP] Reading specific data from a .txt file into PHP James, The trouble is, that there are about 3000 cities in the text file. I'm >assuming that I fill use fopen(); and fread(); to open and read the files, >but does anyone know of a way of singling out one line (say: > >CYGL 161346Z 34004KT 15SM -SN BKN011 BKN030 RMK SF6SC1 > >) from the whole text file? Like if a variable, $city = CYGL, is it >possible to then go to that one line in the text file and read all the >information from just one line? I'm pretty confident I could then split the >information up into readable variable using the split(); function :) Assuming the first field (i.e. CYGL) is unique, just read each line and check using a regular expression whether it matches the city you require. If it matches, you can stop reading the file and do whatever you need to do with the line. Regards, Glen - Design Solution Limited t: +44 (0)1502 513008 f: +44 (0)1502 588622 e: [EMAIL PROTECTED] w: http://www.designsolution.co.uk Nouvotech House, Harbour Road, Oulton Broad, Suffolk, NR32 3LZ, UK - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How to handle multiple lines in PHP?
you could use nl2br command on the string that holds the data... check this for further info... http://www.php.net/nl2br Have fun, Rom - Original Message - From: david klein <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 11:12 AM Subject: [PHP] How to handle multiple lines in PHP? I have a textarea in one php page to allow user to leave message. How ever, if the user input(three lines): 123 456 567 after I get it through some php scripts, and put it into database, later on, I try to display it, but it becomes(only one line): 123 456 789 Does anyone know how to handle this? One idea is to convert the to "" before putting it into the database, but how can we detect the in PHP? Or is there any other ways? Thank you very much in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Netscape's back button not working like Explorer's...Why?
in the buttom href put this: javascript:history.go(-1) works great to me... on click doesn't work very well o netscape in this cases... I expect that thisis what you want! Rom - Original Message - From: Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> To: Todd H MacPherson <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 12:04 PM Subject: Re: [PHP] Netscape's back button not working like Explorer's...Why? On Tue, 16 Jan 2001, Todd H MacPherson wrote: > Hi > > I have 2 forms: > > subscribe.php > confirm.php > > If the user enters data correctly in subscribe.php I have an an include > pointing to confirm.php. This gives the user a chance to review the data > before final submission. > > I want the user to be able to click the back button on their browser and > view/make changes on the entry form if they find a typo but Netscape's back > button will not take me back to the original form. It just redisplays the > results of confirm.php while Internet Explorer works fine. > > Do any of you have a solution for this? I have almost pulled out all my hair > on this one. > > Thanks > > Todd > > PS Using Netscape 4.75 and IE 5.5 > Put a button labelled "Change" or "Make Corrections" or some such on your confirmation screen (and then write the code for that, of course). It's not pretty, but it can't fail. -- Ignacio Vazquez-Abrams <[EMAIL PROTECTED]> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] regexps
Why don't you do a function with an ereg inside? I don't think that exist a command like that... Rom - Original Message - From: Elliot L. Tobin <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 11:59 AM Subject: [PHP] regexps Is there a way to call one regexp on multiple variables, in one statement? In Perl, I'd do: s/this/that for ($var1, $var2, $var3); tia.. and please reply directly. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] RE: if php is so great, why is it so hard to make it work?
I just posted this in php-win - this script installs everything automatically... My guess is that Mr.Mortemarquete is doing something wrong, because he has IIS AND APACHE in the same server... I found this link and think that is useful: http://www.firepages.com.au/phpdev.htm Have fun, Rom - Original Message - From: Jerry Lake <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, January 16, 2001 1:18 PM Subject: [PHP] RE: if php is so great, why is it so hard to make it work? That is probably a good way not to get much help however, there are install kits out there that do all of the work for you. phpTriad is one. Jerry Lake -Original Message- From: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 10:14 AM To: [EMAIL PROTECTED] Subject: [PHP] if php is so great, why is it so hard to make it work? if php is so great, why is it so hard to make it work? please...someone ...for win2000 nt 5.0 ...I have apache, iis installed ...nothing's working, did changes to php.ini, my registry...httpd.conf nothing! nothing! nothig!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Netscape rand() not random
you need to seed the rand with srand() before the rand() command... cheers, Rom - Original Message - From: Joel Dossey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 1:39 PM Subject: [PHP] Netscape rand() not random Hello, I have been toying with php for a short while and have problems getting the following code to correctly execute on Netscape: "; } ?> I included the headers because I thought this would prevent caching, but even still, everytime I reload and shift-reload Netscape (browser cache is set to zero) I receive the same output from first access, which really ruins any true random activity. Any ideas? thanks much, Joel Dossey __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP]
I didn't know that - very intersting! thank you Egon, this reaaly helps... Rom - Original Message - From: Egon Schmid (@work) <[EMAIL PROTECTED]> To: Karl J. Stubsjoen <[EMAIL PROTECTED]> Cc: PHP Mailing List <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 1:51 PM Subject: Re: [PHP] > Is PHP the implied script, so that it is okay to begin PHP code like this vs. like this When is it not implied? You should use http://www.six.de -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Disk Space Usage
I think that these are your answer: Memory use explanation in MYSQL DB: http://www.mysql.com/doc/m/y/myisamchk_memory.html Memory used by MYSQL DB: http://www.mysql.com/doc/M/e/Memory_use.html MYSQL DB Status: http://www.mysql.com/doc/S/H/SHOW_STATUS.html Problems with HARD DISKS and MYSQL DB: http://www.mysql.com/doc/D/i/Disk_issues.html Have fun, Rom - Original Message - From: [ rswfire ] <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:09 PM Subject: [PHP] MySQL Disk Space Usage Is it possible to find out how much disk space a particular number of rows in a table takes up?? If you have an answer, please email me directly. Thank you!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MySQL Disk Space Usage
this page sho you in how to retriev table info (like space used) from a mysql table using myisamchk... Give it a look! http://www.mysql.com/doc/T/a/Table-info.html The trick would be create a virtual table by join and use this command to mesure the amount of memory beeing used by each user.. What do you think? Rom - Original Message - From: [ rswfire ] <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:42 PM Subject: Re: [PHP] MySQL Disk Space Usage Thank you for the reply, however, I do not believe this will solve my problem. So please let me explain what I am trying to do. I'll use an example. Let's say I have a guestbook application. And let's say that several different people have their own guestbooks. I would create a guestbook table with, let's say: rowid person_id (...other fields...) What I want to do is something like a SELECT query, where I select all of the rows by person_id. Then, I want to find out how much DISK SPACE is being used by these particular rows. I am doing this to determine how much disk space is being used by any particular client. Each client is allocated a certain amount of disk space usage on my server and I need to determine how much space they are using in the database. Any ideas on how to do this in PHP??? Please email me directly with a response. Thank you ----- Original Message ----- From: Romulo Roberto Pereira <[EMAIL PROTECTED]> To: [ rswfire ] <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 2:29 PM Subject: Re: [PHP] MySQL Disk Space Usage > I think that these are your answer: > > Memory use explanation in MYSQL DB: > http://www.mysql.com/doc/m/y/myisamchk_memory.html > > Memory used by MYSQL DB: > http://www.mysql.com/doc/M/e/Memory_use.html > > MYSQL DB Status: > http://www.mysql.com/doc/S/H/SHOW_STATUS.html > > Problems with HARD DISKS and MYSQL DB: > http://www.mysql.com/doc/D/i/Disk_issues.html > > Have fun, > > Rom > - Original Message - > From: [ rswfire ] <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, January 17, 2001 2:09 PM > Subject: [PHP] MySQL Disk Space Usage > > > Is it possible to find out how much disk space a particular number of rows > in a table takes up?? If you have an answer, please email me directly. > Thank you!! > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Homepage
what you can do also is using a HTTP header to redirect the user automatically to the index.php: the head of index.html could look like this: Untitled Document By this way you don;t need to change anything on apache... Rom - Original Message - From: S Bey <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:35 PM Subject: [PHP] Homepage Just a small (and hopefully easy) question. Is there a PHP equivalent of index.html? I want to be able to go straight to a PHP script without the user specifying the filename. Thanks, Steve. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Hyperlink?
do this INSIDE the head tags: this create the famous effect of when you mouse over appears the underline you can also set colors by: color: #XX, like the following: Have Fun! Rom - Original Message - From: Wee Chua <[EMAIL PROTECTED]> To: PHP (E-mail) <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 4:42 PM Subject: [PHP] Hyperlink? Hi all, Could anyone tell me how to show a hyperlink without underline, just regular text which contains link. Thanks. regards Calvin Chua Systems Analyst InterClean Equipment, Inc. 734-975-2967 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sub Newbie Question On Error Message
I think that the file is always there...It would not be easy to sabe the current message in a text file and compare it with the new one that fopen is bringing?? Rom - Original Message - From: Toby Butzon <[EMAIL PROTECTED]> To: Dave Stewart <[EMAIL PROTECTED]>; PHP (General) <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 6:36 PM Subject: Re: [PHP] Sub Newbie Question On Error Message Take a look at the changes I made to your original post; this assumes that the file isn't there until results are posted - hope that's the case ;) --Toby > http://www.ourheadoffice.co.nz/results/race01.html", "r")) { > $rf = fread($file, 20); > $grab = eregi("(.*)", $rf, $printing); > fclose($file); > echo ""; > echo $printing[1]; } else { echo "Results will be available after the event."; } > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sub Newbie Question On Error Message - Corrected...
I think that the file is always there...It would not be easier to save the current message in a text file and compare it with the new one that fopen is bringing?? Rom - Original Message - From: Toby Butzon <[EMAIL PROTECTED]> To: Dave Stewart <[EMAIL PROTECTED]>; PHP (General) <[EMAIL PROTECTED]> Sent: Wednesday, January 17, 2001 6:36 PM Subject: Re: [PHP] Sub Newbie Question On Error Message Take a look at the changes I made to your original post; this assumes that the file isn't there until results are posted - hope that's the case ;) --Toby > http://www.ourheadoffice.co.nz/results/race01.html", "r")) { > $rf = fread($file, 20); > $grab = eregi("(.*)", $rf, $printing); > fclose($file); > echo ""; > echo $printing[1]; } else { echo "Results will be available after the event."; } > ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] fast question about session_start
Hello! Two scripts: first.php and second.php I am a little bit confused... since I session_start() in first.php, I will need to session_start() in second.php also? first.php thank you, Rom
Re: [PHP] fast question about session_start
just discover - session by cookie sucks using db session handling it is better! Rom - Original Message - From: Romulo Roberto Pereira <[EMAIL PROTECTED]> To: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 1:39 AM Subject: [PHP] fast question about session_start Hello! Two scripts: first.php and second.php I am a little bit confused... since I session_start() in first.php, I will need to session_start() in second.php also? first.php thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Ethics question...
Copyright? This do not exist!!! See the case of NAPSTER... This drive me nuts! Rom - Original Message - From: Egan <[EMAIL PROTECTED]> To: Les Neste <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 2:38 AM Subject: Re: [PHP] Ethics question... On Thu, 18 Jan 2001 01:56:18 -0500, Les Neste <[EMAIL PROTECTED]> wrote: >What Egan wrote is very true. I speak with some knowledge -- having >weathered a copyright violation suit based on the action of one of my >employees -- and if you write it (as anything other than an employee) then >you own it, 'it' being the source code and the program compiled from that >source code. > >Egan, you mentioned something new to me: that you as author own it except >for 'that one client who paid for it'. Can you offer some citation to back >this up? It's no different from buying a book at the bookstore. The one copy you pay for is yours to use. However, that doesn't mean you also have the right to take it down to a friendly neighborhood printer and have them print up a few dozen extra copies for you. It's mostly common sense. The client does not get "copyrights" to make additional copies, but that does not prevent them from using the one copy they did pay for. Just like a book bought at the bookstore. Any copyright attorney should tell you the same thing, I expect. Egan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quick question on the passed variables between scripts
Hello! I have one script that has a bunch of checkboxes in a form, all them with different names. As you know the only submit the ones that are checked. I would like to know witch ones the user checked (they will come in the path as variables I suppose) because I need to make a sum of the ones that are checked, and right now I am using isset() to verify before I sum. This is way too bad, because as I have 48 checkboxes I have too many IFs. Please help! Rom Example: this is what I am doing: script 1: script 2: $sum = 0; if (isset($cb01)) $sum = $sum + $cb01; if (isset($cb02)) $sum = $sum + $cb02; if (isset($cb03)) $sum = $sum + $cb03; if (isset($cb04)) $sum = $sum + $cb04; if (isset($cb05)) $sum = $sum + $cb05; if (isset($cb06)) $sum = $sum + $cb06; if (isset($cb07)) $sum = $sum + $cb07; if (isset($cb08)) $sum = $sum + $cb08; if (isset($cb09)) $sum = $sum + $cb09; if (isset($cb10)) $sum = $sum + $cb10; echo $sum; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] isset inside echo?
it is possible to use isset inside a echo? like this: $checked = "CHECKED"; $nothing = ""; echo ""; Rom
[PHP] srtoring user selection on the database...
hello! I have a form and in this form I have 48 checkboxes. is there a way that my program could remember which ones were selected? looks like this:: ... I would lke to remember which ones the user clicked on... Thank you! Rom
Re: [PHP] srtoring user selection on the database...
Hey!!! thank you for your answer... what you think about this solution: while(list($key, $val) = each($cb)) { if ($val == 1 && $key != 0) { $acc = $key; } else { $acc = $acc.",".$key; } } // by the way this: $acc=.$key would be a valid command? like the c++ $a =+ $b in this solution I store all the indexes that have a value 1 or that are setted.. so let's say tha the user had click in 2,4,8,25 I would have $acc=2,4,8,25... later on I explode that and I will have the clicks... What do you think? Rom - Original Message - From: jeremy brand <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 5:27 PM Subject: Re: [PHP] srtoring user selection on the database... Yes you can. I hate to say it, but there isn't any one answer. You are going to need to keep track of the user (using most any form of sessions). Once you can track the user, then use that tracking code to store the data. You will have to decide how you want to store it in your DB. You could use serialized values (yuck!) or spend some time with your friend that has taken database class and come up with some rational, normalized tables to represent your data. Then store your data in these tables. Retrieve them, etc. Of course, if you don't need to store them more than past the next page, you could just print them out as elements. while(list($key, $val) = each($cb)) print '' . "\n"; Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 17:18:15 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] srtoring user selection on the database... > > hello! > > I have a form and in this form I have 48 checkboxes. is there a way that my program could remember which ones were selected? > > looks like this:: > > > > > > > > ... > > > > > > I would lke to remember which ones the user clicked on... > > Thank you! > > Rom > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] date problem: some months have 5 weeks... how I discover which ones?
Hey! A little bit of definition: - a week start on sunday and ends on saturday; - a year has 365/7 ~= 52 weeks; How do I discover what months have 5 weeks and what have 4? Rom
Re: [PHP] date problem: some months have 5 weeks... how I discoverwhich ones?
For a newspaper, a week start on sunday and ends in a saturday. Media planners divide ads in newspapers by monhs and than by weeks, respectively. so let's say: january 2001 started in a monday Su Mo Tu We Th Fr Sa 123 4 5 6 - 1st week 7 89 10 11 12 13 - 2nd week 14 15 16 17 18 19 20 - 3rd week 21 22 23 24 25 26 27 - 4th week 28 29 30 31 - 5th week So january is a month that has 5 weeks for a newspaper, because if I would put an ad on a tuesday, january has 5 tuesdays.. got it? How do I do to calculate that? Damn question! Rom - Original Message - From: jeremy brand <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 7:14 PM Subject: Re: [PHP] date problem: some months have 5 weeks... how I discoverwhich ones? All months have more than 4 weeks except February (but only when it is not a leap year). I'm probably not understanding what exactly you are trying to do. By your definition then, wouldn't this month only have 3 weeks? January 2001 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Yet there are 10 unaccounted days which is 1 and 3/7 more weeks. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - "LINUX is obsolete" -- Andy Tanenbaum, January 29th, 1992 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - http://www.JEEP-FOR-SALE.com/ -- I need a buyer Get your own Free, Private email at http://www.smackdown.com/ On Thu, 18 Jan 2001, Romulo Roberto Pereira wrote: > Date: Thu, 18 Jan 2001 19:07:31 -0500 > From: Romulo Roberto Pereira <[EMAIL PROTECTED]> > To: php-general <[EMAIL PROTECTED]> > Subject: [PHP] date problem: some months have 5 weeks... how I discover which ones? > > Hey! > > A little bit of definition: > > - a week start on sunday and ends on saturday; > > - a year has 365/7 ~= 52 weeks; > > How do I discover what months have 5 weeks and what have 4? > > Rom > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Addendum to the question: as a cgi version...
Hey! adding to the question above: as a cgi version what are the authentications methods available?
[PHP] best user authentication method?
hello! What is the best user authentication methd for linux (apache)? and for windows (IIS)?
[PHP] getting from PHP the vars that are in the memory during the execution of the script...
Hey! Is it possible to get the names of the variables allocated in the memory? thank you, Rom
Re: [PHP] Pre-loading HTML form w/ mySQL data
There you go: WHERE ; // execute query $query_result = mysql_query ($query,$dbconnection) or die ("Couldn't execute query in Database."); // fetching values with while while ($row = mysql_fetch_array ($query_result)) { $VAR1= $row["COLUMN1"]; $VAR2 = $row["COLUMN2"]; } echo" ?> - Original Message - From: Anthony Rodriguez <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 8:06 AM Subject: [PHP] Pre-loading HTML form w/ mySQL data I've a mySQL db with user information (e.g.: name, address, phone, etc.). I'd like to pre-load an HTML form with the existing user information in order to enable the users to update some of the information. Are there any PHP sample scripts that I may look at to do this? Thank you! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help w/ regular expressions for banned words
try this; I am working on the last word... ereg replace is not finding the REGEX "\.$" - anyone has a clue? "; echo $string.""; for($i=0;$i<$num;$i++) { $string = eregi_replace("{$bannedwords[$i]}","[censored]",$string); } */ echo $string.""; // take out the damn ; . : chars on the end of the string and save for later /* elseif (ereg("\;$",$string)) { ereg_replace("\;$","",$string); $semmicolon = TRUE; } elseif (ereg("\:$",$string)) { ereg_replace("\:$","",$string); $colon = TRUE; } else { $dot = TRUE; $semmicolon = TRUE; $colon = TRUE; } */ $hasdot = ereg("\.$",$string); if ($hasdot) { ereg_replace("\.$","test",$string); $dot = TRUE; } // the middle words reset($bannedwords); foreach ($bannedwords as $word) { $string = eregi_replace(" {$word} "," [censored] ",$string); } echo $string.""; // test the start word and exchange reset($bannedwords); foreach ($bannedwords as $word) { $string = eregi_replace("^{$word}","[censored] ",$string); } echo $string.""; // test the end word and exchange reset($bannedwords); foreach ($bannedwords as $word) { $string = eregi_replace("{$word}$","[censored]",$string); } echo $string.""; echo $dot.""; echo $hasdot; ?> - Original Message - From: Team JUMP <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 12:35 PM Subject: Re: [PHP] Help w/ regular expressions for banned words Thanks for your help. Unfortunately, [:space:]$bannedwords[$i][:space:] would not work, since I need to also check for the first and last word. In a last-case scenario I could write special code for the first and last word, but that may get ugly with bug-checking... but I've already tried "\s+$bannedwords[$i]\s+" to no avail. I believe [:space:] is just a substitute for \s+, right? Yeah, I've tried \<$bannedwords[$i]\> too, unfortunately. Like I said before, eregi_replace("a","[censored]",$string) makes a match, but eregi_replace("\","[censored]",$string) or eregi_replace("\ba\b","[censored]",$string) does not. Most odd. Thanks for your help, though. Anyone else have suggestions? --Neal on 1/20/01 12:20 PM, CC Zona at [EMAIL PROTECTED] wrote: > In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] > (Team JUMP) wrote: > >> $num=count($bannedwords); >> for($i=0;$i<$num-1;$i++) >> { >> $string = >> eregi_replace("\b$bannedwords[$i]\b","[censored]",$string); >> } >> >> >> For whatever reason, no word in $bannedwords will match in the string. I've >> tested it with simple expressions like "\btest\b" and it will not match the >> word "test". > > Have you tried it with either "[:space:]$bannedwords[$i][:space:] or > "\<$bannedwords[$i]\>" yet? Also, I think using a foreach($bannedwords as > $current_word) would be a better choice here; more compact, and loops all > the way to the end of the array even when the numerical index does not > follow the expected sequence. (BTW, if you want to stick with the for() > and you know the index numbers will always be sequentially zero to > whatever, then your test should be just $i<$num. Otherwise, you're > skipping the final loop.) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What's wrong with this link?
the slashes ate no the correct escape slashes... the correct would be: print "\">Click Here"; - Original Message - From: Mike Yuen <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 1:25 PM Subject: [PHP] What's wrong with this link? I realize my slashes are most likely in the wrong spot and i'm new to this PHP stuff so a little help would be appreciated. I get a parse error print "/">Click Here"; Thanks, Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] get last directory of a full path? (parent directory)
Hello! > whats the easiest way to go from "/dir1/dir2/dir3/hello.php" to "dir3/" ? > dirname will cut off hello.php but i want to cut dir1 and dir2 as well I believe that this will do the job
Re: [PHP] GetImageSize problem
Hello! First - some ISP block you from get files from their server by a httpd request (that is what php does... I think!). To be sure if this is set or not, in the other ISP (not the one that the images are) write a simple html like this: loading images between servers http://Domain/ImagesDir/ImagesName.gif"> In "http://Domain/ImagesDir/ImagesName.gif" be sure to put the correct domain and location of the image. This should show the image... If not you could have two problems: the link is wrong or the filter is set. Imagine this - I have a web site in an ISP with my domain like: http://www.mydomain.com and all the paths are gting the images from a free server like geocities.com so I don;t expend money on buying large amounts of bandwith for my site... If you think this way you know why they do that. if this works, just use thi path "http://Domain/ImagesDir/ImagesName.gif" in all your scripts for getimagesize... I expect that this helps. Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] GetImageSize problem
If you relly don't like the text jumping you can do a little script that can parse the width and height for each image, I mean get this info from the html files... But you will have to pin point each one... The good thing that the script is here... http://www.rezox.com) # define(GIF_SIG, "\x47\x49\x46"); define(JPG_SIG, "\xff\xd8\xff"); define(PNG_SIG, "\x89\x50\x4e\x47\x0d\x0a\x1a\x0a"); define(JPG_SOF0, "\xc0"); /* Start Of Frame N */ define(JPG_SOF1, "\xc1"); /* N indicates which compression process */ define(JPG_SOF2, "\xc2"); /* Only SOF0-SOF2 are now in common use */ define(JPG_SOF3, "\xc3"); define(JPG_SOF5, "\xc5"); /* NB: codes C4 and CC are NOT SOF markers */ define(JPG_SOF6, "\xc6"); define(JPG_SOF7, "\xc7"); define(JPG_SOF9, "\xc9"); define(JPG_SOF10, "\xca"); define(JPG_SOF11, "\xcb"); define(JPG_SOF13, "\xcd"); define(JPG_SOF14, "\xce"); define(JPG_SOF15, "\xcf"); define(JPG_EOI, "\xd9"); /* End Of Image (end of datastream) */ define(JPG_SOS, "\xda"); /* Start Of Scan - image data start */ define(RD_BUF, 512); /* amount of data to initially read */ function GetURLImageSize( $urlpic $fd= @fopen($urlpic,"r"); fd){ #read in 1k, enough for GIF,PNG. #continue to read from file, if the JPG chunk exceeds this $imgData = fread( $fd,RD_BUF ); if( substr($imgData,0,3)==GIF_SIG $dim =unpack ("v2dim",substr($imgData,6,4) ); $width=$dim["dim1"]; $height=$dim["dim2"]; $type = 1; } elseif( substr($imgData,0,8)==PNG_SIG $dim =unpack ("N2dim",substr($imgData,16,8) ); $width=$dim["dim1"]; $height=$dim["dim2"]; $type = 3; } elseif( substr($imgData,0,3)==JPG_SIG # JPG CHUNK SCAN $imgPos = 2; $type = 2; $buffer = RD_BUF-2; while($imgPos < strlen($imgData)) /* synchronize to the marker 0xFF */ $imgPos=strpos(&$imgData,0xFF,$imgPos)+1; $marker = $imgData[$imgPos]; do { $marker = ord($imgData[$imgPos++]); } while ($marker == 255); /* find dimensions of block */ switch (chr($marker)) /* Grab width/height from SOF segment (these are acceptable chunk types) */ case JPG_SOF0: case JPG_SOF1: case JPG_SOF2: case JPG_SOF3: case JPG_SOF5: case JPG_SOF6: case JPG_SOF7: case JPG_SOF9: case JPG_SOF10: case JPG_SOF11: case JPG_SOF12: case JPG_SOF13: case JPG_SOF14: case JPG_SOF15: $dim =unpack ("n2dim",substr($imgData,$imgPos+3,4) ); $height=$dim["dim1"]; $width=$dim["dim2"]; break 2; file://found it so exit case JPG_EOI: case JPG_SOS: return FALSE;/* End loop in case we find one of these markers */ default:/* We're not interested in other markers */ $skiplen = (ord($imgData[$imgPos++])<<8)+ord($imgData[$imgPos++])-2; /* if the skip is more than what we've read in, read more */ $buffer -= $skiplen; if( $buffer<512 ){ #if the buffer of data is too low,read more file. $imgData .= fread( $fd,$skiplen+1024 ); $buffer += $skiplen+1024; }; $imgPos += $skiplen; break; }; file://endif check marker type }; file://endif loop through JPG chunks }; file://endif chk for valid file types # got the pic dimensions, close the file fclose ($fd); return array( $width,$height,$type ); } else return array( '','','' ); }; file://endif valid file pointer chk }; // end function ?> Rom - Original Message - From: Sue Bailey <[EMAIL PROTECTED]> To: Romulo Roberto Pereira <[EMAIL PROTECTED]> Cc: php-general <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 10:35 AM Subject: Re: [PHP] GetImageSize problem Thanks Rom - I can get the pics with an img src tag, which is why I assumed that GetImageSize would also work - but now I'm told it only works on the local machine, so I guess I'll have to live with text jumping about while pics download. :( Romulo Roberto Pereira wrote: > > Hello! > > First - some ISP block you from get files from their server by a httpd > request (that is what php does... I think!). To be sure if this is set or > not, in the other ISP (not the one that the images are) write a simple html > like this: > &g
Re: [PHP] XML Processing Instruction ( was "
If I am not mistaken XML tags needs to be identifed. So ... Maybe we could vote the use or not of this feature? Rom - Original Message - From: Brian White <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 5:03 PM Subject: [PHP] XML Processing Instruction ( was " I was refering to whole story of using ` >-- teodor The "" construct comes from SGML/XML - it is called a "Processing Instruction"(PI). It's general purpose is to allow application to leave pieces of information in the XML that aren't strictly part of the content but allow it to help process it. Classic use of it to put in page formatting information into content ( pagebreaks, page no's etc ) that is only relevant to the paper production system. Part of the problems is that multiple different applications can use PI's, so they need to be able to tell which ones are their's - therefore the first thing that should go in a PI is some kind of indication as to which application requires it. Therefore: Always "http://www.steptwo.com.au/ [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] XML Processing Instruction ( was "
I forgot to mention that if is PHP the parser (since you are creating PHP scripts in a server that use PHP as CGI or as a module) this could not be treated by the parser? I mean, the common XML tag is To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 5:03 PM Subject: [PHP] XML Processing Instruction ( was " I was refering to whole story of using ` >-- teodor The "" construct comes from SGML/XML - it is called a "Processing Instruction"(PI). It's general purpose is to allow application to leave pieces of information in the XML that aren't strictly part of the content but allow it to help process it. Classic use of it to put in page formatting information into content ( pagebreaks, page no's etc ) that is only relevant to the paper production system. Part of the problems is that multiple different applications can use PI's, so they need to be able to tell which ones are their's - therefore the first thing that should go in a PI is some kind of indication as to which application requires it. Therefore: Always "http://www.steptwo.com.au/ [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] $HTTP_SERVER_VARS has only 1 value
He is on windows 98... - Original Message - From: Rasmus Lerdorf <[EMAIL PROTECTED]> To: Todd Cary <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 1:42 PM Subject: Re: [PHP] $HTTP_SERVER_VARS has only 1 value Are you running PHP as a CGI? On Mon, 22 Jan 2001, Todd Cary wrote: > With Apache, $HTTP_SERVER_VARS only has the element, "PHP_SELF". What > am I missing in my Apache setup? > > Todd > > -- > Todd Cary > Ariste Software > [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] quick PHP question on unset()
try $var1 = NULL I think that will work Rom - Original Message - From: indrek siitan <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 4:33 PM Subject: [PHP] quick PHP question on unset() Hi, i've got a $var1 that's referencing to a $var2 ($var1=&$var2;) .. now, when i do unset($var1) it just unlinks the reference, instead of "clearing" both variables (arrays) like i would want it to do.. any ideas how to get around that? as a bonus, the actual name of $var2 is not known at the point where unset() is done. Rgds, Tfr --==< [EMAIL PROTECTED] >==< http://tfr.cafe.ee/ >==< +372-50-17621 >==-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] MSSQL field type money bring a string not a number back
I am sorry about this - I figured out already - was nothing to do with the convertion... Rom - Original Message - From: Romulo Roberto Pereira <[EMAIL PROTECTED]> To: php-general <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 5:15 PM Subject: [PHP] MSSQL field type money bring a string not a number back Hey! After bringing and fetching the results, the data from a money field is treated like strings. There is a function or a command to make it treat the variables as numbers? Because I want to sum them. Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] MSSQL field type money bring a string not a number back
Hey! After bringing and fetching the results, the data from a money field is treated like strings. There is a function or a command to make it treat the variables as numbers? Because I want to sum them. Thank you, Rom
[PHP] ZOPE PHP
Hello! Any comments in PHP for Zope? I don't know much thought... Some people told me that Zope is good a while ago... And I saw that know they have a PHP layer... How good is this? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] ooops PHP for Zope
ooops - sorry about the other e-mail... I am sleeping here... heheheeh Hello! Any comments in PHP for Zope? I don't know much though... Some people told me that Zope is good a while ago... And I saw that now they have a PHP layer... How good is zope? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Dynamic built web pages administration
Hello, I was wondering if anybody have developed something related to dynamic web pages building and administration. I need to store the content of the site in the database and later as the user navigate, mount the content using templates. This part is easy, since PHP is very powerfull in this area. My problem would be to let the user modify the actual page content... how? any ideas? TIA, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] baffled :<:
Even better, $id[] = $myrow["id"]; then count them: for ($i=0;$i < count($id);$i++) { .. } Rom -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled :<:< This loop will only return the last record from the db as the variables are getting overwritten each time through the loop. It would make more sense to make each variable an array eg: $id[$i] = $myrow["id"]; or do something with each set of info inside the loop. Chris Mark Maggelet wrote: > On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin > ([EMAIL PROTECTED]) wrote: > >can any one see a problem with this loop? > > > > >$db = include"connect.inc"; > >$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > > > $result = mysql_query($foo,$db); > > > > > >while ( ($myrow = mysql_fetch_array($result) ) ) { > > > >$id = $myrow["id"]; > >$card = $myrow["card"]; > >$serial = $myrow["serial"]; > >$avail = $myrow["avail"]; > >$pn = $myrow["pn"]; > >$cat = $myrow["cat"]; > >$box = $myrow["box"]; > >$quote = $myrow["quote"]; > >} > >?> > > > >if i call say just $card it only displays the one record (the last > >one) > > if you call it after the loop you mean? thats what i would expect to > be there. > > >the minute i try to call $myrow["card"]; i get nothing at > >all... any idea's? > > outside the loop again? well if the last call to mysql_fetch_array() > returns false, then that sounds right too. you probably mean to do > something inside the loop. here's another tip, use extract: > > while ( ($myrow = mysql_fetch_array($result) ) ) { > extract($myrow); > echo $card."\n"; > } > > >I have script identical to this that works perfectly .. only > >difference is this one has different names for the values > > > >Peter Houchin > >[EMAIL PROTECTED] > >= > > _ __ /\ > >/_/_/_\/ |_/ \ > > /_/_/___ __ __ __ / \ > > \_/_/_\ /_/ /_/ /_/ /_/ \ _ / > > ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ > > \_//_/_/ /_/_/_/ /_/ \/_/v > > > >/_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > /_/_ _/_/ __ __ __ /_/ __ __ > > /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ > > /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ > >/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ > >= > >Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 > >* We rent the dot in .COM! ** > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] baffled :<:
even better: use foreach! $id = $myrow["id"]; .. foreach ($id as $loop) { .. } -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled :<:< This loop will only return the last record from the db as the variables are getting overwritten each time through the loop. It would make more sense to make each variable an array eg: $id[$i] = $myrow["id"]; or do something with each set of info inside the loop. Chris Mark Maggelet wrote: > On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin > ([EMAIL PROTECTED]) wrote: > >can any one see a problem with this loop? > > > > >$db = include"connect.inc"; > >$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > > > $result = mysql_query($foo,$db); > > > > > >while ( ($myrow = mysql_fetch_array($result) ) ) { > > > >$id = $myrow["id"]; > >$card = $myrow["card"]; > >$serial = $myrow["serial"]; > >$avail = $myrow["avail"]; > >$pn = $myrow["pn"]; > >$cat = $myrow["cat"]; > >$box = $myrow["box"]; > >$quote = $myrow["quote"]; > >} > >?> > > > >if i call say just $card it only displays the one record (the last > >one) > > if you call it after the loop you mean? thats what i would expect to > be there. > > >the minute i try to call $myrow["card"]; i get nothing at > >all... any idea's? > > outside the loop again? well if the last call to mysql_fetch_array() > returns false, then that sounds right too. you probably mean to do > something inside the loop. here's another tip, use extract: > > while ( ($myrow = mysql_fetch_array($result) ) ) { > extract($myrow); > echo $card."\n"; > } > > >I have script identical to this that works perfectly .. only > >difference is this one has different names for the values > > > >Peter Houchin > >[EMAIL PROTECTED] > >= > > _ __ /\ > >/_/_/_\/ |_/ \ > > /_/_/___ __ __ __ / \ > > \_/_/_\ /_/ /_/ /_/ /_/ \ _ / > > ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ > > \_//_/_/ /_/_/_/ /_/ \/_/v > > > >/_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > /_/_ _/_/ __ __ __ /_/ __ __ > > /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ > > /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ > >/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ > >= > >Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 > >* We rent the dot in .COM! ** > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] baffled :<:
I made a mistake: $id = $myrow["id"]; should read: $id[] = $myrow["id"]; -Original Message- From: Romulo Roberto Pereira [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:04 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] baffled :<:< even better: use foreach! $id = $myrow["id"]; . foreach ($id as $loop) { . } -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled :<:< This loop will only return the last record from the db as the variables are getting overwritten each time through the loop. It would make more sense to make each variable an array eg: $id[$i] = $myrow["id"]; or do something with each set of info inside the loop. Chris Mark Maggelet wrote: > On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin > ([EMAIL PROTECTED]) wrote: > >can any one see a problem with this loop? > > > > >$db = include"connect.inc"; > >$foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; > > > > $result = mysql_query($foo,$db); > > > > > >while ( ($myrow = mysql_fetch_array($result) ) ) { > > > >$id = $myrow["id"]; > >$card = $myrow["card"]; > >$serial = $myrow["serial"]; > >$avail = $myrow["avail"]; > >$pn = $myrow["pn"]; > >$cat = $myrow["cat"]; > >$box = $myrow["box"]; > >$quote = $myrow["quote"]; > >} > >?> > > > >if i call say just $card it only displays the one record (the last > >one) > > if you call it after the loop you mean? thats what i would expect to > be there. > > >the minute i try to call $myrow["card"]; i get nothing at > >all... any idea's? > > outside the loop again? well if the last call to mysql_fetch_array() > returns false, then that sounds right too. you probably mean to do > something inside the loop. here's another tip, use extract: > > while ( ($myrow = mysql_fetch_array($result) ) ) { > extract($myrow); > echo $card."\n"; > } > > >I have script identical to this that works perfectly .. only > >difference is this one has different names for the values > > > >Peter Houchin > >[EMAIL PROTECTED] > >= > > _ __ /\ > >/_/_/_\/ |_/ \ > > /_/_/___ __ __ __ / \ > > \_/_/_\ /_/ /_/ /_/ /_/ \ _ / > > ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ > > \_//_/_/ /_/_/_/ /_/ \/_/v > > > >/_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ > > /_/_ _/_/ __ __ __ /_/ __ __ > > /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ > > /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ > >/_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ > >= > >Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 > >* We rent the dot in .COM! ** > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/)
RE: [PHP] Dynamic built web pages administration
dear Plutark, Thank you for your input. But, let's say that I have the following: some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text My user don't know html. At all... So how do I do to create an edit admin that let him only modify the text? I did something like this: some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text some text It works fine, because I identify the edit areas by the comment tags. The problem with this is that if I put an option like Add New Page to the admin system, the user would have to surround the tags with the comments, I mean, he would have to edit the HTML. Pretty toff thing!!! Jesus!! Thank you, Rom -Original Message- From: Plutarck [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Dynamic built web pages administration If you are storing the content in a database, your job is a ton easier. Just add an edit link on the page you want people to be able to edit. It will link over to an edit page with the value of the current page sent in the URL via get. Get the content from the database pointed to by the url, and stick it in a variable. On the edit page have a text area. Set the "value" to the content the person can edit. When someone clicks submit, just take the content they submit and stuff it into the database using UPDATE. Of course you will need to do safety features like stripslashes() or the special character functions before storing the data, just to be safe. You will also want to have the option only available for registered users, and you probably want to limit it to users you know won't be malicious. There are many little tricks like using a little piece of javascript to execute a file on the hard drive that shouldn't be executed, malicious ActiveX controls, java applets, etc, that you don't want users writing to the page. But for administration used by only trusted people, it's actually pretty simple to put together. For use by people who aren't trusted... -- Plutarck Should be working on something... ..but forgot what it was. ""Romulo Roberto Pereira"" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > I was wondering if anybody have developed something related to dynamic web > pages building and administration. I need to store the content of the site > in the database and later as the user navigate, mount the content using > templates. This part is easy, since PHP is very powerfull in this area. My > problem would be to let the user modify the actual page content... how? any > ideas? > > TIA, > > Rom > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Help Needed in a short project with LDAP(NDS), Mirapoint and PHP as the main application server - OT (sorry)
Hello, Vox2Vox needs 2 developers for a short project. They don't need to work on site. The company is in Miami/FL and the developers can be anywhere. Please send Curriculum Vitae with your answer... Contact me directly. Pre-requisites: - Availability: NOW - 3 years experience minimum programming PHP (I mean needs to know very well PHP 4 - no bull please) - LDAP experience or equal DB experience (LDAP is a specialized DB...) - Some knowledge in Perl (needed for Mirapoint interaction - I explain more about that later - not a big deal though) - Good Javascript experience (The project works over frames and popup windows - so the developer should handle easily the interaction between them) - Good knowledge of browser capabilities for IE and NN (the project should be IE 3 and NN 3 compatible since some users of the project will be on Latin America/Europe/Asia) Quick Description of the project: Unified Communication (UC) is a reality today. Vox2Vox is a telecommunication company that work with Voice over IP (VoIP) communication between countries, linking a uOne Platform from Cisco (Vox2Vox is a platinum member) with a Public Switched Telephony Network (PSTN) around the world. This short project targets the launch of the alpha version for the UC online (internet) client (since we have phone and fax interfaces also). Basically the interface for the web is a e-mail client with some extra capabilities, and all those are already supported by the MiraPoint 2000 server. Our job would be to create a new interface, that would integrate this with our look and feel and with uOne. The uOne interaction is by LDAP. No concern with security is needed at this first phase, what make the project not so complex. More info after the approval of the candidate. Time Frame: Explanation of the project: 3 days - april, 25th to april, 27th) Development: 2 weeks (april,28th to may, 13th) Payment: Depends on developer experience. Per project type of payment (not per hour). Project Leader: Romulo Roberto Pereira Senior Internet Specialist Phone: 305.444.7433 E-mail: [EMAIL PROTECTED] Thank you!! Rom P.S.: Depending on the results of the work of each developer, it would requested the help of the developer again on the Beta-1, Beta-2 and Final Beta developements also. Those will have better time frames. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] including html pages inside an interface
Hello! This is the scenario: (a) I have an interface that will be the main interface with the user (b) I have a mail server (Mirapoint) that has a web interface (c) The web interface for the Mirapoint server is inside frames This is the problem: (a) let's say that I log in as a user from the Mirapoint web e-mail server; I will receive an interface for the user with all the e-mail readers and commands let's say like compose new e-mail and delete e-mail. (b) I want to show let's say the headers inside my interface. How do I do that? Ideas? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] including html pages inside an interface
Hello! This is the scenario: (a) I have an interface that will be the main interface with the user (b) I have a mail server (Mirapoint) that has a web interface (c) The web interface for the Mirapoint server is inside frames This is the problem: (a) let's say that I log in as a user from the Mirapoint web e-mail server; I will receive an interface for the user with all the e-mail readers and commands let's say like compose new e-mail and delete e-mail. (b) I want to show let's say the headers inside my interface. How do I do that? Ideas? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] problems creating a good auth/session control in my scripts
Hello, I create an auth system using NDS as a LDAP server. Works fine. The problem is with the session handling (from my part probabilly)... I am using the PHP session functions. Again, works fine. register the sessions, the variables. But I am beeing unable to destroy the session. To destroy the session I am doing the folowing: By everything that I read until now this is correct. As I am having this headache for a couple days and probably I am screwing up, I would like to ask you kind gents to help me out with ideas or maybe samples of a good session handling. Please help, TIA Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Wrapping text to store in the database
Hello! If a user drop a text like this in a textarea: --- the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II. The Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance. It never made it. But neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin. U.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it. --- As you can see the text is simple and there are not any html tags. How do I do to add this elements so the text become something like this below, I mean how to wrap it up in html tags? --- the U.S. Army's 3rd Infantry Division, 15th Regiment, A Company, seized a 44-car train in a tunnel 60 miles south of Salzburg, Austria. It contained an incalculable fortune in fine art, bullion, jewelry, furs, coins, stamp collections, cameras, china, linens, silver, Oriental rugs, furniture, and anything else of value that a pro-Nazi Hungarian government looted from Jewish households during World War II. The Nazis, who surrendered on May 8, 1945, had been hoping to send the goods westward toward Germany ahead of the Russian advance. It never made it. But neither did its contents revert to those who lost them, nor were they compensated, despite U.S. policy dictating that anything identifiable be returned to its nation of origin. U.S. officials decided that the train's booty couldn't be traced to Hungary's Jews, and over the Hungarian Jewish community's fierce protests, sold it at auction, at military exchanges, used it in government offices and officials' homes, and in some cases, simply stole it. --- Ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] quick question: frames OT
Hello! Just a quick ot question: >From a php script I open a frameset this divides the browser window in two rows. How do I do to get rid of the frameset without closing the window? TIA Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] easy one
Hello! How do I check if a session exist before I call session_start()? TIA, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Multi Dimensional Arrays?
Anyone knows how to determine how many levels has an array? TIA Rom -Original Message- From: Robert V. Zwink [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 10:30 AM To: Brandon Orther; PHP User Group Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Multi Dimensional Arrays? You are on the right track but doing something wrong: You are correctly assigning a string to an array: //Main Menu Array $main_menu[0] = "Menu 1"; //Represents the name of the menu But then you are taking that string one character at a time and replacing it with invalid data: //Menu 1 Array $main_menu[0][0] = "Test 1"; $main_menu[0][1] = "Test 2"; $main_menu[0][2] = "Test 3"; $main_menu[0][3] = "Test 4"; The result is echo $main_menu[0] prints: 4 This is doing exactly what you are asking it to do. Create an array then one character at a time replace it with with the first character in the provided string. You would be better of doing this: $main_menu[0][] = "Title of the Menu"; $main_menu[0][] = "Test 1"; $main_menu[0][] = "Test 2"; $main_menu[0][] = "Test 3"; $main_menu[0][] = "Test 4"; That way element [0] will always be the title and all following values will be elements in that menu. If you do the above, then type: echo count($mail_menu[0]); It will return 5. This whole thing about recursive funcions to count multiple dimensional arrays that don't really exist is incorrect. The count() function will work fine in your example, just build your multi-dimensional array correctly. If you need to count the all the elements in a multi-dimensional array then you will need to write a function that is recursive, but you shouldn't need to iterate through each element incrementing a counter to do so. Just use count(). It works fine on multi-dimensional arrays. Robert Zwink -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 12:00 PM To: PHP User Group Subject: [PHP] Multi Dimensional Arrays? Hello, I am working on a menu script that I wanted to use multi-dimensional arrays for. Here is the conf file I have: //Main Menu Array $main_menu[0] = "Menu 1"; //Represents the name of the menu //Menu 1 Array $main_menu[0][0] = "Test 1"; $main_menu[0][1] = "Test 2"; $main_menu[0][2] = "Test 3"; $main_menu[0][3] = "Test 4"; When I try to us count like: $count = count($main_menu[0]); I only get 1. My question is how do I count a multi dimensional array. Thanks for the help, Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] authenticating in other web server
Hello! I am in an server with Apache and PHP. I want PHP to authenticate in other server (Novell with Netscape). Like this: SSL (PAGE 1 SERVER 1) ->-->- SSL (PAGE 2 SERVER 2) SERVER 1: Apache and PHP SERVER 2: Novell with Netscape PAGE 1: PHP script page PAGE 2: PHP script page Without asking again the username and password (I would be passing them in the authentication time behind the scenes). Please help! Rom P.S.: In my stupidity I try to do the following: header ("Location: https://USERNAME:PASSWORD@SERVER_ADDRESS/DIR/PAGE2.PHP";); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] I need an authentication method that is good... any Ideas? - please help
Hello! I am constructing an intranet site. The site is all secure, I mean, all the pages are under a directory that needs a password to get in. These are facts: A) The user information is on a LDAP; B) The user should entry the pair login/password only once; C) Any access to the site without logging first will be routated to a login page; So what would be a good solution on that? If this work, I would like to create a documentation about it. All help will be welcome. Thank you in advance and for your attention, Romulo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] submiting the contents of an IFRAME
Hello! Anyone had tried to submit the contents (I mean the source code) of an IFRAME, so it can be available for PHP? Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] passing values to a javascript variable
Hello! The following give me: unterminated string constant (this is a javascript error) when I execute the following: while ($row = mysql_fetch_array ($data_query_action)) { $data_data = $row["data_data"]; } echo "\n var ndata=\"".addslashes($data_data)."\";\nPutCode (ndata);\n"; Ideas? Please I need help. Thank you, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] parse error in PHP Manual in php web site...
Parse error: parse error in /local/Web/sites/phpweb/include/shared-manual.inc on line 265 Fatal error: Call to undefined function: sendmanualheaders() in /local/Web/sites/phpweb/manual/en/getting-started.php on line 3 HELPPP!! :) Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] doing a search for domains
Hello, I am curious about creating a script that would bring me results of a search organized not by the actual name of the domain but the lenght of each part of a domain. This is an example: Domains that finish in .com/.net/.org with the lenght of one character: a.com a.net a.org b.com b.net b.org c.com .. aa.com aa.net aa.org .. aaa.com .. I was thinking that I would need the following: [a] a crowler for search for the domains and hosts; [b] a routine that would check and "clean" the actual captured domains; [c] a routine to present the captured and organized domains by size; Any ideas how should I start? Anyone wants to help? Thank you in advance, Rom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]