|
by: Chung Leong |
last post by:
My contribution to the comp.lang.php FAQ:
-------------------------------------------------------------
Q: How do I retrieve a page from a web site?
A: Pass a URL to file() or file_get_contents(). The former returns the
contents as an array of lines. The latter returns the same as string.
Example:
$html = file_get_contents("http://www.cnn.com");
|
by: David Rasmussen |
last post by:
Some sites seem to be session driven in the sense that if I visit the
homepage and do a few clicks I can navigate anywhere I want, but if I
paste the current location into a new browser window after having
navigated to some page, it doesn't work. It just returns to the start
page or says "timeout" etc.
This means that I can't read these pages from PHP with
$string = file_get_contents('http://some.url/blah/deep/link');
|
by: forums_mp |
last post by:
I've got an STL class (see below) with two functions to store and
retrieve data - msg structs.
The "Store" function when called will copy the received message
(depending on which message) into the appropriate array. For instance
if I receive a RCVD_MSG1, I'll copy into msg1 . Upon receipt of
the next RCVD_MSG1. I'll copy into msg1 .
The Retrieve function when called should retrieve the latest copy.
ie. msg1 or msg1 .
|
by: Will Price |
last post by:
I am having problems using UDPClient.Send() in System.Net.Sockets. Each time
I make the call to the function, there is a significant delay from when the
code is executed to when the packet actually goes out. I took a look at the
traffic and found that each time the UDPClient.Send() call was made, two UDP
netbios messages go out on port 137. The device on the other end responds
each time with an ICMP. After two attempts, the .Send...
|
by: Rob Rintjema |
last post by:
I need to be able to communicate to a DOS based a novell netbios workstation
using the .NET framework sockets.
|
|
by: D.R. |
last post by:
hi,
i need to retrieve all indexes and keys from tables and files.
right now i'm using SQLStatistics, but it retrieve only the indexes on
tables (indexes that appear on the catalog sysindexes).
i need to retrieve also the key fields in physical file.
1. how can i retrieve the key field in physical file through ODBC?
2. Is there another AUTOMATIC way retrieving the key field? for example
a way to AUTOMATICLY transofrm the key field into...
|
by: =?iso-8859-1?q?Magnus_T=F6rnvall?= |
last post by:
Hi!
I'm trying to write a program that can tell if a remote computer is
running Windows or not. The thing is, it have to go very fast, so I
don't want to "connect" to the computer.
My plan is to send a netbios request and if I get a response I know
it's probably a Windows machine.
The problem is that I can't use the Netbios function in NETAPI32.DLL,
|
by: Erjan |
last post by:
Hi,
I am using TcpClient to connect to a device which does not talk
NetBios. The TcpClient tries first to do something with Netbios. This
probably failes on a timeout and then TcpClient sets up the TCP
connection. Due to this it takes about 5 secons to set up a TCP
connection on a LAN.
Is it possible to disable the NetBios request ? I have rewritten the
program with sockets but also sockets try to
|
by: LetMeDoIt |
last post by:
Greetings,
I'm using ASP to retrieve from MSSQL and I then populate a table.
After several months of successfull retrieves, this same code now
bombs out. It turns out that if I clear out from SQL about 10,000
records, the retrieve is then successfull.
Reading some of the posts, I believe I need to set the cache. If
anyone can point out where that cache, it would be greatly
appreciated...
|
by: Mel |
last post by:
I have 10 columns total. 3 of them are invisible. The rest are read-
only BoundFields, 3 of which are editable fields using
TemplateFields. Upon editing, I want to validate what the user enters
against one of those invisible columns. How do I accomplish this?
The code below that I attempted just returns an empty string when I
try to retrieve the invisible column data:
gvParts.Rows(e.RowIndex).Cells(8).Text
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
|