Php.ini File - Cannot Find In My Root Folder
hey. i have a memberscript that i am having trouble with.
my users want to upload their own avatar, but it is not letting them. the file in which the avatars are sent to are chmodded correctly.
i think it may have to do something with the php.ini file, but i cannot find it anywhere in my root folder. i have godaddy hosting and i contacted them but they didnt help me at all.
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Find And Replace Under The Root Folder
Suppose I want to add 1 single line: <script src = "/sample.js" type="text/javascript"></script> to every single webpage ( preferrably right after the tag <head>) under the root folder called public_html in my server, i.e including all the webpages in the subfolders as well. Suppose I have sample.js in public_html as well.
View Replies !
View Related
The Root Folder
I've a web site in the address http://mySite.com in the root, I've a file index.html I've some subfiolders insid root/sub1/sub2 I like to add an html file (or php) index.html that call the index.html of the root (in order to protect) Now I've created 2 different index.html because I use relative path to design the root (../index.html and ../../index.html) I like to have the same file in all folders,but I don't know how to call the root folder.
View Replies !
View Related
Root Of Folder App Files
While I know putting a app into a folder was chiseled out of fine scottish granite and carried upto the top of ben nevis by php newbies many years ago - I dont think a folder is the best way to do it . The fact a script is in a folder means certain instant problems if you want to do certain things with . Assuming a script doesnt have index.php and all the script files have a filename prefix like phpgb_ then theres no chance of them clashing with anything else and theres no real reason to continue using a folder for the main script files . While the script will have a app folder for various things - does it make any sense not to use the root because of a single solitary file called index.php . phpgb_index.php is what I use and the method hasnt brought up a single problem of any shape or description . Gas lighting was once what everybody thought was the best way of doing it until that darn new fangled electricity came along .
View Replies !
View Related
The Safety Of A Folder Below The Root?
I include a php file from a folder that's below the root directory of my website. This included file has some sensitive information and I was wonder how secure this file is? Is it something I should be concerned about? Is there a way that someone can gain access to this file?
View Replies !
View Related
Determining FTP Root Folder From Path?
I have been working on a GUI web photo album for *nix. I had thought it might be workable for users to open a browser based FTP session to upload pics to a newly created album directory. The problem I am having is opening the FTP session in the new folder. I.E. we have just created images/myAlbum1. Using realpath(.) we get /home/someUser/public_html/images/myAlbum1 . Unfortunately the browser based FTP wants the site root not the server root and the connection fails. Is there a reliable way to determine site root from path? I don't want to regex the path for /www and /public_html, seems like that would be rash...
View Replies !
View Related
I Can Upload Files Anywhere Except My Remote Root Folder
Im working on a project with PHP that allows users to upload pictures to my server and then reference them. After going through some uploading tutorials I have the uploading part working Except! I cant upload folders to my remote root folder. I need to allow the users to upload somewhere inside the root folder so they can reference the pictures in code after. Just to clarify the uploading works perfectly if I put the uploads folder anywhere on my computer except the sites remote root folder (or anywhere inside the root folder) I also beleive I am giving the folder all of the proper permissions because I am giving the uploads folder in my root directory (the one that doesnt work) the same permissions as the one outside the root (the one that works) Code:
View Replies !
View Related
Installation Works Only In Base / Root Folder
I've installed PHP and Apache several times, but I havn't a clue what's going on this time. I installed the newest version of Apache 2.0 (not 2.2) and the newest PHP 5. It's all working and such, but it only processes pages in the base folder. Like localhost/file.php will work, but localhost/folder/file.php will only come up with a blank screen.
View Replies !
View Related
Installation Problem Of Bb2 Forum On The Root Folder
I just decided to start a forum so decided to install phpbb2 forum software which is provided by my host. I am unable to install the forum on the root folder inspite of trying many times many different things . I have tried the following things : 1)When i tried to install for the 1st time i got the error something like public_html already created . Code:
View Replies !
View Related
Cron Job Creating Backup Files In Root Folder On Server
In root folder of my server, I see files like optimize.php.95(optimize.php is the file name we added for cron); files go from .1 and upward. Also happens for other files, seemingly related to the cron jobs we are running. When I open and download the files, there is no content in the files. Do you know what is causing these files to be created? I think they are harmless, except that I think it prevents us from seeing backups generated in root folder, as ftp only allows so many files to be listed. For example, I created a recent backup, but cant seem to find it in the root folder using ftp (I think because these files are crowding out the backups from being listed). Are these files unnecessary? How do we eliminate these files to be created.
View Replies !
View Related
Creates A Temporary Folder And A File Within The Folder.
I have a PHP script which creates a temporary folder and a file within the folder. I have a problem when trying to remove the file and folder using my FTP program. The ownership and group are set to NOBODY. I cannot change the permissions on either the file or the folder. I have tried chmod and chgrp and chown but for some reason I cannot change permissions.
View Replies !
View Related
Canonical Method For Getting Path From Doucment Root For A File?
If you have the whole server path for a file is there a canonical way to get the path from document root for that file so that you can present the file ina browser or for download? Check $_SERVER['document_root'] and parse the path? My thought is that given OS diversity and individual server differences (eg www vs public_html vs htdocs) that there may be no one-size-fits-all solution but I thought I would throw this out there any way.
View Replies !
View Related
Document Root Not Website Root
I want to use PHP in my website; but run into a snag, the recommended method of calling an include is: <?php include($_SERVER["DOCUMENT_ROOT"]."/inc/css-gateway.inc"); ?> when I try <?php ECHO $_SERVER["DOCUMENT_ROOT"]; ?> the document root is shown as /usr/local/apache/htdocs/ However the website root is at: /mnt/home/www/canadian-dream.com/www How do I redirect $_SERVER["DOCUMENT_ROOT"] to the my website root? Is there a global variable that can be used? I do not wish to rewrite a lot of pages if I were to change web host in the future. from the error logs [Sat Oct 25 06:32:51 2003] [error] PHP Warning: main(/usr/local/apache/htdocs/inc/css-gateway.inc): failed to open stream: No such file or directory in /mnt/home/www/canadian-dream.com/www/de/immobilien/main.php on line 15 [Sat Oct 25 06:32:51 2003] [error] PHP Warning: main(): Failed opening '/usr/local/apache/htdocs/inc/css-gateway.inc' for inclusion (include_path='.:/usr/local/lib/php') in /mnt/home/www/canadian-dream.com/www/de/immobilien/main.php on line 15
View Replies !
View Related
How Can I Find Out Parent (including) File Of Included File?
How can i find out parent (including) file of included file? Lets imagine that we want to for example auto_prepend file to each file on our server that would write out the name of file its being executed. I know, i can use PHP_SELF but what if i want to write name of file which is already included? I have a web page and i want on it show its name even if it was included, but not the included page itself is showing name but auto_prepend file to each php file, its duty of this auto_prepend_file to write it out i dont want myself to echo it on each page? do you feel me?
View Replies !
View Related
Read A Text File Then Find Keywords In That File
how do i make php read a text file then find keywords in that file and only display the results of what it found (i'm going to use wildcards with the keywords so i can sort data to different text files)that way it can only display the part of the text it found and write it to a new text file. i was wondering if anybody could give me an example of that or tell me what commands?
View Replies !
View Related
File Which Tries To Find Itself And Can't...
<? //file test.php phpinfo(); $filename = "test.php";//it does not work $filename = $_SERVER['DOCUMENT_ROOT']."/home/ke000067/public_html/test.php"; //it does not work $filename = $_SERVER['DOCUMENT_ROOT']."/~ke000067/public_html/test.php"; //it does not work $filename = "home/ke000067/public_html/test.php"; //it does not work echo 'fila buscada: '.$filename.'<br>' if (file_exists($filename)) { echo 'Of course it is.<br>' }else{ echo 'What?? How can it be???.<br>' } ?> these are some values retieved from phpinfo _ENV["REMOTE_PORT"]2010 _ENV["SCRIPT_FILENAME"]/home/ke000067/public_html/test.php _ENV["SCRIPT_URI"]http://200.50.110.233/~ke000067/test.php _ENV["SCRIPT_URL"]/~ke000067/test.php _ENV["SERVER_ADDR"]200.50.110.233 _ENV["SERVER_NAME"]200.50.110.233 _ENV["SERVER_PORT"]80 _ENV["SERVER_SIGNATURE"]<ADDRESS>Apache/1.3.33 Server at 200.58.112.233 Port 80</ADDRESS> _ENV["SERVER_SOFTWARE"]Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_bwlimited/1.4 mod_log_bytes/1.2 mod_ssl/2.8.22 OpenSSL/0.9.7e FrontPage/5.0.2.2635 _ENV["GATEWAY_INTERFACE"]CGI/1.1 _ENV["SERVER_PROTOCOL"]HTTP/1.1 _ENV["REQUEST_METHOD"]GET _ENV["REQUEST_URI"]/~ke000067/test.php _ENV["SCRIPT_NAME"]/~ke000067/test.php _ENV["PATH_TRANSLATED"]/home/ke000067/public_html/test.php I'm really confused about paths. Now I think that it is not a good idea to learn on local server, beacause whenever one changes to a shared one, all seems to fail....
View Replies !
View Related
Where To Find Php.ini File
Can anyone tell me where to finde php.ini file, I have been trying to install ioncube for this classified script and I need to add a line to php.ini file, I found php.ini.dist but it looks like a test file not script, don't know where to put the line.
View Replies !
View Related
Find A File
In a directory, how to find an image file with part of its filename is known and the file extension could be one of the following(jpg, tiff, bmp,png). The filename always begin between 1 to 3 alphabet, then a dash(-), and between 1-4 set of numbers and the extension could be in one of the following(in order of importance) - jpg, bmp, tif. If I know part/full of its filename, find the 1st match(just in case there are similar filename) with .jpg extension, if not found, then check with ..bmp extension, last check if it is with .tif extension. Code:
View Replies !
View Related
File Upload Not Working When "Document Root" Changed
I am using a LINUX server here for development. When the server is configured the space allocated to "/var/" volume was too less. Initially, I was working inside the "/var/www/html" folder and all my website are working fine there with uploading function.:) Then because of the less space, I have moved the projects to "/usr/PHP/" folder. The project is working fine there without upload function:( . ie, when trying to upload it showed the following error: Code:
View Replies !
View Related
How To Protect A File Or Folder?
I want to protect my URL How to realize the following function? Users click on the URL, a login htm page appears. Users enter username, password and click on the submit button. PHP file consults mySQL to get username, password and registration date. If user account is valid, user may download this software.
View Replies !
View Related
Folder/File Perms...
I made a PHP script that creates a new folder (say "Folder 1") and then copies a file from the parent folder (call the file "index.php") into the new folder; so we get Folder 1/index.php Now, how can I set the ownership of this file and folder, automatically via the PHP script, to me (the server user), not httpd?
View Replies !
View Related
Seperate Folder For File
I have written a form that accepts information and a file. It currently writes the file to the database table also but I would like it to write the file to a seperate folder but keep the relationship with the other information so it can be searched and retreived later. Also how would I go about allowing for mulitple files to be uploaded and linked to the table information? Here is the scrip I wrote for the upload to happen: Code:
View Replies !
View Related
File/folder Permissions
I have an upload function that uploads images into a folder. The folder is set to 777. However when I upload an image file to the folder, the file uploaded is set to 600. Therefore it wont appear on web. I'm not sure why this is doing this for?? Im using the php function move_uploaded_file to upload the file.
View Replies !
View Related
Searching File In Folder
I want to ask how can I list all the files and folders inside a given directory. example: C:Documents and Settingsuser11My Documents is the directory. I want to get all the files and folders name inside it.
View Replies !
View Related
Php Folder & File Creator
But what I would like to do is have a php form (eg back end manager) that i can fill in with: file name folder name todays date page title page body text And when you click the submit button it creates the folder with the name I specified and with in that folder it creates the .php page with the other info that i put into the form. I've found scripts that will create the page, but not the folder. Is it possible? or should I find another way round this eg database and a backend manager.
View Replies !
View Related
File Upload To New Folder
On uploading file.., the file moves into the temp dir "C:Windows Temp" which is not accessible in the server. Is there any way to store the uploaded files in a new directory and then move it to desired directory?
View Replies !
View Related
File Exist In Folder
I was wondering what kinda script i need if i want to look inside a folder to see if there is a certain image. Ex : If (there is an image in this folder called $row['image']) { }show the image; }else{ print "there is no image"' } As you can see, I am taking the image from a DB, I will loop this whole script so that it'll show only if there is an image associated with my record.
View Replies !
View Related
Redirect Folder To File
I'd like to redirect from any address in a folder to a specific file. From www.mydomain.com/something.html or www.mydomain.com/something_else.html to www.mydomain.com/2006/index.php (or www.mydomain.com/2006/) I believe that this can be done with mod_rewrite and/or htaccess, but I have no clue. Can you provide a real example/ code, please?
View Replies !
View Related
Copy A File On Folder
I have a script that creates a folder in my site when someone registers. I need a file that is stored on my site to be copied into this newly created folder every time a folder is created. I also need a new empty folder to be created in this folder with a standard name. So, when someone registeres on my site, I have a script that creates an ftp account and folder on my site for them using the info they provided, but what I need is a file copied to that folder and a sub folder created.
View Replies !
View Related
Folder-file Manager
I'm trying to create a simple file manager. The problem that I'm facing right now is how to create folders within folders (subfolders) and store them virtually in mysql and not on the filesystem.
View Replies !
View Related
Upload Folder Not File
My client wants a php script which allows the user to not upload a single file through the filefield in a form, bu to upload an entire folder. I told him I thought this wasn't possible, but I like the idea. I searched the net and all I found was that it is impossible to retreive data from a local folder. e.g. readdir only reads dirs from the server, it I could somehow index the local folder, I could loop the files tp upload, but this seems to be impossible to do. I was wondering if anybody has any experience or info on getting files from a clients hard disk?
View Replies !
View Related
Referencing A File Or Folder
I'm trying to point to an include file from php like so: <?php require('/main/includes/nav_stripe.php');?> That approach is perfectly fine when trying to point to a folder INCLUDES inside folder MAIN on the root IN HTML. However, php is producing errors. Is there a solid safe way to reference a file/folder regardless of how many levels up or down it is.
View Replies !
View Related
File Find Question
I looked in the manual and searched the web but did not see a file find function that takes a wild card - I need to look for all files such as: $Array = FileFind('name_*.jpg'); And then I need to delete all such files. Is there such a function?
View Replies !
View Related
Can't Find The Uploaded File.
I have a file upload script. I have everything working fine. But when I test it out I can't find the uploaded file. I looked in /var/tmp/ but nothing of the sort is there. How can I direct the upload to do to a folder of my choice?
View Replies !
View Related
HOw Can I Find Out File Size ?
How can i find out the file size of a folder present in site root folder. for example : /-- | [ram] #folder Now i want to know the file size of this folder call (ram) in site root folder. Actu. I want to display the folder size in my page.
View Replies !
View Related
Can't Find Include File
I have an "include_once" statement on top of my php file but when I run it I get the error message: Warning: main(../db_fns.php): failed to open stream: No such file or directory in /home2/www/domainname/demo/shopping/rules/gen_rules.php on line 2 Warning: main(): Failed opening '../db_fns.php' for inclusion (include_path='.:/usr/local/lib/php') in /home2/www/domainname/demo/shopping/rules/gen_rules.php on line 2 In "gen_rules.php" I have: <?php include_once('../db_fns.php'); session_start(); ob_start(); .... ?> The file "db_fns.php" is the "shopping" folder.
View Replies !
View Related
Find Data In File
I've looked on Google and through PHP.net but I can't seem to find what I'm looking for. What I'm trying to do is open a file through HTTP, then PHP searchs the file and where it finds lets say for example something * something else Where it knows what to start looking for, and what to end looking for and it takes it all the in between and puts in in a variable
View Replies !
View Related
Find One Line In A File?
Im trying to do somthing i think is simple but i dont even know where to start I want to look at a variable (an html file in a a variable) and extract a line that will look like this) <form method="post" action="mysite.com/upload.php" name="member_stat" [maybe some more bits here]> the only thing that *never* changes is the 'name="member_stat"' bit How can i get this entire line into a variable? i have looked at string functions, cant find anything and im not very good at regular expressions but surely it cant be that hard?
View Replies !
View Related
|