Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Read & Full Access


We have a login page that we have people login to access information. We want to be able to deny access to a certain link depending on what password they enter.

the login informatin is pulled from the DEALER_NUM and PASSWORD field in the table. I have created a field called PASSWORD2 which is what we will be using for the special access if thats what you want to call it. Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Email With Attachment - Annot Be Accessed. The File May Be Read-only, Or You May Be Trying To Access A Read-only Location.
It is a basic email with an attachment. The email and attachment are getting sent and received ok. When the recipient tries to open the attachment, the right application opens (eg. Excel) but then throws up an error. I am using base64 encoding. For example:

.xls file with base64 encoding:
'testing.xls' cannot be accessed. The file may be read-only, or you may be trying to access a read-only location. Or, the server the document is stored on may not be responding.

.pdf file with base64 encoding:
There was an error opening this document. The file is damaged and could not be repaired.
so the file isn't being decoded right. I have tested on Yahoo and Outlook. PHP Code:

View Replies !
Use Image Name (full Path) Read From Database In Javascript
I am using following scipt for javascript slide show. I want to replace the image names with the one I read using PHP+MYSQL database (conditional SQL statement ) Code:

View Replies !
DB Access Objects VS Full Code
I was wondering if there is any difference in performance between using DB access objects and standard DB access code. Reason I'm asking is I believe each object takes a piece of memory and if I have a site that gets huge traffic and is heavily populated with DB info wont it burn through the server memory rather fast? For example I use this type of structure in a lot of my programs to perform queries on the DB’s. PHP Code:

View Replies !
Full Access Path Of A File
how can i find the full path of a file on a particular site

like if a file "test.php" is on a domain http://www.xyz.com , how can i get this

http://www.xyz.com/test.php

View Replies !
Gaining Access To How MySql Parses Text For Full Text
I want to gain access to the function or process MySql uses to parse words and phrases for Full Text searching. Here is an example.

If the user inputs...

Milan in history

MySql will search for milan, history, and milan history. Is there a way to extract just the combination of terms MySql uses to search the db without the stop words? Stop words are automatically eliminated from the search request unless the user encloses a phrase in quotes.

What I am trying to do is develop a script to highlight found search terms and phrases. I can explode a phrase into single words but if I do that the stop words would be included in the array. If there is some way of getting into the parsed words or phrases MySql Full Text actually uses to search, I can use each of those combinations as a keyword in my highlighting script.

This request is about searching for the code or any code related to the questions involved.

View Replies !
I Am Trying To Read Access Log File
My access log file is has more then 8 lakhs lines. I am trying to read the log file and populate the data in database. But due to long file I am not able to read the file after certain time. It is showing an error: Code:

View Replies !
Access/read Log Files That Are On Different Servers
I am trying to access/read log files that are on different servers (not web servers) to my scripts but don't seem to be able to access them. I get the following error:

Warning: file("IP_Addressdredrent.log") - No such file or directory in c:inetpubwwwrootAutoreportslog_processingcheck_dre_query_log.php on line 15

I am using Windows 2000 and IIS. Code:

View Replies !
Read/write Access To All The Files
I recently made a php app for a company that spiders through a server and finds all files of a specified type (html, etc) and then opens the files and does specified things to them. So, the tool needs to be placed on the server and then it needs read/write access to all the files.

It works fine on my local server, but the client says that it fails (message is "failed to write to file" and then it stops). I told him to try it with ALL files and folders set to 777 just for testing purposes and he says that it's still not working. I have no idea what to suggest.

View Replies !
Restricting File Read Access To Users But Not Server
I`d like to know if it is possible to place a products.dat file on my website, yet restrict users so that they cannot see or d/l the file, but they can access it through a php file which is run by the web server which has the only access to the products file when browsing.

Does this make sense?, its basically client server, but since my php knowledge isnt great yet, Im not sure if this is easy or not?

View Replies !
Read Data From MS Access Into MySQL In Real-time
I am currently working on a project that involves reading information from a inventory system into Access via ODBC and display the info on the web site using MySQL.

I would like to create a live link between the MS Access(local) and MySQL (remote) whenever the inventory system is updated MySQL will be updated as well.

I know that MyODBC will let me do the opposite of what I would like to accomplish by reading data in MySQL into Access. Is it possible to do the reverse way.

View Replies !
Fgetcsv Returns False In Dynamic Read Vs. Hard-coded Read ??
I am working with directories in PHP for the first time. I have code
that I've changed multiple times to try different things. I would think
this is pretty standard fare so I'm not sure why I can't seem to get it
right.

What I would like to see happen:

The code opens the directory and loops through the files, opening them
and processing them.

What is happening:

If I hard code the name of one particular file (it is always the same
file) in my test setting, fgetcsv does not return false and the code
runs fine. The file is parsed and all is well. However, if I let the
code open a directory and then loop through the files, this one
particular txt file does not work. For debug purposes, I have it
displaying each file name and it can display the name, it just won't
process it.

I've even tried setting a for loop and hard coding each file name
(since right now I know the names - I won't in the future) and the file
is processed. It is only when it is set to my $file var dynamically
rather than being hard coded.

Here is the code:
$handle_dir = opendir('../directory_name');
/* loop over the directory. */
$countfile=0;
while (false !== ($file = readdir($handle_dir))) {
$countfile++;
$filevalues = "";
//Skip the first two files that where found because they are
"." and ".."
if ($countfile 2) {
//echo $file;
//begin loop through each file name
$handle = fopen($file, "r");
echo "Filename is: $file<BR>";//at this point the
code can print the file name
if (false == ($filevalues =
fgetcsv($handle,6021,','))){
echo 'problems<br>'//for one particular file,
this always displays
}

View Replies !
Read File - Limit The Number Of Lines To Read
How can I open a file and then limit the number of lines I want to read? say I have a text file and I only want to read line one to get the title of the text within?

View Replies !
Read (and ONLY Read) A Multi-sheets Excel File With PHP.
I want to read (and ONLY read) a multi-sheets Excel file with PHP.
I found so many scripts on the net that I finally don't know what to choose
so... could experimented users help me to directly find the one that I need
?

Here are the two obvious things the script must match :
- free
- can read multi-sheets Excel files

View Replies !
How To Read Up To A Point And Assign The Read Value To An Array.
Open a text file which will look something like this:

QuoteLink 1 http://www.blahblah.com/1651561
Link 2 http://www.etc.com/34324
Link 3 http://www.sdfkjsdf.com/12343423

basically its a "Link n" text followed by a URL text in the format of "http://www.page.com/random numbers"

What I would like the php script to do is to read "Link n" text and output it with the a http link to the URL which follows it. That is it should look something like this in the output:

Link 1
Link 2
Link 3

I have learned how to read a text file with php so far but I have no idea how to make it read up to a point and assign the read value to an array.

View Replies !
Getting Full URL
I'm trying to redirect a user back to the webpage they are on after they submit a form. I do this using the following code:

echo "<form action="http://www.website.com/~web/file.php?action=new&redirecturl=".$PHP_SELF."" method="post">";

If the URL is: website.com/url.php?id=1 this will only get website.com/url.php

Is there anyway to get the id=1 as well?

View Replies !
Get Full URL
I want to set the current page url as a variable but can't find anywhere how to get the URL in the first place. I get the URL using php. It's got to be something so simple that no one has posted about it and I'm just missing it somehow.


View Replies !
Full URL Include Using PHP
I am trying to insert a full URL include using PHP.

The problem is the link within the PHP is using my domain name instead of it's own.

Example:
URL

When it should be:
URL

Any clue as of why?

Here is the include code that I used:

View Replies !
Retrieving Full Url?
Is there any way to pull from a variable of some sort the full address in the browser. Including any get variables currently there?...

I ask because I have a number of different things, filters and such that should be compounded on each other. example. user has selected to filter a page by some field, user name or whatever depending on the data, then they choose to delete a record... etc. there are many uses i see, very possible with a lot of tweaking, but i thought there might be an easier way.

View Replies !
Getting Full Path
I am able to get the folder name of where a file is in eg /folder/ but I don't knwo how to get the full folder path like:

www.example.com/folder1/folder2/folder3/

I know how to get the file and the example.com but not to list all the folders, how can I do this.

View Replies !
Full Domain Name
Is there a way to get the full domain name you are on? The problem I have is I have a parked domain meaning domainname.ca and domainname.com are both the same. What I want to do is somehow tell which site the user is on the .ca or .com. I am looking for something like the $PHP_SELF variable except it also gets the domain name.

View Replies !
Get The Full Url String Into PHP?
How do you get the full url string into PHP?

View Replies !
Full Path
I know that subject sounds strange, but here is the problem. Code:

define("SITE_ROOT", dirname(dirname(__FILE__)));
echo SITE_ROOT . "pnp-newimages11.jpg";

prints our the following:

c:Program FilesApache2htdocspnp-newimages .jpg

If I change the 11 to letters, it prints accurately. Just curious as to why this happens.

View Replies !
Fetching Full URL?
I'm am trying to open a page's source code on the Internet using the function file_get_contents, and echoing the result (if you haven't already guessed, this is going to be a simplified proxy script).

However, the page doesn't appear like it should, mainly because the CSS file is missing. Here is the line of code that is causing me a problem:

<link media="all" href="css/home25.css" type="text/css" rel="stylesheet" />

Since the page has no idea where "css/home25.css" is, it thinks it doesn't exists and does nothing about it, so the page displays incorrectly.

How can I make it so that when a URL is posted to the page, PHP opens those CSS and .js files with their proper domain, like this: Code:

View Replies !
Get The Full Url(including Whatever Comes After The ?
anyone has any idea, as in, how do i get the full url(including whatever comes after the ? and #,which means whatever that is typed into the address bar)? i have tried to user the $_SERVER variable but is not able to get the full url. i need to get the stuff that comes after the "#"

View Replies !
Complete To Full Url
I have a links extractor in PHP, but some links extracted are only relative e.g: test.htm
and other full,

I would like to let all links full. is there any php function to do that? I am testing for a while with no satisfied results.

View Replies !
Retrieving Full URL
I found this piece of code that will do it

http://dev.kanngard.net/Permalinks/ID_20050507183447.html

However this seems quite long-winded for what I imagined would be quite a basic function. Is there a shorter way to do this (something akin to $_SERVER[PHP_SELF] but for the full URL)?

View Replies !
Full Text RSS
I am trying to built up an script that will produce Full Text RSS from Partial Feeds/RSS, but I couldn't figure out from where I have to start.

Furthermore I wanted to filter-out certain data like graphics, adsense code, html code etc from the RSS. Code:

View Replies !
Full Text
I'm trying to tweak my search engine a bit and I've discovered a weird lil' glitch. My SCORE variable for every single entry is coming back as a &#391;'. It's not a floating number like the examples are in the MySQL manual. PHP Code:

$query_articles = "SELECT *, MATCH(body, title, subject1, subject2, author) AGAINST ('$searchtopic' IN BOOLEAN MODE) AS score FROM data_array WHERE MATCH (body, title, subject1, subject2, author) AGAINST ('$searchtopic' IN BOOLEAN MODE) AND live_timestamp < $now AND `live` = 1 ORDER BY score DESC";

View Replies !
Cannot Include() Without Full Path
I'm trying to use include, but I can only use this by giving the full path on my linux system, I presume this is to do with my configuration. I have an include_path, but this seems to make no difference.

View Replies !
Mod_rewrite, XBitHack Full
Does anyone know how to get rid of the?id=

I built a PHP shopping cart that works like so.

http://www.MyDomain Name.com/products.php?id=108

I added the following .htaccess file so I can make the pages html.

AddType application/x-httpd-php .html .php .htm
XBitHack full

Is there a way to use make the variable pass so that the URL and Links look static instead of dynamic?

Example:
http://www.MyDomain Name.com/products/108.html

Is there some way to do this using mod_rewrite, or some other method?

I have a few hundred products, with frequent inventory changes, so I don't really want to make them static by hand.

View Replies !
Full Url To The Include File
when using includes, will suing the full url to the include file make any difference from if ui just used the something like folde/filename?

View Replies !
Full Screen Viewing
Can anyone tell me how to make a php page open at 100% of the viewable area?

View Replies !
Variable Does Not Get The Full Word
I am trying to extract information from mySQL. Somehow, the variable gets the entire word but prints only the first part of it. for example if the firstname column in the database has Mr James, the variable $fname has the entire "Mr James" but when I print it out into a text box, it prints only "Mr".

View Replies !
Full URL Address In A Variable
I have a website where I invite people to write a review about a product. When a person wants to write a review, I ask him either for LOGIN or REGISTRATION, after successful LOGIN or REGISTRATION, I want him to show the page where he was before the LOGIN or Registration.

Let say my URL address looks like this

"http://www.anydomainnamexyz.com/directory/hardware/product.php?pid=1&brand=Imate&model=Jam&ram=64"

I am confused how to catch the whole URL into a single variable called $page_back, so I can send back the user to the above page after successful LOGIN or REGISTRATION.

View Replies !
Is Full Integration Of Asp Pages Possible?
My knowledge is quite weak in php and all other languages.

I hope to get help on this problem.

A provider is giving me content for my website:

http://www.exampleprovider.ch/clients/mysite/cinema/index.asp

I created a module in which I put:

View Replies !
Full Proof Arrays
I have a really large system that pulls lot's of stuff from a database.
From about 4-5 different queries it runs arrays of data into arrays from the fields.

I have a products array on the first one which collects customers, products and other information. As follows

[customerid]
   [customername]
   [customerid]
   [products]
      [productid and information in this array]

Basically this is the array setup that is created at first.
However when it goes through future database structures new customers might get added entirely (which should add a new customer id and customer details).

Or some NEW products might get added(which need to add without having a chance of overwriting current projects. Then again some products might have data that need's to be added to that specific product. Does anyone have a tutorial, tips, tricks on writing "intellegent" arrays?

View Replies !
How Do I Delete A Full Row In Mysql ?
how do i delete a full row in mysql ?

View Replies !
Full Text Search
First off, I'm using MySQL 3.23 so I'm not sure if Full Text Searches are even in that version since there isn't any documentation for versions before 4. Code:

View Replies !
$_FILES Question - Getting Full Name
how do you get the full path and file name of an uploaded file. I have a file upload input on a form. I can get...

song.mp3
by using $_FILES['uploadedmp3']['name'];

but how can i get....
c:/music/song.mp3

(i want this incase someone forgets to full in another field on the form and have to take them back to the form page to complete the form. Its not really a desired effect to make the user select the file again so i just want to put the filename and path in the value attribute)

View Replies !
Full Screen Video
Hey, im making a site that links to videos, but i didnt want people to actually see the url that it links to, so i put the Url's in a database and made a php page called FullScreen.php and when the link is clicked it goes to something like http://****.co.uk/FullScreen.php?sho...rk&episodeid=1 and then it gets the url from that and puts it in an embeded played but the problem i have is that i dont know how to make the video play full screen i.e. to take up the full php page, like when you open a flash video in IE or FireFox it will automatically take up the full page even when its adjusted.

View Replies !
Mouseover Shows Full
Now this might be a tricky one. I would like to fetch a number of names from a database and show them in a table. Furthermore, only three words from each name should be visible until mouseover, then the full name.Could this be done?

View Replies !
Pulling Full Current URL
I know has to be an easy way to do this. I want to pull the entire current url.

using $_SERVER['PHP_SELF'] does not seem to work as it only returns the back of the url.

I want to get the entire url .. http://www.mywebsite.com/page.php

as a variable to parse. I can't find it in the php.net function list.

View Replies !
Full Text Query
I have a very simple query in php:

$query = "SELECT *, MATCH(products_name, products_description, products_keywords, products_notes)
AGAINST ('carb') AS score FROM products
WHERE MATCH(products_name, products_description, products_keywords, products_notes)
AGAINST ('carb') ORDER BY score DESC";
$result = mysql_query($query) or die('Error, query failed');

I get "query was empty", but when i put this query in phpmyadmin, it works fine.

View Replies !
Full Website Backup
i'm trying find out how to do a full daily backup of all the files and database that make up my site.

Is it hard to create a php script to do it, and then create a cron jobn to execute that script on a daily basis?

View Replies !
Opening A File When You Do Not Know The Full Name
I have a directory into which I upload pictures. I know the entire file name other than the extension. file_exists will return true when I give it a wildcard extension, but I can't figure out the best way to determine the extension for fopen. I sure don't want to troll through the entire directory with readdir.

View Replies !
Displaying Full URL Address From Mysql DB
Hi all

I am having a problem, displaying a field form my mysql db.

the field is a text varchar(80) containing url's (web addresses more importantly).

the issue is, when a user enters into the db an address without the 'http' suffix on the start of the url, I try to display it.. but obviously the browser then renders it as a file to the root directory when actually its an entire new url. Did I explain that good enough?

View Replies !
Figure How Many Full Weeks Are In A Month
Im trying to figure how many full weeks there are in a month and then
get the third full week dates?

View Replies !
Full Text Search ( Mysql )
I was searching the sql man , for some good ways to search a mysql db. so i found that Full text search the best way is to go becease LIKE just gives to mutch output.PHP Code:

View Replies !
Running A Full-time Php Script
How feasible would it be to have a php script running all the time, as opposed to only when a user accesses a php page?

View Replies !
Need A Full Corporate Mail System
I am running apache 2.2.6-1.fc7. I am now writing a site that will require the sending of forms by php mail().

What is the minimum I need to configure on my apache development server to
allow me to do this. I do not need a full corporate mail system, just
allowing the website forms to use php mail() on the testing server, I know...

View Replies !
How To Get Full Address Of The Website Dynamically?
how to get full address of the website dynamically?
like www.yahoo.com/op/guy/123/
using server var($_SERVER).

i just want path till current working dir from www.yahoo.com/op/guy/123/ page.php i don't need it.

View Replies !
Full Local Path Of $_FILES
When processing a standard file upload form, is it possible to save the full local path of the file? If there is an arror on the form, I want to re-display the file name in the field when it reloads. This data doesn't seem to get posted. All the local path info is stripped off.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved