I want to take string between tags in put it
in variable
How can I do that ?
Hey, thanks for your time. You are busy, so I'll be brief
A.) If I were to use it, for a gd or mysql library, not oftenly, certainly
not more than 100 requests per day, would it affect the server negatively?
B.) Is there a delay in using it as oppossed to compiling them during
installation (or
Nothing noted in the error log. The lines I have tried using are the EXACT
ones stated in the install.txt file. I basically copied them from the
install doc and pasted it into the httpd.conf file.
Mark
"Brian Clark" <[EMAIL PROTECTED]> wrote in message
20020105034518.GH17616@ganymede">news:200
Thanks for the code snippet.
I see that everybody defaults to a season. I was doing a && comparison
between two seasons, so that's why it messed up when it into the new year.
Thanks to Bogdan and Tom for the helpers. I can go debug my code. And make
it less complicated. ^_^;;;
(It's was a lot
Hi
This should work:
= $winter):
echo "Winter";
elseif($now >= $autumn):
echo "Autumn";
elseif($now >= $summer):
echo "Summer";
else:
echo "Spring";
endif;
?>
BTW There may be a bug in mktime() (php4) if you use 08 or 09 in the
month part...on my system this
At 10:22 PM 1/5/2002 -0600, Michael Sims wrote:
>function insertpath($string) {
>
> return preg_replace("/( href=\")(.*\">.*<\/a>)/i","$1"._CONSTANT."$2",$string);
>
>}
>?>
Forgot to mention that the "i" at the end of the regex means to make the
match case-insensitive...
--
PHP Genera
At 10:16 PM 1/5/2002 -0500, Gerard Samuel wrote:
>Need some help with this one. Dont know where to begin. I have content
>in a string and a constant that changes depending on if yourre in the root
>or in a directory.
>The purpose of the constant is to provide dynamic links.
>The string will ha
Torkil Johnsen wrote:
>
> Yeah this is a BIT of topic...
>
> I have this code:
>header("Content-type: image/svg+xml");
> print('');
> ?>
>
>
>
> "http://www.w3.org/TR/2000/03/WD-SVG-2303/DTD/svg-2303-stylable.dtd";
> >
>
>
> Using styles
>
>
Yeah this is a BIT of topic...
I have this code:
');
?>
http://www.w3.org/TR/2000/03/WD-SVG-2303/DTD/svg-2303-stylable.dtd";
>
Using styles
See for yourself at:
http://www.torkiljohnsen.com/xperiment/index.psvg
This produces an error message (which you ca
php-general Digest 6 Jan 2002 03:16:54 - Issue 1094
Topics (messages 79557 through 79591):
Re: adding users on *nix
79557 by: Bogdan Stancescu
Re: check browser communication
79558 by: Bogdan Stancescu
79559 by: Daniel Urstöger
Plz help w/ php/MySQL
79560 b
Need some help with this one. Dont know where to begin. I have content
in a string and a constant that changes depending on if yourre in the
root or in a directory.
The purpose of the constant is to provide dynamic links.
The string will have href links like Index
I want to figure out a way to
I'll have to use and if/elseif construct, because I don't believe a switch()
constructs cases can take expressions, can it?
- Original Message -
From: "Bogdan Stancescu" <[EMAIL PROTECTED]>
To: "webapprentice" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 1
Hi,
As the data grows I like to add the functionality that people see 30 lines of the
result on one page. Also I like to give users the ability to sort per columns...
I know this is done pretty much everwhere. What's the best or easiest way of doing it?
Mehmet Erisen
http://www.erise
it may be better:
array_walk($this->array, array(&$this, 'func1');
"Attila Strauss" <[EMAIL PROTECTED]> wrote in message
001d01c195db$67647da0$[EMAIL PROTECTED]">news:001d01c195db$67647da0$[EMAIL PROTECTED]...
| hi
|
| $this->func1();
|
|
| best regards
| attila
|
|
| >
| >
Hi,
how can i make data submited throug form, Quoted Printable Encode to 76
characters.
thanks
--
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 PROTE
On Friday 04 January 2002 22:20, Scott wrote:
> Has anyone experimented with controlling an mp3 player like mpg123 from
> php? I want to build a radio automation system using a web interface, but
> not sure how I want to handle the actual playing of music.
>
> Basically I would have a mysql datab
Hi,
I would like to be able to check html documents against a "template html
document" using PHP.
In the example below I would like to check if the document starts with a
+ string + , and is followed by a + "version" + ... etc.
etc.
Should/could I use XML?
Any ideas would be greatly appreci
5 hosting plans, apache 1.3 - debian 2.22r3. lets also say i have the same 5
plans, except on a windows 2000 adv server. i want to limit access levels
and functions my users are allowed to use. This is preliminary -- I am
somewhat familiar with how shell hosting works, and I believe my answer is
t
So, I add 1 to the number and move on.
Thanks,
Hugh
- Original Message -
From: Jim Winstead <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 3:24 PM
Subject: [PHP] Re: Can't get accurate day of year
> Hugh Danaher <[EMAIL PROTECTED]> wrote:
> > Hello All and
Hugh Danaher <[EMAIL PROTECTED]> wrote:
> Hello All and Happy New Year.
> I have a simple routine to get the year, date and the day of year.
> Year and date come out correctly but the day of year is one less than
> the date. It being January, it's easy to see the error. The only
> thing I can f
Hi, I've recently upgraded my server to php 4.1.1 and
turned on the output compression under php.ini.
For some browsers (IE 5/5.5 so far) it made imp stop
working.
Does anybody know if this is a "limitation" of php,
imp or explorer ?
Anyone has tried that with the latest imp/horde ?
thanks.
__
Hi,
So far the best way to troubleshoot mysql+php for me has been to add an "or die" after
the sql exec.
$crdate = date("Y-m-d");
$result = mysql_query("SELECT * FROM sites WHERE creation_date = '$crdate'
AND status = 'T'") or die ('CAN NOT EXEC SQL');
Or you can do
$sql = "SELECT * FROM sit
Hello All and Happy New Year.
I have a simple routine to get the year, date and the day of year. Year and date come
out correctly but the day of year is one less than the date. It being January, it's
easy to see the error. The only thing I can figure, is that the date(z) function gets
a fra
- Original Message -
From: "Bas van Rooijen" <[EMAIL PROTECTED]>
To: "Adam Baratz" <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 4:39 PM
Subject: Re: [PHP] MySQL error... but it works!!??
>
> maybe try:
>
> if (!$result)
> {
>echo(mysql_error());
> }
>
> bvr.
> On Sat, 5 Jan
Does anyone know an opensource XML based content management system? Written
in PHP?
Warm regards,
Emile Bosch
--
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-ma
Writing it on the fly would be kinda redundant.. I think.. :(
from mysql data to xml to data.. .. would slow things down a bit i
think.. :(
"Brian Clark" <[EMAIL PROTECTED]> wrote in message
20020105030550.GD17616@ganymede">news:20020105030550.GD17616@ganymede...
> * Emile Bosch ([EMAIL PROTECTED
Hi All,
I am making a webmail, this webmail can send with just one attach, but I
need that that my webmail can send mail with many attach.
Now my function have the follwing code line:
if ($attach != "none")
{
$file = fopen($attach, "r");
$contents = frea
> Does anyone have any idea why this is giving me a "Warning: Supplied
> argument is not a valid MySQL result resource in..." error?
You'll have to give more code, which line you get that error from, etc., to
give us a better idea why it's "not working."
However, a quick tip:
> $crdate = date("
Does anyone have any idea why this is giving me a "Warning: Supplied
argument is not a valid MySQL result resource in..." error?
The funny thing is that apart from that error message it works perfectly!!
---
$crdate = date("Y-m-d");
$result = mysql_query("SELECT * FROM s
Hi,
I can't get DOMXML to work. The line
$doc = xmldoc($xml); // (line 26)
(where $xml is a string containing a valid xml document) raises
a fatal error:
"Fatal error: Call to undefined function: xmldoc() in
d:\...\class.xmltemplate.php on line 26"
I'm running PHP 4.1.1 as an Apache module
Hi All
I have a php that access to database and show the values in the browser, But
I need add hte option of print on printer, but that only print the table
with values.
Somebody can help me?
Thanks in Advanced,
Regards,
_
Se
Hi all,
I am making a small webmail, But I need that this webmail have attach, I can
to put one attach athis mail, but I need many attach in the webmail, I made
a bucle for many attach, but now I can't to manipulate this attach for that
the user send mail with many attach.
Some body can help
Phillip Oertel wrote:
> line 29: mysql_query('$SQL')
> will send the following query to your db:
>
> $SQL
--> it sends exactly this string instead of the content of
your variable $SQL, which contains the real query.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
line 29: mysql_query('$SQL')
will send the following query to your db:
$SQL
i know of no db that understands that ;-)
everything in single quotes is NOT parsed by php. here, use
double quotes, or better, none at all.
hope it works now,
phil.
--
PHP General Mailing List (http://www.php.net/
You could do a case() or if/elseif, check if it's spring, summer or autumn and leave
the code for winter as default/else.
Bogdan
webapprentice wrote:
> Hi,
> Just need a sounding board to help me think this through.
>
> I want to check the current date to determine what "season" it is and disp
I don't know if this is actually it, but the line
$num_vals[$i] = mysql_fetch_array($result);
seems strange to me - doesn't mysql_fetch_array return an array? You should try
list($num_vals[$i]) = mysql_fetch_array($result);
and see if you get any improvements...
Daniel Alsén wrote:
> I have work
I thought I would try out the ability to GZip my PHP pages, so that they would be sent
quicker and use less of my bandwidth :)
Anyway I have found the following tutorials and information on this:
http://www.zend.com/zend/art/buffering.php
http://www.php.net/manual/en/function.ob-gzhandler.php
ht
hi nelson,
i'm not sure if i get you right, but you could store the
'base' of your generated SQL query in a session variable,
that way you don't have to drag the $kw array along.
// before any html output (sends http headers)
session_start();
// build query from keywords
--> results in string
Can anyone help me with this...
http://localhost/infekt/packages/imanager/index2.php?sid=$sid";);
}
else
{
header("Location:
http://localhost/infekt/packages/imanager/index.php";);
}
}
function login($user_name, $password)
{
$db = "imanag
Anthony Rodriguez wrote:
> The following php script successfully e-mails both messages but it doesn't
> update in the table "scr_149" the column "notified". Why?
>
> $connection=mysql_connect("localhost","wagner","123") or die ("No
> connection!");
>
> $db=mysql_select_db("sbwresearch_com",$con
I am trying to ugrade php 4.0.3pl1 to PHP4.1.1...I am VERY new at this
compiling stuff, but I though I had pretty good instructions to go by.
My configure statement:
./configure --prefix=/usr --with-mysql --with-apxs=/usr/sbin/apxs --with-gd
--with-gettext=/usr --enable-safe-mode --with-config-f
The following php script successfully e-mails both messages but it doesn't
update in the table "scr_149" the column "notified". Why?
\n");
$result_2=mysql_query($qry_2,$connection) or die ("No query # 2!");
};
mysql_free_result($result_1);
$qry_3="select * from scr_149 where q05a=\"0\" && not
"Bogdan Stancescu" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> What do you mean exactly? You want to be able to monitor (as in "see") the
> data being transacted by your browser with the server or is it something
> else you're after?
>
> Bogdan
>
Yea
What do you mean exactly? You want to be able to monitor (as in "see") the
data being transacted by your browser with the server or is it something
else you're after?
Bogdan
"Daniel Urstöger" wrote:
> Hiya !
>
> A little offtopic this question, but really important ..
> I need to check all the
I'm not sure how you'd go about doing that, but be warned that you're walking
on very thin ice (security-wise) to allow such an action. You must be very
extra super careful not to get hacked!
Not only that you'll be potentially allowing hackers to create users on your
machine, but at some time th
php-general Digest 5 Jan 2002 14:18:07 - Issue 1093
Topics (messages 79513 through 79556):
Paging through MySQL results in PHP
79513 by: Nelson Goforth
Re: configuring sever to send mail (Win2k)
79514 by: CJ
79534 by: CJ
79537 by: Brian Clark
Re: How to cle
Hello Everyone.
I just tried to upgrade my Apache 1.3.22 web server to us PHP 4.1.1. I was
running PHP 4.0.6 without problems for months, but wanted to take advantage
of the bug fixes and new features. The compile seemed to go OK, and the new
httpd runs fine. However, I've encountered a strang
I have worked this over in my head over the holidays and still haven´t got a
solution. Can anyone help?
I have a MySql table populated with numerical values from 0 to 10 in five
different fields. I need a function that counts all occurances of each
value, ie: 1: 12, 2: 3, 4: 74 etc...
I have wor
array_count_values() returns an array using the values of the input array as
keys and their frequency in input as values
2, "hello"=>2,
"world"=>1)
while ($b = each($a)) echo $b[0]."=>".$b[1]." ";
?>
--
Best regards,
George Nicolae
IT Manager
___
X-Playin - Professional Web Desi
Hi!
How do i echo the return values of array_count_values?
Regards
# Daniel Alsén| www.mindbash.com #
# [EMAIL PROTECTED] | +46 704 86 14 92 #
# ICQ: 63006462 | +46 8 694 82 22 #
# PGP: http://www.mindbash.com/pgp/ #
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e
Hiya !
A little offtopic this question, but really important ..
I need to check all the communication between my client PC and a server
in the world wide web. Inlcuding all the header info and so on ..
Would be a great help for developeing my script ...
Could anybody of you suggest me something
hi
$this->func1();
best regards
attila
>
>
> Hi All,
> I want to use "array_walk" function inside a class method. But the
> problem is i want the second argument to array_walk ( function name )
> be a another function of the same class. when i gave like that its telling
>
> Error : function n
Hi Evrbdy
Is there any HTML library or php class to print all the tags
of HTML in a function call.
S.Murali Krishna
[EMAIL PROTECTED]
=
We grow slow trying to be great
Hi All,
I want to use "array_walk" function inside a class method. But the
problem is i want the second argument to array_walk ( function name )
be a another function of the same class. when i gave like that its telling
Error : function not exist.
class some()
{
function func
Hi Brian
I would need to email it as an attachment.
Thanks
Mohamed
- Original Message -
From: Brian Clark <[EMAIL PROTECTED]>
To: PHP is not a drug. <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 8:23 AM
Subject: Re: [PHP] php form
> * M.E. Suliman ([EMAIL PROTECTED]) [Jan 05.
55 matches
Mail list logo