clothesman futile antiquarian bar wholesale
sum acquire saturnalia prefecture section
astute cathedral intercom behavioral carlyle
James Williams wrote:
>>No
>>
>>You don't declare variables in PHP. You just start using them.
>>
>>Perhaps you mean assign? Since your example of
>>
>> var = variableName;
>>
>>is actually an assignment in Javascript.
>>
>>In PHP you simply do:
>>
>> $one_var = $another_var;
>>
>>-Rasmus
>
>
I just found a place here:
http://us2.php.net/manual/en/language.oop.php
That has this example:
/* This is how it should be done. */
class Cart {
var $todays_date;
var $name;
var $owner;
var $items = array("VCR", "TV");
function Cart() {
$this->todays_date = date("Y-m-d")
Oops!! What I meant was:
JavaScript:
var varName;
PHP:
var $varName;
I can't believe I did that (I have been writing JavaScript for a few years,
and know better -I gotta get more sleep).
So, are you saying that it is absolutely "PHP-illegal" to do:
var $varName;
in PHP??? W
hi,
On 5/5/05, The Doctor <[EMAIL PROTECTED]> wrote:
> This is probably easy, but how does
> one access a database, mysql or oracle or postgresql,
> and
> present the data in a tabular format?
>
> --
> Member - Liberal International
> This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
> God Qu
> No
>
> You don't declare variables in PHP. You just start using them.
>
> Perhaps you mean assign? Since your example of
>
> var = variableName;
>
> is actually an assignment in Javascript.
>
> In PHP you simply do:
>
> $one_var = $another_var;
>
> -Rasmus
You are however, when deali
On 05/05/2005, at 1:47 AM, Kristen G. Thorson wrote:
Dan,
I have done this before, but it was only a proof-of concept excercise
for me, so my procedure may not work for you. My test was against an
Amazon web service and generating a PDF from the XML returned to me.
This method used Apache's F
thx,
actually, i want to pass session of 1st server to 2nd server and vice
versa i.e. to pass session of 2nd server to 1st server and want to use
them in both the servers.
with best wishes
balwant
On Wed, 2005-05-04 at 22:04, Rory Browne wrote:
> Elaborate.
>
> Do you want to pass the sesson f
I know I'm missing something, but I can't seem to find it or figure it
out. I've done the google search, and I've done a quick scan of the
list archives, but I can't seem to find the right way to remove
control-M from a form submission page with textarea fields.
I have a series of "textarea" fiel
Hi
On 5/5/05, Jon M. <[EMAIL PROTECTED]> wrote:
> I know in JavaScript, that you declare vars like so:
>
> var = variableName;
>
> So I'm assuming that in PHP you do it like this:
>
> var = $variableName;
I think you can do like this inside a class
var $variableName;
> But there doesn't seem
Jon M. wrote:
> I know in JavaScript, that you declare vars like so:
>
> var = variableName;
>
> So I'm assuming that in PHP you do it like this:
>
> var = $variableName;
>
> But there doesn't seem to be a single shred of documentation on PHP.net (or
> in ANY book) that covers this. All they s
i think u can use nmap -O [hostname]
On 5/5/05, Mark Cain <[EMAIL PROTECTED]> wrote:
> I agree that the best way would be to parse the http header response.
> However, If you want to check it out quickly and only do a couple of them,
> do this:
>
> http://www.whois.sc/google.com
>
> or
>
> http
On 05/05/2005, at 8:28 AM, Dan Rossi wrote:
For any interested parties, there is a tool called html2fo which will
convert html to a formatted object file which can then be sent to FOP.
I also found another example where any xhtml file can be transformed
with a global xsl stylesheet to transform
Thanks these pointers have helped alot.
"Jared Sherman" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>I have an xml document storing some data I need. What I want to do is this:
> 1. Scan to the end of the file.
> 2. Find the closing tag.
> 3. Insert a new entry in before the clo
I am using PHP version 4.3.4.
I'm creating an authorization module that uses a users object, that includes
the username, usertype, etc. I want to store this in a session variable
(i.e. $_SESSION['objects']['auth'] = new Authorization();) so that I can
keep the information from page to page. Ho
I know it's not necessary, but I still want to know how.
I know in JavaScript, that you declare vars like so:
var = variableName;
So I'm assuming that in PHP you do it like this:
var = $variableName;
But there doesn't seem to be a single shred of documentation on PHP.net (or
in ANY book) tha
This is probably easy, but how does
one access a database, mysql or oracle or postgresql,
and
present the data in a tabular format?
--
Member - Liberal International
This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED]
God Queen and country! Beware Anti-Christ rising!
UK as 5 May 2005 approa
I know in JavaScript, that you declare vars like so:
var = variableName;
So I'm assuming that in PHP you do it like this:
var = $variableName;
But there doesn't seem to be a single shred of documentation on PHP.net (or
in ANY book) that covers this. All they say is that it's good pract
I don't know what to tell you, that code should work (it does work,
exactly as you gave it in my PHP 5).
Chris
Fred Rathke wrote:
Hello,
how can a function get a pointer to an array? This does not work. I
use PHP4.
$t = array("test" => "unchanged");
echo "testarray unchanged:\"".$t['test']."\""
Here's the scenario...
I am building a site in which users will be able to create and then later
edit personal information. When they edit their information, I need to keep
track of what was changed so that I can inform via email a person to
approve the changes. Here's the flow I'm considering...
On 05/05/2005, at 7:14 AM, Kristen G. Thorson wrote:
Dan Rossi wrote:
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote:
especially since this wasn't to be our final approach. I'd be
interested if you find out more information on the subject.
What did you decide on ?
LOL. That part got beyo
Hello,
how can a function get a pointer to an array? This does not work. I use
PHP4.
$t = array("test" => "unchanged");
echo "testarray unchanged:\"".$t['test']."\"";
changearray($t);
echo "testarray hopefully changed:\"".$t['test']."\"";
function changearray(&$myarray) {
$myarray['test'] = "chan
i partly solved the problem using this regex:
$tutorial['pagetext'] =
preg_replace_callback('#\[img\]\s*(\d+)\s*\[/img\]#siU',
'image_code_callback', $content['pagetext']);
except instead of using [img]foo[/img] i would like to do just [img=foo]
any help?
Sebastian wrote:
> v
Dan Rossi wrote:
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote:
especially since this wasn't to be our final approach. I'd be
interested if you find out more information on the subject.
What did you decide on ?
LOL. That part got beyond me. I don't understand how all the PDF forms
stu
Pretty much the only time i use it is form processing... so i don't get a
bunch of errors when someone doesn't fill out a (non-required) field..
Also i use it to prefill form data is i have a session running, ie.
" />
like others have mentioned... if there is no value, the form is blank,
otherw
On 05/05/2005, at 5:57 AM, Kristen G. Thorson wrote:
especially since this wasn't to be our final approach. I'd be
interested if you find out more information on the subject.
What did you decide on ?
On using passthru: I do not think FOP has the option to passthru the
PDF output from the comma
[EMAIL PROTECTED] wrote:
Bonjour,
J'utilise php en profondeur depuis peu.
Je viens d'utiliser les fonctions sur les fichier tel que is_file(), is_dir() ou
encore file_exists().
J'obtiens des résultat qui ne correspondent pas à la documentation.
Apparement la longueur de chaîne influe sur le résulta
I agree that the best way would be to parse the http header response.
However, If you want to check it out quickly and only do a couple of them,
do this:
http://www.whois.sc/google.com
or
http://www.whois.sc/cnn.com
One of the surprising features of this whois site is that it will also tell
you
Eugene Voznesensky wrote:
I'm going email user a link to protected from public
access down-loadable file. User goes with the link [to
my php script]. This php script validates a
pre-defined parameter from link to allow or deny
user's access to the file.
Thank
Eu.
Glad you shared that with us.
--
Dan,
I'm glad this may work for you. As far as the speed: it's of course
difficult to judge, and I certainly didn't test it under any real load,
but I had no problems creating and serving a several page document with
graphics in it. We were testing the concept of something like this for
a sys
very new to regex
i have a string with "bbcode" such as [img=XXX]
(XXX being numeric)
how do i search the string for the value of the bbcode and compare it to
another variable?
so i can take XXX and compare it to $image dynamically.
thanks for any help.
--
PHP General Mailing List (http://www.
Greg Donald wrote:
On 5/3/05, GamblerZG <[EMAIL PROTECTED]> wrote:
I would like to know, whether using @ is a good practice.
I try not to use it much, but when I do I back it up with checking to
see if an error really occured. I use it for file handles, database
handles, stuff that I really expec
On 5/4/2005 5:10:17 PM, Jay Blanchard ([EMAIL PROTECTED])
wrote:
> [snip]
>
> I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to
>
> join this to share the PHP General.
>
> [/snip]
>
>
>
> Your wish is granted. http://www.php.net/mailinglists
>
Hehehehe...
God, my name is Ryan..
Hello Eugene,
Wednesday, May 4, 2005, 6:10:17 PM, you wrote:
EV> I'm going email user a link to protected from public access
EV> down-loadable file. User goes with the link [to my php script].
EV> This php script validates a pre-defined parameter from link to
EV> allow or deny user's access to th
[EMAIL PROTECTED] wrote:
I'd make a script that went through the httpd.conf file with DOM and
pulled out all the virtual hosts. Either that or looked at the home
directory listings for each site. If this is what you were getting at
(seeing as you mentioned root access and what-not), then read the
I'm going email user a link to protected from public
access down-loadable file. User goes with the link [to
my php script]. This php script validates a
pre-defined parameter from link to allow or deny
user's access to the file.
Thank
Eu.
--
PHP General Mailing List (http://www.php.net/)
To uns
On 5/3/05, GamblerZG <[EMAIL PROTECTED]> wrote:
> I would like to know, whether using @ is a good practice.
I try not to use it much, but when I do I back it up with checking to
see if an error really occured. I use it for file handles, database
handles, stuff that I really expect to break someti
Elaborate.
Do you want to pass the sesson from server_1 to server_2, and use the
session on server_2 instead of server_1, or do you want to use the
session on both servers at the same time, or switch frequently between
both machines?
On 04 May 2005 18:24:07 +0530, Balwant Singh <[EMAIL PROTECTED]
PHP5:
http://php.net/manual/en/ref.dom.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi guys,
solved the problem. it was the register_globals setting in the php.ini
file.
made a .htacess file and set it to off; works 100%
also made all redirects like this:
session_write_close();
header("Location: buddyList.php");
exit();
note the
> But other PHP is still running, right? Dude, it is either a specific
>
> problem with the ad code itself, the database it is using, something.
>
> Have you even checked a log? Is the disk full? Basic troubleshooting -
>
> what have you done? Help us to help you.
Hey,
Sorry, didnt mean to sound
hi guys,
solved the problem. it was the register_globals setting in the php.ini
file.
made a .htacess file and set it to off; works 100%
also made all redirects like this:
session_write_close();
header("Location: buddyList.php");
exit();
note the
Try reading the PHP FAQ and looking for the answer about a generic form
response using $_POST.
On Mon, May 2, 2005 9:09 pm, Lisa A said:
> Does anyone know of a good easy php script or Form that we can use with
> Front Page.
> We need a form to get results, that actually sends the results in a fo
Borrowed with great reverence from http://ca3.php.net/function.mail:
$regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)[EMAIL PROTECTED](\.[a-z0-9-]{2,})+$';
if (eregi($regex, $email))
return true;
else
return false;
jason sweeney
jason.designshift.com
JM wrote:
Does anyone have a nice email address synt
I would like to know, whether using @ is a good practice. For example, I
have an array of unknown length $array.
Is it all right write something like this:
@list($first, $second) = $array;
or is it better to do length check?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Wednesday 04 May 2005 15:54, Balwant Singh wrote:
> hi to all
>
> i want to pass session variables from one websever to another
> webserver. may please help.
Solution 1: Use a custom session handler.
Solution 2: Disable cookies when using sessions (use GET to pass the session
ID) and use a s
=
Please feel free to add more points and send to the list.
20050322jb - Note the new location of PHP Editors list.
=
1. If you have any queries/problems about PHP try
http://www.php.ne
[snip]
I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to
join this to share the PHP General.
[/snip]
Your wish is granted. http://www.php.net/mailinglists
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
An ad software we were running suddenly stopped working;
eg:
it stopped serving ads
but the control panels were still working perfectly and the site
didnt go down.
It was serving around 10,000-30,000 ads per day when it konked out,
its not using persistant connectionscan anybody take a
Computer Programmer wrote:
How do I use that to find out the server type of yahoo.com or google.com
or cnn.com, etc.?
Will you look at that...there's some stuff about this on Google. Who
would have thunk it?
http://www.google.com/search?q=php+remote+server+information
--
John C. Nichel
ÜberGee
Ang Pinoy wrote:
Such as Apache, IIS, GWS, etc.
"Server" header in any http response from the server:
$ telnet servername 80
HEAD / HTTP/1.0
200 OK
Connection: close
Date: Wed, 04 May 2005 15:00:55 GMT
Accept-Ranges: bytes
ETag: "fa878-22dd-422b6d78"
Server: Apache/1.3.27
--
PHP General Mailin
On Tuesday 03 May 2005 21:43, Mike wrote:
> I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB
downloads or uploads :-)
check:
upload_max_filesize
post_max_size
memory_limit
ini variables.
>
> Is this a setting I missed somewhere?
>
>
> +
Thanks for the info, but do I create the form in front page then? Where
does this script go? Do I save the php you sent as a results page?
thanks,
Lisa A
"Jason Barnett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Lisa A wrote:
>> Does anyone know of a good easy php script or
Phil Ewington - 43 Plc wrote:
Hi All,
I am trying to replicate a ColdFusion custom tag I wrote for transforming an
XML doc with XSLT and having major problems. When I use xslt_process() I get
the following error:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token
* Angelo Zanetti <[EMAIL PROTECTED]>:
> We have developed a site on a server now the client has moved the site
> to another server. Both servers run apache. However some of the Session
> variables are losing their values or their values are getting changed.
>
> We have a number of header("location:
Venkatasatyanarayana Maddi wrote:
Dear Team,
I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this to share the PHP General.
Good work, we can use more good soldiers like you.
Thank u.
Yahoo! In
[snip]
Why?
Ang sabi sa akin ni Jay Blanchard noong 09:33 PM 5/4/2005...
>Ah, now we get to the real question...and the answer is that you don't.
[/snip]
You can get information when someone comes to your site in the form of
the referrer. PHP does not AFAIK provide a mechanism that you can use t
Why?
Ang sabi sa akin ni Jay Blanchard noong 09:33 PM 5/4/2005...
Ah, now we get to the real question...and the answer is that you don't.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
We have developed a site on a server now the client has moved the site
to another server. Both servers run apache. However some of the Session
variables are losing their values or their values are getting changed.
We have a number of header("location: xxx.php");
and they have the exit();
* Tomás Rodriguez Orta <[EMAIL PROTECTED]>:
> I need a help for work with the pear packet, in special with the packet
> pager.php, because I need do an paging in my web but I don't know How does
> work pager.php, please, help me!
The Pager package comes with some examples, including a sample w
Dear Team,
I M.V.Satyanarayana Reddy, working as a PHP Programmer requesting to join this
to share the PHP General.
Thank u.
Yahoo! India Matrimony: Find your life partneronline.
Hi,
An ad software we were running suddenly stopped working;
eg:
it stopped serving ads
but the control panels were still working perfectly and the site
didnt go down.
It was serving around 10,000-30,000 ads per day when it konked out,
its not using persistant connectionscan anybody take a gue
[snip]
How do I use that to find out the server type of yahoo.com or google.com
or
cnn.com, etc.?
Ang sabi sa akin ni Jay Blanchard noong 09:14 PM 5/4/2005...
>Check here
>http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.
e
>nvironment
[/snip]
Ah, now we get to the real que
pete M wrote:
not a php expert but have filed this bug report re validating
is_numeric('3e0');
http://bugs.php.net/bug.php?id=32943
Yeah I read that report... and as it says you're using Euler's notation.
Now tried
function isnumeric($n) {
if (ereg("^[0-9]{1,50}.?[0-9]{0,50}$", $n)) {
if (
Anasta wrote:
Can anyone help with a statement, ive tried but it never works.
I need to show a value if it is set to a specific value ie:
At the moment If a user is logs in a record is updated from 'away' to
'online'---so i want an echo statement to show a value from another table if
they are set
How do I use that to find out the server type of yahoo.com or google.com or
cnn.com, etc.?
Ang sabi sa akin ni Jay Blanchard noong 09:14 PM 5/4/2005...
Check here
http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.e
nvironment
--
PHP General Mailing List (http://www.php.net/)
Hi people.
I need a help for work with the pear packet, in special with the packet
pager.php, because I need do an paging in my web but I don't know How does
work pager.php, please, help me!
Best regards TOMAS
-
Este
Hi,
Has anyone got the DOM extension to load compressed XML transparently?
libxml2 apparently has this feature, but it appears not present in PHP
build.
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
Such as Apache, IIS, GWS, etc.
Noong 08:50 PM 5/4/2005, Ang sabi ni Jay Blanchard...
>Do you mean OS, or manufacturer?
[/snip]
Check here
http://us4.php.net/manual/en/reserved.variables.php#reserved.variables.e
nvironment
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I asked a question at Apache.org mailing list about how to hide my server
type; and now I'm asking here how can I know someone's server type using PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Such as Apache, IIS, GWS, etc.
Noong 08:50 PM 5/4/2005, Ang sabi ni Jay Blanchard...
Do you mean OS, or manufacturer?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Does this help?
Select
*
From
Projects
Order By
Relate,Title
If not, please provide more details on the output you want to see and
the structure of your table
Mark
-Original Message-
From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED]
Sent: 02 May 2005 21:49
To: php-general@lists.php
Hi,
Has anyone got the DOM extension to load compressed XML transparently?
libxml2 apparently has this feature, but it appears not present in PHP.
Jared
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All,
I am trying to replicate a ColdFusion custom tag I wrote for transforming an
XML doc with XSLT and having major problems. When I use xslt_process() I get
the following error:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token) in
The XML & XSL files al
The following code was taken directly from
www.php.net/date
$dob_month || ($dob_month==$cur_month &&
$cur_day>=$dob_day) )
return $cur_year-$dob_year;
else
return $cur_year-$dob_year-1;
}
?>
Mark Cain`
- Original Message -
From: "Ryan A" <[EMAIL PROTECTE
I upgraded to PHP 5.0.4 and now all my downloads cut off at 1.9 MB
Is this a setting I missed somewhere?
++
Mike Yrabedra
[EMAIL PROTECTED]
Your Mac Intelligence Resource
++
W: http://www.macagent.com/
Lisa A wrote:
Does anyone know of a good easy php script or Form that we can use with
Front Page.
We need a form to get results, that actually sends the results in a format
that is easy to read.
Not all run together with no spaces, etc. like the Front Page forms.
Thanks,
Lisa A
/** File Action.
> -Original Message-
> From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 03, 2005 6:24 PM
> (The person who posted that should have written it as PHP to avoid
> confusion: preg_match('/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/', $string);)
Also, the RegEx is incorrect s
* Jm <[EMAIL PROTECTED]>:
> Does anyone have a nice email address syntax checking script they'd
> like to share? Regular expression-based anyone? TIA.
I use the following regex:
preg_match('/[EMAIL PROTECTED]@([-a-z0-9]+\.)+[a-z]{2,}$/i', $email)
I believe I got it out of the PHP Cookbook, b
hi to all
i want to pass session variables from one websever to another
webserver. may please help.
with best wishes
balwant
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I asked a question at Apache.org mailing list about how to hide my
server
type; and now I'm asking here how can I know someone's server type using
PHP?
[/snip]
Do you mean OS, or manufacturer?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Does anyone have a nice email address syntax checking script they'd
like to share? Regular expression-based anyone? TIA.
--
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi there, I am looking at integrating XSL:FO and PHP to convert html
templated data into pdf's using xml and xsl. I was wondering if anyone
has had success with this ? I have seen the pear package which does
this but requires the experimental java extension. Let me know, it
looks easy executing
> I want a script that can display a list of all the websites currently
> hosted on my server.. (i have root access to the server)
>
> Say I have a page sitesonmyserver.php..it shud show a list of all the
> websites hosted on my server..eg:
> abc.com
> xyz.om
>
> And any additional info if possible
> I have an xml document storing some data I need. What I want to do is this:
> 1. Scan to the end of the file.
> 2. Find the closing tag.
> 3. Insert a new entry in before the closing tag.
There are specific classes and functions in the PHP core that can help
you do just this.
> I've tried:
> 1.
Bonjour,
J'utilise php en profondeur depuis peu.
Je viens d'utiliser les fonctions sur les fichier tel que is_file(), is_dir() ou
encore file_exists().
J'obtiens des résultat qui ne correspondent pas à la documentation.
Apparement la longueur de chaîne influe sur le résultat obtenu.
En effet voic
This should get you started:
$old_data = file_get_contents('./test.txt');
$my_data = "foo bar";
$pattern = '/(.*)(<\/.*>)$/i';
$replacement = '$1' . $my_data . '$2';
$new_data = preg_replace($pattern, $replacement, $old_data);
echo $new_data;
or a little more succinctly
$my_data = "foo bar";
$n
I asked a question at Apache.org mailing list about how to hide my server
type; and now I'm asking here how can I know someone's server type using PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
There are a lot of open source project management packages. .Project,
netoffice and others. Does anyone have a recommendation on the best overall
project management software for tracking billable software projects?
Thanks,
Neal
GamblerZG wrote:
I would like to know, whether using @ is a good practice. For example, I
have an array of unknown length $array.
Is it all right write something like this:
@list($first, $second) = $array;
or is it better to do length check?
Using @ is good practice in any case where you simply *
On Tuesday 03 May 2005 22:41, Ryan A wrote:
> Hey,
> Anybody have an age function where i can pass a date object and get back an
> int?
>
> eg:
> $years_old=get_years("1979-12-07");
Use time and mktime.
$birthday = ""1979-12-07";
$birdthday_time = mktime(0, 0, 0, substr($birthday, 5, 2), substr
Hi Guys,
I am trying to replicate a ColdFusion custom tag I wrote for transforming an
XML doc with XSLT and having major problems. When I use xslt_process() I get
the following error:
Warning: Sablotron error on line 1: XML parser error 4: not well-formed
(invalid token) in
The XML & XSL files a
set a $_SESSION['var'] at the end of the first post and check for this
the second time around
pete
Fredrik Arild Takle wrote:
Hi,
what is the easiest way to check if a person i registered twice in a
mysql-table. Lets assume that I only check if the last name is in the table
more than once. This
-Original Message-
From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]
Sent: 03 May 2005 17:49
To: php-general@lists.php.net
Subject: [PHP] Check for doubleposts
Hi,
what is the easiest way to check if a person i registered twice in a
mysql-table. Lets assume that I only check if the l
This should get you started:
$old_data = file_get_contents('./test.txt');
$my_data = "foo bar";
$pattern = '/(.*)(<\/.*>)$/i';
$replacement = '$1' . $my_data . '$2';
$new_data = preg_replace($pattern, $replacement, $old_data);
echo $new_data;
or a little more succinctly
$my_data = "foo bar";
$n
Hi,
I am using php 4.3.11 on a RedHat Linux server running Apache. I have a
requirement where I need to take a flat file containing formatted data and
produce an Access 97 MDB file.
Does anyone know of a class or library that will enable me to do this?
Thanks,
Don
On Sun, May 1, 2005 7:43 pm, Thomas Bonham said:
>if(isset($_GET ['page']))
> {include($_GET ['page'].".php");}
So, what happens when I decide to use:
http://bonhamlinux.org?page=secret
If you have a file named secret.php, I just loaded it.
More importantly, I l
Hi,
what is the easiest way to check if a person i registered twice in a
mysql-table. Lets assume that I only check if the last name is in the table
more than once. This is in mysql 4.0 (subquery not an option).
Do I have to use arrays and in_array. Or is there a more elegant solution?
Best re
Hey,
finally solved this, incase anyones interested heres how i did it :
$day1=strtotime($age); // eg: 1979-12-07
$day2 = strtotime(date("Y-m-d"));
$dif_s = ($day2-$day1);
$dif_d = ($dif_s/60/60/24);
$dif_y = round(($dif_d/365.24));
echo "The person is $dif_y year(s) old";
Cheers,
Ryan
---
On Mon, May 2, 2005 4:07 am, George Pitcher said:
> On page y, I've echoed the queries and they work fine when I paste them
> into
> MySQLCC. However, if I do print_r($row), I get an ampty array. Echoing the
> $result gives me Object id #3 (on page x this is Object id #6).
>
> I have another popup
1 - 100 of 113 matches
Mail list logo