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.





PHP4 Network Functions


I'm pretty sure that this problem has nothing to do with PHP and a whole lot
to do with my server config, but I've got no idea where to start.

On my server I can't get any of the network functions to work, eg getmxrr()
returns an empty array whereas on another server it will return a populated
array.

Sendmail functions perfectly and I can ping the remote machines, so it's not
a problem with iptables stopping outgoing traffic, or with named.

Is anyone able to send me in the right direction ?




View Complete Forum Thread with Replies

Related Forum Messages:
Functions In Php4.3 Different Than 4.2?
i upload a website in php that includes files where some functions are defined. it's workin on my local box but on the remote machine the functions are not recognized. so what i get is ...unknown function blahblah in line...? on my box php4.2 i guess on the remote machine 4.3 .

View Replies !
PHP4 Functions In PHP3
An error in my configuration-file (probably) in PHP4 installed by EasyPHP makes it neccesary to use PHP3 local. And therefore, some functions are unavailable.

Who knows a proper function for array_shift and in_array?
Somebody gave me something, but it doesn't seem to work very good:

<?
function in_array($needle,$haystack)
{for($i=0;$i<count($haystack) && $haystack[$i] !=$needle;$i++);
return ($i!=count($haystack));}
function array_shift($array) {
$value_from_beginning=$array[0];
for($i=0;$array[$i];$i++) {
$array[$i]=$array[$i+1]; }
unset( $array[$i] );
return($value_from_beginning); }?>

View Replies !
[PHP4.3] Are Not-used Functions Compiled By PHP?
[concerning PHP4.3]

I have an includefile that I (ahum) include in many scripts.
It contains only functions I need now and then.

Now I was wondering how things work behind the scenes.
Is the whole file loaded and compiled/interpreted every time a php-file is
used that includes this file?
That would be an unwanted extra load for my server.
If so, I should consider splitting up that file in some smaller files, but
that is of course extra overhead for me.

I have no idea how this works.
Can anybody enlighten me?

View Replies !
Can't Use Imap Functions In Php4?
I tried many times in different systems , and find Can't use imap functions in php4? (linux or win32) Is it really?

View Replies !
PHP4 - Zlib Functions Not Working
I had to update my server configuration consisting of Apache2 and PHP4. I
now have installed:

apache2/apache2-prefork 2.0.54-2.1
apache-mod_php4/php4-zlib/php4 4.3.11-0.3.1

"Regular" PHP scripts work just fine, but the websvn script is acting up -
after selecting a repository the page just "hangs", i.e. the browser waits
"forever" for a response. If that happens there is no error message in the
server log and it looks like the thread just gets stuck and never returns.
Using Gubed I tracked it down to the zlib functions, i.e. whenever the
script calls a line like

$output = transArray(gzfile($cachedname));

it hangs there and I can't get control over it anymore. Does anybody have
some insight whether I miss anything or tips how i can track this down
further?

View Replies !
PHP And Network Programming...
I'm sort of like stucked here with some architecture that I need to come out with. Currently I'm planning to develop a system that will enable the manager to be notified and take action on a certain kind of transactions that I want to do.

First of all, I'm trying to connect the PHP socket to a server which is running at a manager's office. Well, let's consider that the IP for that office is a fixed ip.

My problem will be if the particular manager's computer is within a LAN itself, they would have their own ip by themself. I can't develop the program that will connect to the PC within the LAN because the program will not be able to find the server that is within the LAN itself.

anyone with any ideas on how to do this? it had been torturing me for the past few weeks, just hope that I can just walk out of this torture chamber in one piece.

View Replies !
Network Monitoring
if any one could give me advice on how to monitor our network and display a page, saying wether everything is o.k or not!

View Replies !
Search The Network
is it possible with php to search new content on internet sides with an daily php cronjob? Are there any php-tool (to search and save into xml or databases; and cronjob-tools) available?

View Replies !
Shared Network
I just discovered that if a person has logged in,another person who opens up index.php gets to view the first persons page. I dont know if this is because of the shared net connection or whether its a flaw in the script.

Also, if one person has logged in, another person having access to the u/n and p/w can log in to the account at the same time. Clearly, my login.php and index.php are flawed.

View Replies !
Friend Network
Does anyone have any idea on how to manage a network where people can search users in the database and add them as a friend.

I have an idea on how to search for other users but then to save them as friends in the db I have no clue how to even start. Can anyone give me a suggestion on how to start or show me anywhere that I might find some useful information at?

View Replies !
Php/mysql Over Network
I have about 20 sites to rework so that they run under php 4.3 - reworking globals, etc. and am trying to find a way to do this without too many headaches. I have 4.2 running smoothly on my machine, where I have copies of the on-line sites, and need to keep it that way. I'd like to install 4.3 on another machine, connected to mine via simple network. Will that 2nd machine be able to access the "sites" installed on my machine, as well as the mysql databases?

View Replies !
XCOPY Across Network
Is there any way that i can use php to copy a file from the webserver local drive to another network drive. (both windows)

I can do this fine using a batch file on the webserver but cant get it to work through php. Ive tried using exec and system but these wont work. I think it might work if the destination folder had an IUSR_ account but this isnt possible.

system('xcopy c: emp1 c: emp2'); - works fine
system('xcopy c: emp1 y: emp2'); - dosent work, doesnt work if enter full network path either.

View Replies !
Network UserID
Trying to build a dept website. Is there a way to get the network login id(the corporate network) of the users visiting my page? I plan to use this to control site access and hate to ask them to do a logon again. The OS is XP Pro.

View Replies !
Authentication On Network
I'd like to implement a user authentication function which allows one username/pwd to be used from one computer only.

For example, when a client registers with our application, I'd like to get their MAC or their computer unique information, so that next time they log in, I want to make sure that they log in from the computer that they register, not others. I want to make sure that they don't share their username/pwd to anyone else to use.

View Replies !
Network And RFID
I have the network and RFID reader switched to every computer. need to get the information from RFID reader, The question is if it is possible to get the information from the serial ports of remote computers using PHP? Because PHP is the interpret language and actually it executes on the Server, or I misunderstood smth.

View Replies !
PHP Odbc_connect() Across Network Woes!
I'm having trouble connecting to a folder of DBF files using a system DSN ODBC connection as follows: PHP Code:

View Replies !
Get A List Of Network Interfaces In PHP?
I've got a utility I'm working on, and I want to be able to list for
the user all the current network interfaces on the machine. Is there a
way to do this in PHP? PHP 5.0.3, Mandriva Linux 2005 (2.6 kernel).
I'm not actually in front of the machine in question, and I don't
recall the minor kernel version, or the minor version of Mandriva...

Any thoughts? I'd prefer not to have to run the script as root,
incidentally. I realize I could run as root and then just parse the
output of ifconfig, but I assume there's a more intelligent way to go
about what I'm trying to do.

The purpose of this utility is to allow me to issue a ping, from a
specified interface (including virtual interfaces, e.g., eth0:1), and
test for connectivity from the webserver to the the address i am
pinging, through the specified network interface (rather than always
pinging from the default/primary interface of the machine).

Any thoughts? How would I go about this? I haven't been able to come
up with a way to do this, short of running as root and parsing
ifconfig, as I mentioned above.

View Replies !
Execute A Network Command
I'm trying to execute an Network command with PHP exec() function but
i can't.
The PHP script looks like the following:

<?php
...
exec('PTtypeMyapp');
...
?>

When i execute this command in the windows shell i've no problem, but
when i use PHP exec() function it simply don't run. It seems that the
instruction is jumped.
I guess it isn't a PHP problem because when i make:

<?php
...
exec('C:WINDOWSNOTEPAD:EXE');
...
?>

NOTEPAD is correctly opened.

Probably the problem has to do with the way the 'Path' is typed.

View Replies !
Set The Include_path In Php.ini Any Network Drive
We are working on a program to read the tnsnames.ora file. When we try and set the include_path in php.ini any network drive it can not find the file. We can see that the file is there and if we set the include_path to a local drive it works without a problem. We Have tried all the following

include_path="G:orawin
etworkadmin"
include_path="EASTvol1orawin
etworkadmin"
include_path="111.11.11.111vol1orawin
etworkadmin"

None work. Any Ideas?

View Replies !
LAMP On A Local Network
I'm new to all this and I am trying to set up a web sever over a local
network. I currently have two boxes attached via a switch. Box 1 is
configured with windowsXP and the other with Fedora3.

The linux box has Apache installed and appears to be running ok. When I use
IE to access the site I get the response : "Page cannot be displayed" or
"The web page you requested is not available offline" depending what is
entered in the address control.

On the Linux box, if I use the command netstat -atn, this shows a host
192.168.123.10 listening on port 80

In the terminal window on the XP box, (192.168.123.12) when I ping
192.168.13.10 I get a successful response. If I telnet 192.168.123.10 80 I
get "could not open connection to the host on port 80:connect failed"

Does anybody have any suggestions /commands that will help me resolve this.

Also does anyone have a link to a good article recommending a development
set-up that includes the physical configuration as well as development tools
for a first timer.

View Replies !
Copy()-problem Over A Network
I have a problem with accessing files on other computers in my network.
The network is a Windows 2000 workgroup network and I have administrator
rights....

This works (from the directory copytest I copy something to copytest2):

<?php
copy(&#3905;_17340.jpg', 'D:copytest2 est.jpg');
?>

The next bit does not do the job (from the same directory to a networked
one):

<?php
copy(&#3905;_17340.jpg', 'V:copytest2 est.jpg');
?>
It gives me the following message:
Warning: copy(V:copytest2 est.jpg): failed to open stream: Permission
denied in D:localwebcopytestcopytest.php on line 2
(computernamesharename gives the same message).

View Replies !
List All Computer In Network
is there anyway to list all the computer name or ip or both in my local network?

View Replies !
Trace Route Over Network
What's the best way to do this, I always get rooted by raw socks!

View Replies !
Access Network Files?
I'm making a script to read a certian file in 10 different machines. The problem is: If a machine is down, or inaccessible, then PHP will continue to "try to access" that file until a timeout occurs.

Is there a way to "ping" a machine to see if it exists, without having to wait for a timout? Currently, I'm using the following code:

View Replies !
Using PHP To Copy A File Over The Network
im using IIS and php 4, im trying to write a bit of code that will cope a file from 1 network location to another

i have tried 2 methods using the copy command, the first is mapping the network location onto the webserver

then going copy('x:example',... etc

the other method is using UNC paths, both work fine if i call the php script from the command line like c:phpphp.exe c:myscript.php
this works fine but from a browser i just get file cannot be found,

i have tried setting setting various permissions on the destination server, tried changing the IUSR_ account to a domain account etc,

View Replies !
Php Include On Network Drive
I've recently setup apache with an alias to my network drive, so when I type

localhost/work/

it will fetch the network address

//marge/share/www/

when I type

localhost/work/index.php

I get the following error:

Warning: Failed opening '//marge/share/www/index.php' for inclusion (include_path='.;c:php4pear') in Unknown on line 0

Is there a setting in PHP which I need to change for it to have access to my drive? or am I missing something??

View Replies !
Ms Access On A Network Unit
I have to access a MS Access database, but the problem is that the database is in a shared network unit. I'm having trouble accesing the network unit. I can't even open a txt file on the network unit. It outputs: Quote:

Warning: fopen(f: est.txt): failed to open stream: Invalid argument in c:web
eporte_test_new.php on line 5

but if I change the file to c: est.txt it does open the file. I'm thinking that since php executes commands as the user SYSTEM, maybe this user doesn't have acces to the network unit.

View Replies !
Affiliate Network Script
does anyone know of anywhere that sells these kind of scripts? that allow you to setup your own multi merchant affiliate network? not just a one merchant solution.

I found Affiliate Network Pro, but it doesnt look very good. does anyone know of any others? maybe i could hack Post Affiliate Pro 3 and turn it into a network, anyone know how hard that might be?

View Replies !
Network Inventory Script
does anyone have a script that can "scan a network" for live IP's? would really be helpful if someone could post either the script or a download.

View Replies !
Connect To Network Share
Is it possible to retrieve a file from a remote server via a PHP script? For example, lets say there's a log file on a remote server that you want to retrieve each day, sort the log files contents, then dump the info into a MySQL database. I guess the required steps would be:

1.) Connect to the remote server. Possibly a Windows share.
2.) Suppy the login credentials.
3.) Download the file from the remote server.
4.) Chop-up the file however you wish.
5.) Write info to database.

View Replies !
Network Status Script
I'm trying to find a very basic script/app that will allow me to create a web page with the current status of a few systems. I'd like to be able to edit it easily, through a web backend, change the status from red to green, add some notes about ETAs, etc. I've searched all over, and can't even seem to come up with something that remotely fits the bill that I might be able to customize.

View Replies !
Network Connect Query
i want to connect to a server, give it some data then check it's response

i think I can work out how to do it with fsockopen and fput and fgets but the query i have is does anyone know of a prgram i can run which will simulate a server on a given tcp port and display what it is the client sends when i attempt to connect to the server...

View Replies !
ODBC Connection Over A Network
I'm struggleing with how to get my DSN for an odbc connection that is over a network (i.e. on another drive). The database I'm trying to connect to is an Access database and does not have a username or password required to connect to it. However, I'm not sure what DSN I should be using to connect to it. If anyone can help me with this I would GREATLY appreciate it. I'll post my code below:

//Access connection
$access = odbc_connect('','','');

//MySQL connection
$msql = mysql_connect('localhost','root','');

//Open connection to Access Database
if ($linkID == false){
print "The connection to the Access database failed.";
}else{
print "The connection with the Access database was made successfully.";

//Open connection to MySQL Database
if($linkID == false){
print "The connection to the MySQL database failed.";
}else{
print "The connection with the MySQL database was made successfully.";
}
}
odbc_close($access);
mysql_close($msql);

View Replies !
Login Being Shared Across Network
I have a login script which I use on a large popular website. Just recently a MAJOR security flaw has been detected.

Over a large internal network if a user logs in on one machine, other machines are automatically logged in to that account. So if an admin logs in, every machine on the network can access that account!

Any ideas why?

View Replies !
Accessing LPT1 Across A Network
I'm 99% sure that this can't be done, but I'd figure I might ask; we have an Eltron printer that we send print codes to. I would like to access the lpt1 port on say 192.168.122.124 from 192.168.122.123 so that I can send it the print commands itself.

as far as i can tell it has to be at least shared before we could try something like net use ltp1 and copy files to it. I tried using dio_open but to no avail.

are there any pointers anyone could give me to go in the right direction?

View Replies !
Accessinging Phpmyadmin Through Network
I recently download wamp to my desktop. I would like to be able to access phpmyadmin via my laptop which is on the same network as the desktop. I was able to gain access to the webroot folder by configuring the httpd.config file but I can't gain access to to phpmyadmin. I tried adding a user with the host name being my laptops IP but that hasn't worked.

Is there anything that you guys could suggest that might help me out? Do I have to rename to host from localhost to the desktops ip?

PS I am currently trying to access phpmyadmin from my laptop by adding the url:

192.168.1.100/phpmyadmin

to the browser.

View Replies !
Intranet / Network Password
In our network each person has an individual username/password to log on. This password is changed regularly.

I am creating an Intranet website containing various sections and want to know if it is possible to provide a log in page for each section.

The log in should be the users own username/password that they use to initially log onto the network.

Is it possible to incorporate their username/password into the intranet site?

View Replies !
Blank Pages When Connecting From NT Network
When browsing to my online PHP pages all PHP content
is gone when connecting to the net from within an
Windows NT network.

View Replies !
Jet ODBC Connection Over Internal Network
We have an Access database that has been our bug reporting and tracking database for 6 years now. It is a .mdb file on one of the company servers with shared access. I am trying to establish a connection with this file for display purposes only from my web server which is just an NT station with Apache and PHP (strictly intranet usage)

I have read/write priveleges on this NT station to the location of the .mdb file. I have tried mapping a drive to that location, and connecting using UNC notation. No matter how I connect (I've created a system DSN with odbc_connect and using $conn = new COM("ADODB.Connection") I always get this error...

Warning: (null)(): Invoke() failed: Exception occurred. Source: Microsoft JET Database Engine Description: The Microsoft Jet database engine cannot open the file 'G:ug databasesmgs_tblsugtables.mdb'. It is already opened exclusively by another user, or you need permission to view its data. in C:Program FilesApache GroupApache2htdocsacquisitionviewbug.php on line 11

It's definitely set up for shared access, with locked records. The system has full priveleges to the location it's stored. What setting am I missing here? Here are the lines of code used to try to establish the connection. PHP Code:

View Replies !
Accessing Network Files Via A Script
I'm running IIS 5 and php5. I have tried the following

if (opendir('\serverfolderTEST')){
echo "dir";
} else {
echo "no dir";
}

it always echo's "no dir" I've tried various different ways to do the unc path such as:

//server/folder/TEST
serverfolderTEST
i've even tried mapping the drive on the server
I:TEST

and others. I know it's not a permissions issue, I have the folders set to everyone having full control.

View Replies !
Accessing Files/dir On A Windows Network
I need to access files on a Windows network. So basically the location would be serverdir1dir2 or something like that. I'm running this PHP script on a different server (call it serv2) that runs IIS. My code is something like this:

$dir = "serverdir1dir2";
if (is_dir($dir)) {
echo "IS DIR!
";
    if ($dh = opendir($dir)) {
       /*More stuff*/

It doesn't even recognize it as a directory.

Now I figure the problem is authentication. Basically all users in a domain (call it 'allusers') can access server and these files. But the scripts in serv2 (the one where PHP runs) is authentication anonymously using the account ISUR_SERV2, which is an account local to the serv2 server and not in the domain 'allusers'.

So I tried authenticating just this script using an account in the allusers domain (my own). However it still doesn't work. And I know for a fact that serv2 is connected to the network.

View Replies !
Localhost Ok On 1 Comp But Not Laptop On Network?
This is really more of a networking question, but I hope somehere here has done this before.

I've got PHP, Apache and MySQL installed and running good on my desktop (win xp pro), a wireless router with a WEP key and a laptop with a wireless card. The laptop can access the net no problem. Code:

View Replies !
Connecting To MS Access Db On Network Server
I am writing a program that accesses an MS Access database located on a network server. It's, purposely, a DSN less connection and I'm trying to connect to this server with the database without creating an ODBC connection. I have written code but, I continue to get an error message in the php error log file. Code:

View Replies !
Network Bar, Dynamic, Dropdown Menu
Basically I have a "network bar" that I place on the top of all my sites, which has a dropdown menu box to interlink all my other sites. Basically I would like to really modify this idea out more. Code:

View Replies !
List Files On Network Drive
I have been tasked with attempting to list files on a network drive. if it can not be done, this is fine, however I figure I will ask. I have attempted many of the available directory list code, as well as my own, however none of it can handle network drives, or even if I map the network drive it doesn't work. Is there any method of doing this? If so, it would save me a big headache. I am running IIS on Win2k w/ PHP 5.2.0.

I attempted to setup a virtual directory, which does not work as the IIS User doesn't have rights to the network drive (even though I mapped it to sign in as a different user), that is a differnet issue all together of course, not for this thread. However if there is any way PHP can do this. it would help a lot.

View Replies !
Affiliate Network Links Not Sure If Javascript
I have a affiliate network script that I just got that puts out its links (banner, text, flash, html, popup, etc.) in not sure if it’s javascript or php. I need it changed to something that will work on all websites. Right now the banner, text, etc. links do not work on some websites. Must have it fixed to work on all websites. Code:

View Replies !
A Generic Way To Gather Names Of Network (s)
Would it be possible to create an individual digg-like website, with all the functionality, but only show the digg site to the user who belongs to that network.

For example, let's say I have a digg site for California, and a digg site for Florida, is there any way to do this, and would it help to use PHP's class/object oriented features?

View Replies !
Include File On Network Drive?
I've recently setup apache with an alias to my network drive, so when I type

localhost/work/

it will fetch the network address

//marge/share/www/

when I type

localhost/work/index.php

I get the following error:

Warning: Failed opening '//marge/share/www/index.php' for inclusion (include_path='.;c:php4pear') in Unknown on line 0

Is there a setting in PHP which I need to change for it to have access to my drive? or am I missing something??

(the index.php file has "hello" as the contents.. that's all!)

View Replies !
Mail Function Not Working On My Network
SO i'm almost 100% sure my code is good as I basically copied and pasted the same code I had working on my web server. Now, I have it setup to email a form from a network server php file. The problem is that it isn't working. Neither is a header Location line either for that matter. I'm wondering why this is. Could it be because somehow these require php libraries that they don't have access to? It works fine on my web server.

Here's the code just for kicks, but like I said, it shouldn't be the code: ....

View Replies !
Interstitial Ad For Social Network Site
I am the owner of a social networking site and I like to do coding on my own sometimes to save $$$.

I am trying to figure out how to put interstitial ads on the site. If you are not familiar with interstitials, I am trying to make it so that when a user logs into their profile, they will be directed to a new page with an ad on it before they get to their profile admin. It will of course have an option to skip the ad.

View Replies !
Mkdir() On Network Mounted Drive Using XP
I've been trying for the last 15 hours to get this to work. Basically (it's that easy) I'm trying to create a folder on a mounted network(XP) drive (E:) using the mkdir function from a local script. I haven't got it to work. I've gotten two responses

No such file or directory

and

Permission Denied

I think I'm getting close using the code that returns permission denied.

First, I've been using the mkdir function like this

mkdir($path, 0777)

I've tried setting $path to several things.... (it only works when I put $path in single quotes ' ' and use escaping backward slashes)

$path1 = 'E:CustomerRyan'
$path2 = '\Widescreenetwork folderCustomerRyan'

(E: = WidescreenNetwork Folder)

Path1 returns file or directory not found
Path2 returns Permission Denied

I have Apache 1.3 and PHP 5 installed on both computers.

I've done a lot of searching for similiar problems. I might need to set up some <directory/> options in Apache config or change something in the php.ini.

As for XP folder permissions, I'm allowed to do everything on the network drive.

View Replies !
Integrated Network Users With PHP Script? NT Server
Now one of my systems is a sort of file browsing system that controls all of our ISO documents. I set up a script that read the file server directories and put info into a database along with file properties (filename, location, revision, subject, etc...).

My users can browse my intranet pages to search and open the proper files by department. My problem is that my script shows ALL of the documents and some have Confidential titles that not everyone should be allowed to see.

It's easy to block access but I will have to create a users & groups script that uses MySQL? My MIS is allready updating I think 3 seperate users & groups on the network, I don't want to add a forth! I was wondering if anyone has had any luck pluging into an Exchange server (since it's sort of a database). We don't have Windows2000 Server so no active directory is found on the network. We use Novell as file server.

With a possibility of 300 or more users, this can be a PITA if not done right.

View Replies !

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