Is it possible to have PHP act like a web browser, accept cookies and post
data (for login)? I'm not sure exactly where to start- I know you can use
fopen/file to retrieve url's but I'm not too sure about the other steps. I
would like to write and run such a php script as a cron job and have it
does anyone know of how or where I can find info on, accessing a IBM
mainframe which uses the TN3270 protocol via a socket?
TN3270 isnt ordinary telnet so I assume the existing telnet socket info
isnt helpful
ta
brendan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hi!
I'm having some goofy interactions between $this pointers in
classes and variables.
Case in Point:
if I have the following code:
children[] = $in_value;
}
function Y()
{
}
function Zabba()
{
$this->addValue("asdfasdfasdf");
}
Brian Rue wrote:
> Hi,
>
> I'm getting the error
> <>
>
> from this code:
>
> function validateUser($username,$password) {
> $conn = connectToMySQL();
> mysql_select_db($db_name,$conn);
> $query="select * from members where username='".$username."' AND
> password='".$password."'";
> $resul
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi everyone,
>
> I'm having troubles getting Apache to recognize .php files, and thus parse
> them. I followed the instructions included with the PHP4.1.0 distribution,
> and have PHP loaded a
have you tried MySQL Front? it\'s a really nice win32 client, check it out from:
http://www.anse.de/mysqlfront/
screenshot: http://www.anse.de/mysqlfront/images/mysqlfront.gif
>I have a huge project I am in the midst of developing (something similar to
>www.allmusicguide.com except exclusivel
Hello,
I'm working on a website for what will eventually be free
PHP/MySQL/Apache/DNS/etc hosting (see: http://hosting.venura.net , no
requests for accounts will be entertained right now), and am having problems
trying to get HTTP Authentication working. I had it working a month or so
ago, but th
Jester,
did you try hotscripts.com?? They have plenty of gallery scripts there.
Steph
- Original Message -
From: "Jeremiah Jester" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, December 16, 2001 8:44 PM
Subject: [PHP] picture gallery
> does anyobody have a simply php image
Hello,
Tom Rogers wrote:
>
> Hi
> What is the scope of the array that holds the object ?
global
> Maybe a bit of code to show what you are after :)
It is to implement another function that will return a reference (not a
copy) of a object stored in a global array passing the index of the
array
Hello,
I'm working on a website for what will eventually be free
PHP/MySQL/Apache/DNS/etc hosting (see: http://hosting.venura.net , no
requests for accounts will be entertained right now), and am having problems
trying to get HTTP Authentication working. I had it working a month or so
ago, but th
"Neil M" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using php to upload image files.
>
> heres my code ..
>
> if (is_uploaded_file($photo_file))
> {
>
> clearstatcache ();
> $size = filesize ( $photo_file ) ;
> if ( $size > 1024000 )
> {
> print
Hi
What is the scope of the array that holds the object ?
Maybe a bit of code to show what you are after :)
Tom
At 03:37 PM 17/12/01, Manuel Lemos wrote:
>Hello,
>
>Tom Rogers wrote:
> >
> > Hi again
> > Got a bit sidetracked ... here is your original code :)
>
>Thanks, I managed to make it work
Hello,
David H wrote:
>
> Hi all,
>
> I am trying to findout what is wrong with this script
> can anyone help?
>
> $dbconn = pg_connect ("cnnection string")
>
> or die ( "Error: ".pg_errormessage
> ($dbconn
Hello,
Tom Rogers wrote:
>
> Hi again
> Got a bit sidetracked ... here is your original code :)
Thanks, I managed to make it work for me similarly to that.
Now, a different problem, I already have array variable with a object.
Is there a way to make a function return a reference to that object
Use the function mysql_data_seek(result variable, row number)
so in your case it would be: mysql_data_seek($result2, 0);
You should also consider suppressing the warning for an empty set by placing
a '@' in front of the function
- Original Message -
From: "Ivan Carey" <[EMAIL PROTECTED]>
Phillip B. Bruce wrote:
> 1. Is there any documentation that explains the differences between
> the versions of PHP?
php4 : much more fun ! go use it !
the documentation will tell you on each function page in which php
version the fuction was first available.
> 2. Does it matter when writing
Trx wrote:
> Hi, I'm very much a newbie!
> I'm trying to set up a site which will automatically test links in a large
> link directory and show date and time of last check and whether or not a
> link to the external URL was dead or alive at the time.
the curl library will let you do this. query
> -Original Message-
> From: Ray Gaylog [mailto:[EMAIL PROTECTED]]
> I've been using PHP for just a little while, however I have
> noticed somthing.
>
> In the doc's I've noticed you can do this:
> printf("line1 \n line2 \n");
>
> Now..this should (like C) print two seperate lines..however
HTML doesn't pay attention to line breaks, thats why you're
needing a ...
Jason
--
Jason Murray
[EMAIL PROTECTED]
Web Developer, Melbourne IT
"Work now, freak later!"
> -Original Message-
> From: Ray Gaylog [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 17, 2001 3:49 PM
> To: PHP
Hi..
I've been using PHP for just a little while, however I have noticed somthing.
In the doc's I've noticed you can do this:
printf("line1 \n line2 \n");
Now..this should (like C) print two seperate lines..however It doesn't. To print this
on seperate lines I must put a in there.
Any ideas
Well..to determine the format the file file..you may find some sort of
routine to check..but why not create one?
I mean, in windows, the extension determines the file format right?
So do a loop that starts from the last character, and goes back one until
you reach the "." (dot).
Based on that yo
Well,
One way is to log that the user is online into a database...or a flat file.
I have done this before using a database (very easy), however I have not
used a file yet..but it is possible. Use fopen() routines and fclose() for
the low level file access.
Another method is to use cookies..the
does anyobody have a simply php image gallery script they could share with
me? Using for my personal site.
Thanks,
JJ
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
Tommy Straetemans wrote:
> Is there a way to check the height and width from a picture that I upload?
yes, easy.
but you need gdlib installed.
will tell you.
from the documentation:
" The GetImageSize() function will determine the size of any GIF, JPG,
PNG, SWF, PSD or BMP image file a
In Win98 at least it should be in C:\Windows.
php.ini could also be run out of the directory where the *.php is running.
Jeremiah Jester wrote:
> Does it matter where my php.ini file is located on a windows2000 system?
> Does it always need to be on the root of the volume where the files are
> b
John Lim wrote:
> This is a known bug with persistent database connections. Switching to
> non-persistent connections or ISAPI avoids this problem.
thanks !
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTE
Hi,
I'm getting the error
<>
from this code:
function validateUser($username,$password) {
$conn = connectToMySQL();
mysql_select_db($db_name,$conn);
$query="select * from members where username='".$username."' AND
password='".$password."'";
$result = mysql_query($query,$conn);
if (mysql_nu
Does it matter where my php.ini file is located on a windows2000 system?
Does it always need to be on the root of the volume where the files are
being served or can it be located on another volume?
Thanks,
JJ
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
I totally agree with you!!
>From what someone told me, the new version of the Zend engine will fully
support OOP (but don't quote me on this as I haven't had time to look at the
Zend site to confirm this) - I'm looking forward to seeing it. This would
make PHP a really powerful language then!!
M
David,
Your code should read:
-Original Message-
From: David Killingsworth [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 16, 2001 2:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] using variables
I'm trying to determing why this won't work.
I wish to assign graphics to variables t
Hi there,
Just wondering if there is any plans for more work on the PHP OO features,
and/or the parser in relation to these features. Generally I find the PHP
OO features to be quite useful, but there is some major limitations which
often frustrate me at times, for example:
$result = $object->m
Ah,
I thought that I may have missed something when I was reviewing the features.
Thank you.
Indera
R'Twick Niceorgaw wrote:
> Just name of one of Aletia's servers
> ---
> R'twick Niceorgaw
> 98C Cedar Lane
> Highland Park, NJ 08904
> USA
> 732-246-14
Let me add that I do currently use PHPMyAdmin. As cool as it is I juts want
to see what others are using to make sure I am not missing out on anything!
Deron
www.metalages.com
"Deron" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I have a huge project I am
I have a huge project I am in the midst of developing (something similar to
www.allmusicguide.com except exclusively for Metal/Hard Rock). I have set up
my MySQL tables/PHP code for the most part. My question is 2 part:
Of you all, do you use a GUI platform such as MySQL Manager or MySQLGUI,
etc.
Hi, I'm very much a newbie!
I'm trying to set up a site which will automatically test links in a large
link directory and show date and time of last check and whether or not a
link to the external URL was dead or alive at the time.
On looking at the PHP manual it is not completely obvious which fu
Hi all,
I am trying to findout what is wrong with this script
can anyone help?
$dbconn = pg_connect ("cnnection string")
or die ( "Error: ".pg_errormessage
($dbconn)) ;
php-general Digest 16 Dec 2001 21:16:17 - Issue 1056
Topics (messages 77860 through 77883):
DOM XML Issues with 4.1.0?
77860 by: Mark
Re: Web Based Control Panel for Hosting
77861 by: xk8org
php snmp compile error
77862 by: kancha
Why don't ...
77863 by: Y
Can I do this? Can someone help please?
I have a mess of variables I HTML from a couple of different
scripts, so I combined them into "fields_to_include.inc"
And now, I do this:
$news = mysql_query('select * from ccl where ... blah blah ...
order by AU asc');
while ($data =
I am using php to upload image files.
heres my code ..
1024000 )
{
print (" ERROR - File is too big ! File uploads should be below 1024 k
( 1mb ) "); exit ;
}
move_uploaded_file($photo_file, "$upload_path$check_nick->nickname");
}
else
{
echo " ERROR : File upload was not successfull
> Hi,
>
> I have a couple of questions before I get to my problem.
>
>1. Is there any documentation that explains the differences between
> the versions of PHP?
sure. have a look at the changelog
http://www.php.net/ChangeLog-4.php
>
> 2. Does it matter when writing php code that you
1. http://www.php.net/ChangeLog-4.php
2. and yes, you have to specify the exact filename...your issue is that
include_once is not a function in php3, if that code is infact from a php3
file...
"Phillip B. Bruce" wrote:
> Hi,
>
> I have a couple of questions before I get to my problem.
>
>
Hello,
I am working on a a script that reads in an HTML file, and outputs formatted
plain text. Not a significant task, but one area that I am having
difficulty with is gracefully converting the 'A' element. The desired
outcome is text that maintains the link reference in brackets:
---
Hi,
I have a couple of questions before I get to my problem.
1. Is there any documentation that explains the differences between
the versions of PHP?
2. Does it matter when writing php code that you specifiy the file
name in the following
manner? test.php3 test.php4 or whateve
Is your second character perhaps a 0? That while loop is going to end as
soon as it gets a character that evaluates to 0. Write it like this
instead:
while(!feof($this->m_file)) {
$c = fgetc($this->m_file);
if(is_numeric($c)) $str .= $c;
}
-Rasmus
On Sun, 16 Dec 2001, Yoel Benitez F
Hi,
I know the following code displays my page in the language set in the users
browser.
However while I do initially want the page to load in the language of the
browser setting I also need to be able to allow the user to change the
language and the above does not allow for this.
Can anyo
At 09:14 AM 12/16/2001 -0500, Yoel Benitez Fonseca wrote:
>Hi!
>
>The following code fragment tries to read a sequence of digits from
>a file but it doesn't work, only the first character is read,
>Which is my error?.
>
>
>$str = "";
>while( ($c = fgetc($this->m_file)) && e
"Webleycity" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> If one creates a file outside the web space on a server. How doe's one
> connect to this from a HTML or PHP page?
>
> As I understand it. It is not as simple as normal html link.
>From an HTML page
I am looking for a mentor to help me along with
using php and mysql
i am a designer for over 9 years now..and will
in return help you with anything pertaining to
layout and design
i have alot of dumb questions pertianing to
php and mysql dba can someone help me
i would appreciate any help I can
Hello,
Alawi wrote:
>
> now who can help me about cach my query every certain time:(
> I mean the first user requst the page and php will run query for this first time
>
> after that I want other user to have the result that the first user have it !!
>
> untill the ten minutes end I want the q
"Webleycity" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> A client wants a webcam on his site. Does any body know what script is
used
> and how it works.
The camera should come with a prog to take a snapshot.
Write a batch file that takes a snapshot, then
Alawi wrote:
> now who can help me about cach my query every certain time:(
> I mean the first user requst the page and php will run query for this first time
>
> after that I want other user to have the result that the first user have it !!
>
> untill the ten minutes end I want the query to run
now who can help me about cach my query every certain time:(
I mean the first user requst the page and php will run query for this first time
after that I want other user to have the result that the first user have it !!
untill the ten minutes end I want the query to run again
this advantg
Hi,
I'm running a Solaris OS. I have written a CGO
function to call common header & footer for pages. All
HTML pages are running well with it, however, a PHP3
page is not!! It's contents are not showing up.
Nothing i showing up! What do i do?
T. Edison jr.
=
Rahul S. Johari (Director)
good prices here on
http://www.webleycity.co.uk/offers/index.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 05:53 PM 12/14/2001 +1100, Vincent Ma wrote:
>Hi everyone:
>
> I would like to know how to specific item in array. For the add new item
>to array, we know just :
>
>$array += array("$key" => "$value");
>
>How to remove specific item in array???
unset(array["specific_item_index"]);
...h
Hi everyone:
I would like to know how to specific item in array. For the add new item
to array, we know just :
$array += array("$key" => "$value");
How to remove specific item in array???
I tried --> $array -= ("$key" => "$value");
Don't work... >_<.
Before, i saw some code in o
Hi,
i still need help with this query:
$t = 7;
$shot_counts = "SELECT COUNT(*) FROM statistik WHERE shooter='$shooter_login' AND
(shot_one = '$t' OR shot_two = '$t' OR shot_three = '$t' OR shot_four = '$t' OR
shot_five = '$t')";
It doesn´t return the correct count. I have tried to tweak the s
Hi!
The following code fragment tries to read a sequence of digits from
a file but it doesn't work, only the first character is read,
Which is my error?.
$str = "";
while( ($c = fgetc($this->m_file)) && ereg("[0-9]", $c) ){
$str .= $c;
}
Thank y
I've downloaded php 4.1.0 and ucd-snmp 4.2.3. I was able to compile snmp
successfully. Then i tried to compile php with snmp support. Followign is my
configure parameters
./configure --with-apxs=/usr/sbin/apxs --enable-calendar --with-pgsql
--with-snmp --enable-ucd-snmp-hack --enable-wddx --e
I have used Alabanza and also CPanel (cpanel.net). Wouldn't touch Alabanza
again as it's very expensive. I think there is a freeware one called webmin
out there somewhere too
Ade
--- i n o v i c a h o s t i n g . c o m --
Powerful hosting from www.inovicahosting.com
--
Hello.
I developed a pretty cool website whose content is entirely
specified in XML, and use PHP DOM to convert it to HTML (XSL would be
a bit painful).
Now, with PHP 4.0.6 and libxml2-2.4.7, everything worked fine,
except that there was a huge memory leak somewhere in the PHP o
php-general Digest 16 Dec 2001 08:49:09 - Issue 1055
Topics (messages 77827 through 77859):
Re: Newbie-student Database PHP Question
77827 by: Webleycity
Re: Need high bandwidth provider for my Asian community site
77828 by: Webleycity
77842 by: Webleycity
Webcam o
Hi
you need:
or
Tom
At 05:39 PM 16/12/01, David Killingsworth wrote:
>I'm trying to determing why this won't work.
>I wish to assign graphics to variables then call them
>within the HTML on my .php pages.
>--test.php--
>$ulo = "/images/ulo.gif";
>?>
>
>b8126e.jpg
>---end test.p
Hello, just wondering if I want to get the most out of gd 2+ with php
does it require freetype 2+? Or can I get away with freetype 1.35?
Thanks
Joel
64 matches
Mail list logo