[PHP] Browsing PHP documentation from Emacs

2009-12-09 Thread Roberto
nd it might be integrated with existing php-mode implementations. Looking forward to hear feedback from you. Regards, Roberto Aloi Twitter: @prof3ta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Browsing PHP documentation from Emacs

2009-12-09 Thread Roberto
Hi Kim, this should actually work with almost all PHP documentation pages in HTML format. I personally tested it with the English package from: http://www.php.net/download-docs.php (the one that come in many HTML files). Regards, Roberto Aloi http://aloiroberto.wordpress.com Twitter: @prof3ta

[PHP] move_uploaded_file

2009-12-11 Thread Roberto
FILES["pictures"]["name"][$key]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); } } ?> The path for the upload dir should be a relative one, not an absolute one. Roberto Aloi http://aloiroberto.wordpress.com Twitter: @prof3ta -- PHP General

Re: [PHP] move_uploaded_file

2009-12-11 Thread Roberto
ion of the move_uploaded_file function and I'll check, though. Cheers, Roberto Aloi http://aloiroberto.wordpress.com Twitter: @prof3ta -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Backup to local drive

2009-12-11 Thread Roberto
Hi, you lost me a bit. Let say a user uploads a PDF file to one of your servers. What do you mean when you say "I want the users to be able to save the HTML output of their data"?!? Roberto Aloi http://aloiroberto.wordpress.com Twitter: @prof3ta On Fri, Dec 11, 2009 at 6:44 PM,

Re: [PHP] move_uploaded_file

2009-12-11 Thread Roberto
t of the server root in file system terms. Just, this should be written in CAPITAL LETTERS in the documentation. Thanks for the interest, Roberto Aloi http://aloiroberto.wordpress.com Twitter: @prof3ta > When used in PHP, an absolute path does not go off the web root. In Premise > 3 belo

RE: [PHP] How configure PHP parser 4.3.x in IIS version 6.0?

2003-07-08 Thread Roberto Ramírez
In order to use PHP on IIS6.0 you must allow IIS to use Unknown ISAPI Extensions or Unknown CGI extensions in the Web Services section in the IIS administration. If you don’t allow it, IIS don’t parse any php file because it's not allowed. I hope this helps you... Roberto -Ori

[PHP] Configuring PHP5 in IIS 6.0

2003-06-20 Thread Roberto Ramírez
d a snapshot of PHP5 on a win2003 box please tell me how to do it. Any help would be appreciated. Roberto Ramírez -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Is there a difference in this??

2002-10-03 Thread Roberto Ramírez
n i use the second, i get a server error. I dont get it!!! why is that #"$%&% server error!!! Note: I cant chage the second instruction's vars to simple text, because its inside a for loop. Using: Apache/PHP 4.2.1 in Win2k The SMTP is a Unix Service in another Server. Any help wou

[PHP] Inline Images ?

2002-07-21 Thread Roberto Ramírez
don't want to do this... but I wanna hear another possiblities before doing that... Any suggestions? Roberto Ramírez

[PHP] Re: [X-POST] PHP script to make sure MySQL is up?

2007-03-01 Thread Roberto Mansfield
odify the number of active connections allowed in the mysql config file. Good luck, Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Eregi error

2007-03-01 Thread Roberto Mansfield
Myron Turner wrote: > M.Sokolewicz wrote: $pattern = '^[a-z0-9\!\_ \.- ,/]*$'; if(!eregi($pattern, $input)){ > > the problem is that the hyphen is interpreted as regex range operator: > [a-z0-9\!\_ \.- ,/] > Rewrite this as >

[PHP] Re: Error handling

2007-03-01 Thread Roberto Mansfield
d error for the admin/developer. The details in error messages are often useful in finding vulnerabilities in an app. Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problems with thumbnail image

2007-03-02 Thread Roberto Mansfield
> I have used this method for generating the thumbnail images. I avoided > creating the thumbnails and saving to the disk as the images change very > frequently. > > Thank you so much for helping me with this one:)) > > regards > Punit Neb The problem is that your function generates thumbnail

[PHP] Re: Oracle XMLTYPE column truncates

2007-03-08 Thread Roberto Mansfield
load() method on it to get the text back. Roberto Mikey wrote: > Hi! > > I am running some tests for implementing variable metadata using > Oracle's XMLTYPE. Creating the XML and inserting it into the database > works fine, however when trying to retrieve data it truncates

[PHP] Re: Oracle XMLTYPE column truncates

2007-03-08 Thread Roberto Mansfield
Mikey wrote: > Roberto Mansfield wrote: >> Hi Mikey, >> >> OCI doesn't directly support the XMLtype so you need to convert to >> string (if < 4k) or clob before retrieving. Use: >> >> select xml_metadata.getClobVal() ... OR >> select xml_metadat

Re: [PHP] Date/time format?

2007-03-29 Thread Roberto Mansfield
Jason Pruim wrote: > Thanks everyone for your suggestions, it turns out it was a unix time > stamp and I can get it to parse out a normal date now. > > Now... on to the harder part > > What I am trying to do is learn... This is kind of just a pet project > for me to figure out how I can do it

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Roberto Mansfield
Also, you should validate the phone number (make sure it contains only numerical digits) before using it on the command line. I wouldn't trust the data to build a command line. -Roberto Rahul Sitaram Johari wrote: > ;) > > Point taken! > > exec("find /Users/rj

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Roberto Mansfield
Only do this if all the files should be publicly accessible. Otherwise, you'll need to create a php wrapper to do authorization before sending the file. -Roberto Rahul Sitaram Johari wrote: > Ave, > > I¹m going to try creating the sharepoint within my webserver, as suggeste

[PHP] Re: downloading an image

2007-04-11 Thread Roberto Mansfield
Verify that your $type is a correct mime type. Ross wrote: > tthe image does not display although it exists in the table 'images' > > > This calls the download script > > > $property_id = $_SESSION['property_id'] ; > $query = "SELECT * FROM images WHERE property_id='$property_id'"; > $resu

Re: [PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Roberto Aloi
Because you're passing the args through the Url (GET), not through a POST request. Roberto Aloi On 11 Dec 2009, at 20:37, "Eric Lommatsch" wrote: Hello, I am working with a login page to use with an application that we are planning to make available as a web service. The

Re: [PHP] move_uploaded_file

2009-12-12 Thread Roberto Aloi
This is exactly what I mean. Documentation should never leave room to interpretation. At least, this is what I think. Roberto Aloi On 11 Dec 2009, at 22:36, Ashley Sheridan wrote: On Fri, 2009-12-11 at 22:14 +, Roberto wrote: Hi Joseph, I'm perfectly fine with the concep

[PHP] transferring iis7, php5, mysql project to another server

2013-09-10 Thread Harrison, Roberto
applicationHost.config redirection.config Arachnophilia folder MySQL folder php folder phpdebug folder wwwroot folder Thanks in advance. Roberto Harrison, MLIS Technology Support Librarian Medical College of Wisconsin Libraries Link.Learn.Lead . On 9/3/13 8:31 AM, "Stuart Dallas" wro

Re: [PHP] including files outside of document root

2008-01-23 Thread Roberto Mansfield
imple directory structure. Anyone else doing that? -Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] including files outside of document root

2008-01-23 Thread Roberto Mansfield
Daniel Brown wrote: > On Jan 23, 2008 2:50 PM, Roberto Mansfield <[EMAIL PROTECTED]> wrote: >> I tend to keep the directories in the document root, but I deny access >> via an .htaccess file. This keeps the code in a simple directory >> structure. Anyone else doing tha

[PHP] Re: Generating JavaScript menus on-the-fly

2008-03-10 Thread Roberto Mansfield
If you are building select menus on the fly using javascript, look at php's json_encode function. It will create a JSON representation of your php data structure. Makes "passing" data sets to javascript very easy. Just build your array of allowed options in php, plug the data into your javascript v

Re: [PHP] Why doesn't working with array's ever stick in my thickhead?

2008-05-09 Thread Roberto Mansfield
Roberto Mansfield wrote: > (I'm assuming .226 is the cost per ounce and 464 is the total number of > ounces) It sure is Friday. This assumption doesn't make any sense! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why doesn't working with array's ever stick in my thick head?

2008-05-09 Thread Roberto Mansfield
nces. > > I need to be able to display that as: 6 # 13.824 Ounces. Then I think you want to use the mod operator: (I'm assuming .226 is the cost per ounce and 464 is the total number of ounces) $pounds = intval( .226 * 464 / 16 ); $ounces = ( .226 * 464 ) % 16; Roberto -- PHP General

[PHP] Re: breakthrough: get record, insert on different table works

2007-04-26 Thread Roberto Mansfield
password in one place. Not a bid deal in this case, but imagine if you had 10 pages, 100 pages, etc... 2. You need to validate user input before including it in your sql statements. Good luck, Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Make eclipse-php recognise custom extension as php ?

2007-04-27 Thread Roberto Mansfield
in your preferences. Give this a try: Open Window->Preferences. Under General->Editors->File Associations, add your new file extension. Highlight the new extension and use the Associated Editors box below to tie the extension to the PHP editor. Good luck, Roberto -- PHP General Mailing Li

Re: [PHP] checkboxes problem

2007-06-01 Thread Roberto Mansfield
gt;> does not match the php version, >> >> name=\"box[]\" >> >> So either my client side stuff works or the php array only returns 1 >> value >> when posted. Is there any way to for this to work? > > Let PHP use the NAME= attribute, and JS us

[PHP] Re: Removing a row from an Array

2007-06-04 Thread Roberto Mansfield
Can't you just unset() the values you don't want? Ken Kixmoeller -- reply to [EMAIL PROTECTED] wrote: > Hey - - - - - - -- > > To do this, I am: > > - looping through the array > - copying the rows that I want to *keep* to a temp array, and > - replacing the original array with the "temp' one

[PHP] Re: If statement duplicating mysql records?

2007-06-19 Thread Roberto Mansfield
k IF is the culprit. I'm guessing you have a bad join in your sql query so you are getting back more records than you expect. Have you run the query directly in to see what your results are? Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Roberto Mansfield
pen is if $row[5] =="Level1" it would change the color > to yellow, but then it would also display another line of the same info > that would have the $unclassified color assigned to it. Ahh, this is different from your original post. You have TWO if statements here. So when $row[5] = "Level1", it was satisfying the first IF statement and then falling into the ELSE of the second IF statement. Makes sense to me now why it was failing. Roberto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] If statement duplicating mysql records?

2007-06-21 Thread Roberto Mansfield
( $row[5] == "Level1" ) { // your commands } elseif ( $row[5] == "Level2" ) { // your commands } else { // your commands } This would work in the way you are thinking. Hope this helps your understanding. -- Roberto Mansfield Institutional Research and Application De

Re: [PHP] Loss of precision in intval()

2007-08-01 Thread Roberto Mansfield
Internally, 75.82 can't be stored exactly, so 75.82 * 100 is probably 7581.92 rather than the expected integer value of 7582. So intval is behaving properly. Sounds like you want intval(round($a)); [EMAIL PROTECTED] wrote: > Very weird and counter intuitive. Looking at the php manual, I see

Re: [PHP] Loss of precision in intval()

2007-08-02 Thread Roberto Mansfield
, the ridiculousness (probably not a word) of the example is > highlighted by the fact that 75.81 and 75.83 work perfectly. > > Roberto Mansfield wrote: >> Internally, 75.82 can't be stored exactly, so 75.82 * 100 is probably >> 7581.92 rather than the expected integer va

[PHP] Re: [pcre] backreferences to all matches of a repeated subexpression

2007-08-03 Thread Roberto Mansfield
Jack Bates wrote: > I'm trying to pull all the components out of strings structured like: > word followed by any number of ( dot word or square bracketed string ) > > This is an example: foo.bar[ab.cd].baz > > From the above example, I want: array('foo', 'bar', 'ab.cd', 'baz'); > > A regular exp

[PHP] FORM problem

2001-01-10 Thread Romulo Roberto Pereira
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 jav

[PHP] Freaking difficul thing to do (at least for me)

2001-01-14 Thread Romulo Roberto Pereira
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 appea

[PHP] Ooops - I forgot the question... Freaking difficul thing to do (at least for me)

2001-01-14 Thread Romulo Roberto Pereira
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 appea

[PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
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

Re: [PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
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

Re: [PHP] transforming an HTML Comment in a HTML TAG

2001-01-14 Thread Romulo Roberto Pereira
> 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 a

[PHP] REGEX

2001-01-14 Thread Romulo Roberto Pereira
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 a

Re: [PHP] I once saw a site where php codes, algorithms specially, where posted.

2001-01-14 Thread Romulo Roberto Pereira
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 sit

[PHP] How do I do to update part of a string?

2001-01-15 Thread Romulo Roberto Pereira
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

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Romulo Roberto Pereira
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

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Romulo Roberto Pereira
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 handl

Re: [PHP] Netscape's back button not working like Explorer's...Why?

2001-01-16 Thread Romulo Roberto Pereira
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]>

Re: [PHP] regexps

2001-01-16 Thread Romulo Roberto Pereira
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

Re: [PHP] RE: if php is so great, why is it so hard to make it work?

2001-01-16 Thread Romulo Roberto Pereira
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 -

Re: [PHP] Netscape rand() not random

2001-01-17 Thread Romulo Roberto Pereira
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

Re: [PHP]

2001-01-17 Thread Romulo Roberto Pereira
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: [

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
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:

Re: [PHP] MySQL Disk Space Usage

2001-01-17 Thread Romulo Roberto Pereira
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]

Re: [PHP] Homepage

2001-01-17 Thread Romulo Roberto Pereira
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: <

Re: [PHP] Hyperlink?

2001-01-17 Thread Romulo Roberto Pereira
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: