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
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
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
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
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,
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
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 dont allow it, IIS dont parse any php file because it's not
allowed.
I hope this helps you...
Roberto
-Ori
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
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
don't want to do this... but I wanna hear another possiblities before
doing that...
Any suggestions?
Roberto Ramírez
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
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
>
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
( $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
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
, 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
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
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
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
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
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
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
> 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
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
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
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
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
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
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]>
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
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
-
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
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: [
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:
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]
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: <
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: