Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

two question

Javascript coding ..

Moderators: macek, egami, gesf

two question

Postby southriver » Thu Jun 16, 2005 3:06 am

hi all

in JS , tell me how to do check input valid file box (input='file')
:yawn:
in PHP , i use ini_set("upload_max_filesize") then i need restart webserver ? :yawn:

thanks to all

best regards
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Postby Alexej Kubarev » Thu Jun 16, 2005 7:26 am

ehh? JS can check the filename: yes (simple value attribute): getElementById('Id_of_element').value

in oho ini_set does not require restrating :D
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby southriver » Thu Jun 16, 2005 5:20 pm

Ok , iam try again
thks
best regards
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Postby southriver » Thu Jun 16, 2005 6:07 pm

It's successful

I just find web site getElementById.com . This site is useful

thks again :)
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Postby southriver » Mon Jun 20, 2005 7:27 pm

hi :)

in the second question , i just used ini_set("upload_max_filesize","8M") then echo ini_get("upload_max_filesize") and run it with Zend Studio . If i don't restart webserver , i will have the result is 8M , but the result is 2M.

Is the "upload_max_filesize" constant ? :)


please explain me :)
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Postby Alexej Kubarev » Tue Jun 21, 2005 12:00 am

when you use ini_set -- its value is used ONLY while the script is running, and only for that script
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län

Postby southriver » Tue Jun 21, 2005 5:18 pm

okie

thanks for helping
User avatar
southriver
New php-forum User
New php-forum User
 
Posts: 51
Joined: Sun May 29, 2005 8:31 pm

Postby Alexej Kubarev » Tue Jun 28, 2005 3:11 pm

always welcome :)
User avatar
Alexej Kubarev
Site Admin
Site Admin
 
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län


Return to JavaScript

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.