On Thursday 31 October 2002 18:34, Simon Taylor wrote:
> Hi All,
> Does anyone know if there is a good php development environment around, you
> know something that will hold a list of functions/classes so you don't have
> to scroll through thousands of line of code looking for a few lines of
> spu
This is the query I am running on my database:
$query = "select orderid from receipts order by receipt_id DESC LIMIT
0,1";
$orderid = mysql_query($query);
That should return the last record in the DB? Correct?
I currently get a number returned which is the number plus 1.
IE if 423 is the las
Im not sure, but I believe Ive noticed this when I fopen() a file with
the 'b' value like fopen($foo, 'wb');
I may be totally wrong...
Brandon Orther wrote:
Hello,
Does anyone know a way around all the ^M at the end of each line that my
php file writes to on a linux box?
No, it should not return what you want.
When you do
$orderid = mysql_query($query);
all this does is actually execute the query, and returns an array
containing the actual result set.
What you need to do from here is to do:
$myrow = mysql_fetch_assoc($orderid);
Now, what you have is an associati
Hello,
(B
(B"David Russell" <[EMAIL PROTECTED]> wrote:
(B
(B> Hi all,
(B>
(B> I am setting up a new production server. Assuming that I do not need
(B> register globals, what does everyone suggest for setting it up:
(B>
(B> Linux machine
(B> Apache
(B> PHP 4.2.3
(B>
(B> My real ques
Im some what new to xml but I've put together a basic xml parsing
script, and for some reason, on data like ->
It's been a few days since...
the parser thinks its 3 lines. Its parsing a new line on htmlentities
like '
So with the above line the looped output is like ->
Data --> It
Data --> '
Da
Hello,
(B
(B"Petre Agenbag" <[EMAIL PROTECTED]> wrote:
(B> Hi
(B> I'm wondering if something like this will be possible.
(B>
(B> I am correct in thinking that POST and GET data are sent as plain text?
(B
(BNot always. (POST -> SSL)
(B
(B> And, that being plain text, they should probably b
The problem is that under Windows, case sensitivity is important on
require_once
require_once("DB.php")
is different than
require_once("db.php");
Arh! I hate you Windows.
"Kerry Kobashi" <[EMAIL PROTECTED]> wrote in message
news:20021101073558.1581.qmail@;pb1.pair.com...
> Whats the dif
Hello,
(B
(B"Simon Taylor" <[EMAIL PROTECTED]> wrote:
(B> Hi All,
(B> Does anyone know if there is a good php development environment around,
(Byou
(B
(BZend Studio ?
(Bhttp://www.zend.com/store/products/zend-studio.php
(B
(B- E
(B
(B...[snip]...
(B
(B--
(BPHP General Mailing List (
Hi
Yes, I thought your last comment would also be "doable", but it would be
nice to have this zipping done on the user' behalf. The whole reason why
I *think* this is possible, is because you can unzip and process the
data on the server side in an automatic way, so it *should* be possible
to do thi
Peter J. Schoenster wrote:
> Here is the example:
>
>
> $string = 'asfddsaz';
>
> if (eregi('\s', $string)) {
> echo "Whitespace present";
> }else {
> echo "NO Whitespace present";
> }
> ?>
>
> Why does the above return true? There is no whitespace in the string.
> What am I missing?
Try
I use the Maguma Studio environment (http://www.maguma.com/). It features
some pretty little colors in the code too. It also makes it easy to find
what you need from all your classes and other files in a convenient style,
and it is almost totally customizable. You can even customize PHP and HTML
ta
Well, the way I've read it is that if you use require within control
structures then all files are included, regardless of whether the script
exits before it reaches its next if...elseif...else or case statement. With
include that does not happen. So the general rule of thumb would be to use
requir
Hai!
I had downloaded Apache2.0.43 from apache site and
installed on my linux7.1 box, the configure/make .make
install went smooth, after that I started Apache
server.
Now my problem is when I tried to access localhost
through any browser(ie http://localhost) its saying
host not found(or unknownh
I have two arrays and I have complete list of numbers in one of them,
lets call it $complete[]
and another that has some values of the complete one, lets call that one
$part[], now if I want to
return an array with all the values that are in $complete[] but not in
$part[], how would I do that?
R
On Friday 01 November 2002 19:22, Davíð Örn Jóhannsson wrote:
> I have two arrays and I have complete list of numbers in one of them,
> lets call it $complete[]
> and another that has some values of the complete one, lets call that one
> $part[], now if I want to
> return an array with all the valu
Well, OK
I think your problem is here:
You sql *could* and probably does return more than one row.
Yet, your code as it is now will only return the first row.
You need to cycle through the result rows with a while statement, like
this:
while ($myrow = mysql_fetch_assoc($result)) {
$my_id
On Friday 01 November 2002 19:11, Ramesh Pillai wrote:
> Hai!
> I had downloaded Apache2.0.43 from apache site and
> installed on my linux7.1 box, the configure/make .make
> install went smooth, after that I started Apache
> server.
>
> Now my problem is when I tried to access localhost
> through a
Hi,
I need some help with a regexp for preg_split. I want the string
str = "this is 'a string that' contains phrases";
to be split into:
arr[] = "this";
arr[] = "is";
arr[] = "a string that";
arr[] = "contains";
arr[] = "phrases";
but I'm having some trouble coming up a good regexp
I need to write a stand alone script runing on a server that checks and
updates a database every week, is this posable and if so
could some one direct me to a tutorial or to any info on doing this.
Regards, David
Are you familiar with PHP, or are you more worried about how to "call"
and execute the script from the server itself on a weekly basis ( cron
job) ?
On Fri, 2002-11-01 at 14:41, DavÃð Ãrn Jóhannsson wrote:
> I need to write a stand alone script runing on a server that checks and
> updates a da
> I need to write a stand alone script runing on a server that checks
and
> updates a database every week, is this posable and if so
> could some one direct me to a tutorial or to any info on doing this.
Yes, it's possible. Look into cron to run your script on a schedule.
---John Holmes...
--
I installed PHP 4.2.3 on Mac OS 10.2.1 , activating the PHP Module with
the following commands on terminal window
cd /etc/httpd"
sudo apxs -e -a -n php4 libexec/httpd/libphp4.so"
echo 'echo "AddType application/x-httpd-php .php" >>
/etc/httpd/httpd.conf' | sudo sh -s
It works fine and I would l
Hi,
When the user logs in , i create a session with session varialbles, the
session cookie is saved on clients computer.
When i log off i say
session_unset();
session_destroy();
setcookie(session_name());
The session in the tmp is deleted , but the cookie is still there , i know
this because wh
Hi,
When the user logs in , i create a session with session varialbles, the
session cookie is saved on clients computer.
When i log off i say
session_unset();
session_destroy();
setcookie(session_name());
The session in the tmp is deleted , but the cookie is still there , i know
this because wh
hi.. a newbie here
a user fill up a form with username and password
passing the form through 'POST'
a session was created,
a user login,
a user logout + session destroy,
but after that if the user press back button
on the browser seems like the browser
will repost the username and password back
t
Hi,
I have been trying for most of the day to pull a variable from a db.
Finally managed that. Now I need to pass the result of a function to
another function.
How do you do this?
I assume the following if called in another page can be used?
function get_shipping($shipping)
{
$conn = db_connect()
On Friday 01 November 2002 22:04, Steve Jackson wrote:
Please use a descriptive subject!
> I have called it in another page by doing
> get_shipping($shipping)
>
> And then
>
> Echo "test $shipping";
$returned_variable = get_shipping($shipping);
echo $returned_variable;
Or you can use the return
I need a string expression to verify an alpha numeric password. This is what
i've come up with , however it does not work:
elseif ( (!ereg ("^[a-zA-Z]+$", $password)) || (!ereg ("^[0-9]+$",
$password)))
can anybody help? Thanks in advance
ADAM
--
PHP General Mailing List (http://www.php.net/)
I'm using WebDAV in Apache 2, whenever I try to get an html file it works
fine, but when I try to get a PHP file I get an error saying it cannot get
filename.php. How come I can only get html files through WebDAV? Is there
a way to change this? Thanks!!
--
PHP General Mailing List (http://ww
> -Original Message-
> From: @ Darwin [mailto:superbus22@;attbi.com]
> Sent: 01 November 2002 10:17
>
> Well, the way I've read it is that if you use require within control
> structures then all files are included, regardless of whether
> the script
> exits before it reaches its next if..
Did you install from the source code or a pre-compiled bin? (from Marc
Liyanage.?)
If so there is usually no php.ini file with it. If you are using Marc's
binary package then create a blank php.ini
file:
sudo mkdir -p /usr/local/lib
sudo touch /usr/local/lib/php.ini
Then you wi
Sorry for the OT post, quick mysql question...
I've found a couple of cool utilites that will create basic forms from a mysql table
(add/edit/delete/search), which look they could save some time coding.
However, I can't connect with them because my server is setup as localhost. I
How do you cr
Hi all,
I upgraded php and apache on my development machine (Windows XP). I am
now running apache 1.3.27 and php 4.2.3.
When I run a phpinfo(), I get my full list of stuff as expected, except
that the apache version reported is 1.3.24.
Has anyone else seen this. Have I done something wrong?
Th
http://www.mysql.com/doc/en/Adding_users.html
http://www.mysql.com/documentation/lists.html
Kelly Meeks wrote:
Sorry for the OT post, quick mysql question...
I've found a couple of cool utilites that will create basic forms from a mysql table (add/edit/delete/search), which look they could save
Sorry to keep on at you guys but this is really getting to me now!
I want to pull a shipping quantity (the very last record in the Db) into
a page and am still having problems. Tried looping through the records
and I can't seem to get it to return anything:
function get_shipping($shippingvar)
{
$
Steve Jackson wrote:
function get_shipping($shippingvar)
{
$conn = db_connect();
$query = mysql_query("SELECT MAX(receipt_id) from receipts");
$myrow = mysql_fetch_row($query);
$shippingvar = $myrow["shipping"];
return $shippingvar;
Check http://php.net/mysql_fetch_row ... specifically, mysql
Hi,
I have a form with a checkbox like so:
When I submit, the value is always shown as "ON" regardless of whether I've
checked the checkbox or not. So this begets the question, How can I code my
PHP form processing script to determine whether the checkbox was checked?
Thanks,
Don
--
PHP Ge
if ( isset ( $_POST['shipper_save'] ) ) {
echo ( "It's Checked" );
}
Or use $_GET['shipper_save'] depending on your forum method.
DonPro wrote:
Hi,
I have a form with a checkbox like so:
When I submit, the value is always shown as "ON" regardless of whether I've
checked the checkbox or not.
Did you install from the source code or a pre-compiled bin? (from Marc
Liyanage.?)
I installed PHP from Marc Liyanage pre-compiled bin
If so there is usually no php.ini file with it. If you are using
Marc's binary package then create a blank php.ini
file:
sudo mkdir -p /usr/local/li
The syntax as I have used it is (not the cleanest or best way to do
it by a long run - but it works):
>
this will have the checkbox be checked by default, also you can do what
ever other things you need to do based on the on/off conditions.
On Fri, 1 Nov 2002 10:47:43 -0500
"DonPro" <[EMAIL PRO
There's no php.sql, so I'll put it here.
I'm trying to do a search from mysql database like this:
if (!$inquiry = mysql_query("select id,link,heading,desc from links where
heading like '%$entry%' or desc like '%$entry%'
or keyword like '%$entry%'",$connection)){
print "Search was unsuccesful!
uncompress eXtremePHP. It may get have a weird directory name. Change the
directory name to xpl.
copy xpl to /Users/pierreva/Sites/xpl either from the CLI or just drag the
xpl dir into your Site dir
cd /usr/local/lib
sudo vi php.ini
while in vi type /auto_prepend
(this is to search to the
Echo your query and ensure that $entry has data in it, otherwise
matching '%%' will match everything as you are getting.
Cheers,
Rob.
samug wrote:
>
> There's no php.sql, so I'll put it here.
>
> I'm trying to do a search from mysql database like this:
>
> if (!$inquiry = mysql_query("select i
And you may want to try
$query = "select `id`, `link`, `heading`, `desc` from `links` where
`heading` like '%" . $entry . "%' or `desc` like '%" . $entry% . "' or
`keyword` like '" . %$entry% . "'";
if ( ! $inquiry = @mysql_query ( $query, $connection ) )
Robert Cummings wrote:
Echo your qu
At 10/31/2002 03:00 PM, John Wards wrote:
On Thursday 31 Oct 2002 3:00 pm, jianking wrote:
> Who can tell me where I can get the cracked Zend Encoder 3.0 ?
Are you a muppet?
This list is run by the people who make Zend Encoder!
FOOL
Ah, my first laugh of the day.
--
S. Keller
UI Engineer
T
> > Who can tell me where I can get the cracked Zend Encoder 3.0 ?
>Are you a muppet?
>
>This list is run by the people who make Zend Encoder!
>
>FOOL
>Ah, my first laugh of the day.
Okay, that's enough. I'm incredibly disappointed in this list. It's very
helpful at times, but at other times can
php-general Digest 1 Nov 2002 18:19:05 - Issue 1679
Topics (messages 122384 through 122438):
PHP-GTK 0.5.2 released
122384 by: Andrei Zmievski
Re: Displaying Data of a MySQL Table in PHP
122385 by: Jason Wong
php development environment
122386 by: Simon Taylor
I for one think that poster didn't enough grief. I mean, you go on and
on about making a 'mistake', but it's not like his mistake was to ask a
JavaScript or MySQL question in a php mailing list. He asked for an
illegal version of software from those who make / contribute to the
software. Tha
Okay enough now.
--
M.CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com Hébergement de sites internets.
"John Nichel" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> I for one think that poster didn't enough grief. I mean, you go on and
> on about making a 'mistake',
<>
Disrespect or not, anyone ever copy a game? Or a CD or tape? Or a movie?
Anyone ever download anything off the Internet? It's all the same, and I
doubt any of the people on the list showing the same disrespect this person
may have showed have never done that. Again, cut this poster some slack a
Easy Liam, the guy posted to the list asking for something illegal. It is
not like he had posted something like we have all seen before where a broad
question is asked and a broader answer given.
Jay
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
I just moved some *working* code from a Win2k server running PHP 4.2.1
to a FreeBSD server running 4.2.3 and the following code no longer
works...
$templatetext = preg_replace("//e", "g_includecallback(\"\\1\")", $templatetext);
if (!preg_match("/([[:ascii:]]+?)([[:ascii:]]+?)([[:ascii:
Asking for something illegal is *wrong*.
But, there's always a better/proper way of dealing with this kind of
person/situation.
Let's get busy coding--jokes and laughs (and ...whatever) can be found
somewhere else...
- E
--
"Do not answer anyone
> Asking for something illegal is *wrong*.
But just stealing it without asking is OK?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
<[EMAIL PROTECTED]> wrote:
>
> > Asking for something illegal is *wrong*.
>
> But just stealing it without asking is OK?
>
Tell me.
if (that was a joke){
I need to rephrase myself...
> Let's get busy coding--jokes and laughs (and ...whatever)
> can be found somewhere else...
should
What am I doing wrong here? I have a login form that visitors enter their
"use"name and "use_psswrd" in to log in...the form action is this code:
==
session_start();
if ($_REQUEST[use_name] && $_REQUEST[use_psswrd])
{
$connection = mysql_connect("SERVER","USER","PASS") o
Hello,
(B
(B"Adam" <[EMAIL PROTECTED]> wrote in message
(B[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
(B> I need a string expression to verify an alpha numeric password. This is
(Bwhat
(B> i've come up with , however it does not work:
(B>
(B> elseif ( (!ereg ("^[a-zA-Z]+$", $password)) ||
Hello,
(B
(B"David Russell" <[EMAIL PROTECTED]> wrote:
(B> Hi all,
(B>
(B> I upgraded php and apache on my development machine (Windows XP). I am
(B> now running apache 1.3.27 and php 4.2.3.
(B>
(B> When I run a phpinfo(), I get my full list of stuff as expected, except
(B> that the apac
Hello,
"samug" <[EMAIL PROTECTED]> wrote in message
news:20021101163718.65263.qmail@;pb1.pair.com...
> There's no php.sql, so I'll put it here.
>
There's php.db, however... :)
- E
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am attempting to upload image files to the server from a users browser
using the following code, however, the images seem to get corrupted, they
look completely different and the file sizes are generally smaller, also it
sometimes says file upload unsuccessful, even when it does upload the file?
Restart apache... that should be it
on XP use the Restart Script in you apache program group
on unix do a
/usr/local/apache/bin/apachectl graceful
or just
apachectl graceful
if it is in your path
HTH,
Matt
At 05:50 AM 11/2/2002 +0900, you wrote:
<[EMAIL PROTECTED]>
--
PHP General Mail
My apologies, here is the code!
//copy image to server
if ($image != "none") {
if (copy ($image, $dir.$image_name)){
echo "File upload successful!";
} else {
echo "File upload unsuccessful!";
}
//new name of image
$new_name = "$property_id-$category_id-$sub_category_id.jpg";
Hello,
"Jay Fitzgerald" <[EMAIL PROTECTED]> wrote:
[snip]
> ===
> session_start();
>
> if (isset("valid_id"))
> {
> echo "$_SESSION[valid_id]";
> }
> else
[/snip]
Perhaps, it's because you need to ask
if (isset($_SESSION['valid_id'])) ?
- E
--
PHP General Mailing
Confirm that you're using the proper header information in your HTML
tag..
-Kevin
- Original Message -
From: "Shaun Thornburgh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 01, 2002 1:51 PM
Subject: [PHP] Re: uploading files
> My apologies, here is the code!
>
>
Thats all fine
Here is my form header
"Kevin Stone" <[EMAIL PROTECTED]> wrote in message
news:020201c281ec$04515820$6601a8c0@;kevin...
> Confirm that you're using the proper header information in your HTML
> tag..
>
> -Kevin
>
> - Original Message -
> From: "Shaun Thornburgh" <[EMAIL
Hi all:
I am having a problem in accessing form data from
multiple check box
of same name with different values, like this
Where
When I use sessions in PHP or just plain login/password in $_POST, can
3rd parties or hackers monitor the transmission, between me and user,
and somehow decode the transmission and use the variables to login other
time or overtake the current session?
If so, how likely is for someone to manage it
Hello Everyone,
Does anyone have an regular expression or other way to extract an email
address out of a string.
I have been using:
if (ereg ("^" .
"[a-z0-9]+([_\\.-][a-z0-9]+)*" .//user
"@" .
"([a-z0-9]+([\.
Hi every1
This is a theorical question about the best way to use classes.
I have a class named anything, and also theres a table named ahything ..
The class attributes are the same fields of the table like this
Class anything {
var $something1;
var $something2;
var $so
Hello,
"SED" <[EMAIL PROTECTED]> wrote:
> When I use sessions in PHP or just plain login/password in $_POST, can
> 3rd parties or hackers monitor the transmission, between me and user,
> and somehow decode the transmission and use the variables to login other
> time or overtake the current session
Hi Richard Archer,
On Thu, 31 Oct 2002 12:24:15 -, you wrote about "RE: Capitalizing
names etc. part II - found a solution" something that looked like this:
>You should consider the fact that, even as surnames, names like
>Mackintosh and Mackenzie (and as someone else suggested here 'Macon')
Well, what you could do is write one function that gets all the
values that you need and fills the variables up with them, AND write a
bunch of functions that get one value at a time. Then depending on the
conditions or parameters/values needed or recieved and such, you can call
the fun
How can i find out how many files exist in a dir?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Use an array:
Note:
Only checked checkboxes are passed.
Access:
print $_REQUEST['foo'][0]; // the first one
print $_REQUEST['foo'][1]; // the second
You can use named indices too:
print $_REQUEST['foo']['bar'];
Mix and match, have fun.
Regards,
Philip
--
PHP Gen
Add square brackets to the end of the name of each check box, ie...
And on the page you submit the form too, you will be able to access this
as an array...
$_POST['searchStr'] or $_GET['searchStr'], depending on the method the
form was posted by.
ppf wrote:
Hi all:
I am having a problem in
hey
is there a way to get the URL header? the tags etc?
i couldn't find any function in the docs, but maybe i just don't know
where to look.
if there's a function that pulls in an entire page that;s fine too i
can work with that..
any help appreciated
TIA
Jule
Jule Slootbeek
[EMAIL PROTECTED]
Perhaps the table name 'desc' is reserved word for 'order by' so MySQL
cannot use it as table name-
So why don't you print out the mysql_error() using for example die-
like this:
$inquiry = mysql_query("select id,link,heading,desc from links where heading
like '%$entry%' or desc like '%$entry%' or
Yes,
Between user and server, everydata pass through DNS, routeur, etc...
So if you don't want someone (hackers or FBI of CIA) to decode your data,
use SSL server (https://) with certificate-
- Original Message -
From: "SED" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, Novem
Docs -> Function Reference -> Filesystem Functions -> fopen()
It was hidden.
Jule Slootbeek wrote:
hey
is there a way to get the URL header? the tags etc?
i couldn't find any function in the docs, but maybe i just don't know
where to look.
if there's a function that pulls in an entire page t
What you need to do with the input number is to do an ereg_replace() and
eliminate the commas from the string, then use the string variable where
needed. Then, when you want to display the variable, use the
number_format() function.
Hope this helps,
Hugh
- Original Message -
From: <[EMAIL
i thought fopen() was only for local files, didn't even bother looking,
but now i think about it..it makes perfect sence to open url's as well,
thanks a lot!
Jule
On Friday, Nov 1, 2002, at 17:42 US/Eastern, John Nichel wrote:
Docs -> Function Reference -> Filesystem Functions -> fopen()
It w
cope with readdir() or dir().
I always use one of these functions and I'm wondered if there are more
efficient solution to do it !
- Original Message -
From: "Shaun Thornburgh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 9:00 AM
Subject: [PHP] Number of fi
Thank you for the reply, what do you mean by "sniffing", do you mean
everbody can monitor our browsing?
-Original Message-
From: @ Edwin [mailto:copperwalls@;hotmail.com]
Sent: 1. nóvember 2002 21:47
To: SED
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Security - Maybe a silly question
Hell
I've got a regexp:
(EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt
My question is, will it match this:
EV01!2002-11-09!VR01!GR01.txt
And anything formatted like this: (EV02, and so forth).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
It might, you should test it to find out.
John Meyer wrote:
I've got a regexp:
(EV[0-9]{2})!([0-9]{4}-[0-9]{2}-[0-9]{2})!(GR[0-9]{2}).txt
My question is, will it match this:
EV01!2002-11-09!VR01!GR01.txt
And anything formatted like this: (EV02, and so forth).
--
PHP General Mailing L
I'm not very familiar to this stuff, but if I wanna use https:// do
don't I need a key from Verisign (or similar) to make it work? If so,
who control who is what on the internet?
Regards,
Sumarlidi E. Dadason
SED - Graphic Design
_
Tel: 896-0376, 461-5501
E-mail:
Hi...
My problem is that i can't store info in a mysql database... ex:
I want to store this info in my database: login/passwd and i have the php
code...
what i'm doing wrong? : |
thanks...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
$md = MD5($passwdtxt);
$sql="INSERT INTO users (login,passwd) VALUES (\"$logintxt\", \"$md\")";
mysql_query($sql) or die(mysql_error());
next time, show the error messages you got.
Also, ALWAYS USE mysql_error() when executing mysql_query() -- see above
=
"Mr
Hi need some help please
What is wrong with my code?
it is supposed to upload 2 files but instead gives me this error
Warning: Unable to open 'Array' for reading
The code
O Leme upload
Jornal O Leme
$sql="INSERT INTO `users` (login,passwd) VALUES ('$logintxt',
'password($passwdtxt)')" ;
mysql_db_query("mysite",$sql);
- Original Message -
From: "Mr. BuNgL3" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 10:32 AM
Subject: [PHP] Can't store info on a mysq
I bit you are doing something like this:
copy("$file", "file") ;
- Original Message -
From: "marcelo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 02, 2002 11:19 AM
Subject: [PHP] uping to plaese help
> Hi need some help please
>
> What is wrong with my code?
>
This is not meant to put down the php/xml combo. Just putting down my 2
cents from my experience
thus far, into the archive for anyone else looking for info.
I just started getting deep into parsing xml yesterday, and the dust has
just begun to settle.
Im parsing rss files versions 0.91 - 2.0 j
well, i got it to read a html file, but the problem is that it reads it
after it loads it, so it doesn't read the tags, and i'm looking for the
string in between and
is there a way using fopen() or something similar to read an html/php
file before it's loaded?
Jule
On Friday, Nov 1, 2002, a
hmm, figured it out...all of a sudden it did work:
here's the code, it loads a URL and returns the title...
dunno what it would be used for, but it aught we some more about php..
i'll probbly implement it on a link page ir something
Jule
function getTitle($url)
{
$file = @fopen($url, 'r');
if(
Can't you just call the contents of the page into a variable and extract
what you need with regular expressions?
Php / Html makes no difference its all text to fopen..
~
> is there a way using fopen() or something similar t
oops didn't catch two little bugs
Jule
function getTitle($url)
{
$file = @fopen($url, 'r');
if(!$file) {
$rline = "Error, contact webmaster";
} else {
while (!feof ($file)) {
$line = fgets($file);
if (substr_count(strtoupper("$line"), "") >= 1) {
$rline = strip_tags("$line");
Hello SED,
"SED" <[EMAIL PROTECTED]> wrote:
> Thank you for the reply, what do you mean by "sniffing", do you mean
> everbody can monitor our browsing?
I'm not really sure how I can answer your question but let me just put it
this way.
Everybody CAN monitor our browsing but:
1. That doesn't mean
"SED" <[EMAIL PROTECTED]> wrote:
> I'm not very familiar to this stuff, but if I wanna use https:// do
> don't I need a key from Verisign (or similar) to make it work?
Yes and no. If you're going to use it on a production server, yes.
If it's on a test server but you still want to be somehow "pro
Jule Slootbeek wrote:
> oops didn't catch two little bugs
>
> Jule
>
> function getTitle($url)
> {
> $file = @fopen($url, 'r');
>
> if(!$file) {
> $rline = "Error, contact webmaster";
> } else {
> while (!feof ($file)) {
> $line = fgets($file);
> if (substr_count(strtoupper("$line"), "") >= 1)
1 - 100 of 115 matches
Mail list logo