Jason Pruim wrote:
Been doing some reading on security and have decided that I should be
storing my include files outside of the document root... Which I
understand how to do it, but what I'm wondering, is say I write the
Next Killer App (tm). How would I port that code easily off of my
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 that?
My fear
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
Richard Lynch wrote:
On Wed, May 30, 2007 3:59 am, blueboy wrote:
Hi,
I have a checkbox array (about 20 lines)
input name=\box\ type=\checkbox\ value=\$id\
input name=\box\ type=\checkbox\ value=\$id\
input name=\box\ type=\checkbox\ value=\$id\
I do some client side checking with
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.
Jason Pruim wrote:
Okay, so I have a question... Probably pretty easy, but why would my if
statement show more records then what are in the database?
if($row[5] =='Level4'){ // White Highlight
}// End of Level 4
else
{// Green Highlight
}// End of
Jason Pruim wrote:
The code I had worked out, originally was something along the lines of:
if($row[5] ==Level1) (
echo TRTD bgcolor=.$Level1.$row[0] /td;
echo td bgcolor=.$Level1.$row[1] /td;
echo td bgcolor=.$Level1.A href='$row[2]'Instructions/A/td;
echo TD
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 Development (IRAD)
SAS Computing
--
PHP General Mailing List
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
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 value of 7582. So intval is
behaving properly. Sounds like you
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 expression
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
Jason Pruim wrote:
Why do you want tenth's of pounds? Just divide pounds by 16 and you'll
get ounces.
It's actually for a weight calculator that we use for some of our
mailings. when you take .226 and multiply that by 464 you get 104.864
ounces.
I need to be able to display that as: 6 #
Brian Dunning wrote:
I host at Rackspace, and one thing that their monitoring service does
NOT catch is a problem when too many connections hit MySQL, and for some
reason it remains hung up until the service is manually restarted. In
the meantime, this is happening to us once or twice a month.
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
Chris Ditty wrote:
I am trying to add some error handling to my code. Instead of
reinventing the wheel, I searched and found the code below. For the
most part, it seems to work. When I have an error, it doesn't get
shown. However, I don't get any output. I tracked it down to the
$errno.
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_metadata.getStringVal() ...
If converting to clob, you get a clob object back and you'll need to run
the load() method
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_metadata.getStringVal() ...
If converting to clob, you get a clob object
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. here
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!
?php
exec(find /Users/rjohari/Documents/XFER/espi
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 suggested
by you and tijnema.
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';
$result =
Thufir wrote:
it ain't pretty, but it's like a sugar rush! Finally, able to enter data on
forms which I can create :)
[snip]
Any thoughts/suggestions/advice as a next step? I need to add a timestamp
when
the data's entered, but that's a small thing. This is adding notes onto
Don Don wrote:
Hi all, i've changed my server's apache config to recognize my custom
extension for php files. And all my development filenames now come
with this new extension.
However my IDE (Php Eclipse) will not recognise this new extension as
a php file, even though it opens it up but
24 matches
Mail list logo