Nice list. I might be able to put it to work for me. BTW, if you want,
you can add my site as a LAMP site (of course, as small as it is
compared to the sites you have listed, you may not want too :)
http://www.by-tor.com
Evan Nemerson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Okay
On Thursday 07 November 2002 15:15, Steve Jackson wrote:
> My second query still doesn't return anything? Even with $orderid = $row
> removed as Jason suggested.
What exactly do you mean by "doesn't return anything"?
a) Does the second query fail?
b) Do you get any errors?
If no to both (a) and
At 07:14 07.11.2002, Charles Wiltgen said:
[snip]
>// Delete a file via FTP
>function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
[snip]
or, if you have FTP support built in:
$user = '**user**
At 07:33 07.11.2002, Salman said:
[snip]
>ereg("([-d])[rwxst-]{9}.* [0-9]* [a-zA-Z]+ [0-9: ]* (.+)",$dirline,$regs);
>
>This regular expressions parses the following line:
>
>drwxrwxrwx 1 ownergroup 0 Nov 5 23:19 fantasy
>
>to return: fan
Finally I have it!
Cheers to all that helped. I was querying twice when I didn't need to
and as Jason said not doing anything with the extracted information.
This code works and displays data nicely.
function get_order_numbers()
{
$conn = db_connect();
$query = "select * from orders, email where or
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Apache fails sanity check. Same with and without the LDFLAGS thing.
Error Output for sanity check
cd ..; gcc -DLINUX=22 -I/usr/src/php-4.2.3 -I/usr/src/php-4.2.3/main
- -I/usr/src/php-4.2.3/main -I/usr/src/php-4.2.3/Zend -I/usr/sr
In the end it think comes down to use what you know best..
Php vs ASp vs JSp vs .Net
consider your budget, clients needs, bosses needs, future needs etc.
I came to Php as .Net came in. I really like Php, i also really like ASP.
I learnt ASP first because my job required it, we had a IIS server
Hi all,
does anyone know a way to convert a gif file to jpg ?
I've made a photo album and, want to resize pictures to create thumbnails..
GD allow resizing jpeg files, but not gif files...
So... how can I create a jpeg file from the gif source ?
(may be with an external software...) ???
Cheers
P
I've been trying to make php run on IIS for a while now and still having the following
message:
"Security Alert! The PHP CGI cannot be accessed directly. Etc..."
I followed all instructions i could find:
set cgi_force_redirect to 0
put my php.ini in winnt directory
maps the new xtension php wit
> does anyone know a way to convert a gif file to jpg ?
> I've made a photo album and, want to resize pictures to create thumbnails..
> GD allow resizing jpeg files, but not gif files...
> So... how can I create a jpeg file from the gif source ?
> (may be with an external software...) ???
Command
thanks for all! :)
I'll take a look at this product.
P.E. Baroiller
"Krzysztof Dziekiewicz" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> > does anyone know a way to convert a gif file to jpg ?
> > I've made a photo album and, want to resize pictures to create
thumbnai
Hi,
I have 2 linux servers A and B. I am using a piece of code to upload file:
copy($resume,$fname);
unlink($resume);
or
move_uploaded_file($resume,$fname)
I am able to upload files to Server A, but not on Server B. I can see the
file name though, but has 0 file size.
I have give full permiss
Thank you for this very nice research effort!
BTW, is there any reason why PostgreSQL is not mentioned here? While it
seems there are far more MySQL installations, I personally value PostgreSQL
higher... it's OpenSource as well, it's an OO database (you may inherit,
have object identifiers, etc),
On Thursday 07 November 2002 16:28, Steve Jackson wrote:
> Finally I have it!
if this is your final code then you still don't "have it" !
> Cheers to all that helped. I was querying twice when I didn't need to
> and as Jason said not doing anything with the extracted information.
> extrac
Is there a way to send print_r output to a file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Thursday, November 7, 2002, 6:30:17 PM, you wrote:
EN> -BEGIN PGP SIGNED MESSAGE-
EN> Hash: SHA1
EN> Apache fails sanity check. Same with and without the LDFLAGS thing.
EN> Error Output for sanity check
EN> cd ..; gcc -DLINUX=22 -I/usr/src/php-4.2.3 -I/usr/src/php
The GD library bundled with PHP 4.3 can read gif images (but not write
them)
-Rasmus
On Thu, 7 Nov 2002, BAROILLER Pierre-Emmanuel wrote:
> Hi all,
>
> does anyone know a way to convert a gif file to jpg ?
> I've made a photo album and, want to resize pictures to create thumbnails..
> GD allow r
Karl, This list usually works best if:
a) you do some looking around at google, the manual, and other PHP/script
resources before asking questions
b) you have a specific problem that we can help with (eg "why is this
function not working?", not "who can build me a complete blah blah?")
Cheers,
At 11:12 07.11.2002, Kerry Kobashi said:
[snip]
>Is there a way to send print_r output to a file?
[snip]
rtfm :)
pardon me, but I couldn't resist...
ok, specifically:
http://www.php.net/manual/en/function.print-r.php
On Thursday 07 November 2002 18:12, Kerry Kobashi wrote:
> Is there a way to send print_r output to a file?
Try something like this:
ob_start();
if ($title) {
$title = '[' . date('Y-m-d H:i:s') . "]
{$_SERVER['HTTP_HOST']}{$_SERVER['PHP_SELF']}::$title";
echo "$title\n";
Hi,
I'm having a buffering problem with following combination:
-Webserver: Apache 1.3.23
-CGI: PHP 4.2.1
-Client:IE 6.026 (but fails using others as well)
Description:
I want the output buffer of php being flushed to the client in a
time-consuming loop, using the flush() and/or ob_flush
ahahahaha... i plead insanity
"Ernest E Vogelsinger" <[EMAIL PROTECTED]> wrote in message
news:5.1.1.6.2.20021107115742.02c2a228@;mail.vogelsinger.at...
> At 11:12 07.11.2002, Kerry Kobashi said:
> [snip]
> >Is there a way to send print_r output to a file?
Jule Slootbeek wrote:
Hi,
i'm writing a piece of code that allows me to upload the updated
version of my website from the local tree, to the server.
I do this by comparing the linux timestamps on the local and remote
files.
printing a table of the remote files works fine, but when i do it for
Look at configure.log (don't remember the name exactly), it is more verbose
Joydeep Ghosh wrote:
Hello,
installing PHP with netscape on Sun Solaris
Iplanet webserver 4.1
Sun Solaris 2.7
followed instruction as published at
http://www.php.net/manual/sv/install.netscape-enterprise.php
Onstep
Hi all,
I want to write a parser that would read a menu structure in a text
file, parse it and then turn that into an array structure. The menu
structure would use brackets to represent a new submenu and for each item in
the menu there would be some extra properties. EG:
Root
(
Sub1
(
Why cannot you store it in the file as array and just include it.
Simpler and much faster
Rishabh Gupta wrote:
Hi all,
I want to write a parser that would read a menu structure in a text
file, parse it and then turn that into an array structure. The menu
structure would use brackets to repre
I have a suggestion that doesn't involve PHP or MySQL. You could make it
look like dynamic pages (and, actually, it would be) by using Javascript.
Copy all the html your site generates from a browser, save the pages, and
then code those pages as html with Javascript to replace dates with current
d
php-general Digest 7 Nov 2002 13:11:47 - Issue 1690
Topics (messages 123090 through 123142):
Re: Trouble with php-4.2.3, apache-1.3.27, sablotron 0.96
123090 by: Tom Rogers
123099 by: Evan Nemerson
123108 by: Tom Rogers
123121 by: Evan Nemerson
123131
Hi,
When i print a date, the format of this date is: 8 nov
2001 0:00
(print ($array["date"]))
but i need print this: 08/11/2001
how i print this ?
ass.: Augusto Flavio
__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://la
Mike,
What makes you think I would allow you to setup http services on my machine
on the fly and potentially open it up to the outside world for attack? I
consider that a bad idea. I would really need to know you very well to
consider such privileges.
Jerry Artman
Budget and Reimbursement
[EMAIL
Is there anyway of grabbing information from
the browser as to where a user may have come from (referring page, search
engine, etc.)? And if so, how would I go about getting it?
Use phpinfo(), you will see the contents of all predifined variables.
You could use '$HTTP_REFERER' but this does not
This is what you want: http://www.indigostar.com/microweb.htm
Allows you to run PHP and MySQL off of a CDROM. Never used it personnally,
though.
---John Holmes...
- Original Message -
From: "ROBERT MCPEAK" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "GUY CHALK" <[EMAIL PROTECTED]>
Se
Hi everyone.
I thought you would be interested about a new template system called
Templeet. The way it works is fairly new. It's almost a new language
which allows you to not have to do any PHP (when I say that, I think
about the PHP syntax), but still offers all the PHP API, and much
more. It foc
> When i print a date, the format of this date is: 8 nov
> 2001 0:00
> (print ($array["date"]))
>
> but i need print this: 08/11/2001
>
> how i print this ?
Hmmm... well I want to say RTFM, but in light of the recent posts... :)
Take a look at the date() function.
www.php.net/date
You can fo
Dark Rotter wrote:
> Hi,
>
>
> When i print a date, the format of this date is: 8 nov
> 2001 0:00
> (print ($array["date"]))
>
> but i need print this: 08/11/2001
>
> how i print this ?
try
print date( 'd/m/Y', strtotime( $array['date'] ) );
HTH
Erwin
--
PHP General Mailing List (http://ww
you can do date('d/m/Y',strtotime($array['date'])), or better would be
to change
the format at the source
dark rotter wrote:
Hi,
When i print a date, the format of this date is: 8 nov
2001 0:00
(print ($array["date"]))
but i need print this: 08/11/2001
how i print this ?
ass.: Augusto Fla
Well, I dont think you would even know about it ;-), it doesn't have to
on port 80, but on any port
above 1024
Jerry Artman wrote:
Mike,
What makes you think I would allow you to setup http services on my machine
on the fly and potentially open it up to the outside world for attack? I
consider
Whats the point of this system? Someone explain this to me?
is it a template language? It doesn't look like one?
I am confuzed
On Thursday 07 Nov 2002 1:36 pm, Fabien Penso wrote:
> Hi everyone.
>
> I thought you would be interested about a new template system called
> Templeet. The way
On Thu, 07 Nov 2002 10:45:18 +0100, you wrote:
>BTW, is there any reason why PostgreSQL is not mentioned here? While it
>seems there are far more MySQL installations, I personally value PostgreSQL
>higher... it's OpenSource as well, it's an OO database (you may inherit,
>have object identifiers, e
No offense, but it looks pretty useless to me. It looks like a wrapper for
PHP. You have to learn all of the "template" commands. Why not just learn or
teach your designer PHP, you'd save time. The idea of a templating system is
to have very little logic in the HTML.
My $0.02.
---John Holmes...
Hi 1lt !
Thu, 7 Nov 2002 09:18:00 -0500, tu as dit :
> No offense, but it looks pretty useless to me. It looks like a wrapper for
> PHP. You have to learn all of the "template" commands. Why not just learn or
> teach your designer PHP, you'd save time. The idea of a templating system is
> to
Seems the site is down? Just when I was needing to get to the
documentation.
Ed
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I can't get to it either, but the mirror http://uk.php.net works fine.
Adam
On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote:
>
> Seems the site is down? Just when I was needing to get to the
> documentation.
>
> Ed
>
>
>
>
--
PHP General Mailing List (http://www.php.net/)
T
I know I can use a php array but that wasn't the question!!! And no it
wouldn't be simpler, certainly for my purpose. The tree structure I need to
build is much bigger and much more complex than the example I gave below, so
using a normal array is simply not an option. Besides, the tree structure
n
Great. Thanks!
On Thu, 7 Nov 2002, Adam Williams wrote:
> I can't get to it either, but the mirror http://uk.php.net works fine.
>
> Adam
>
> On Thu, 7 Nov 2002 [EMAIL PROTECTED] wrote:
>
> >
> > Seems the site is down? Just when I was needing to get to the
> > documen
greetings,
i have problems using fgetcsv to explode a .csv file. some values consist
of line-breaks. although these values are enclosed by quotes, php
recognizes the line-break and starts a new dataset.
the script workes fine in my old environment (win2k, apache 1.3.23, php
4.1.1), the problem
I've found a little problem that's not explicitly a php problem but I was
hoping that php may be the solution.
Someone is shown an image and then asked if they wish to change that
image. If they answer yes they are taken to an upload form and the new
image is upload to the server overwitting the
As someone else mentioned, filenames with embedded spaces can be
confusing and should be avoided where possible (in the future, I'd
replace the space with an underscore _). However, the following will
do what you want (untested):
$regs = preg_split('/\w+/', $dirline, 9);
$regs[8] will contain
> Seems the site is down? Just when I was needing to get to the
> documentation.
If you run windows, you can download a help file from the following
page:
http://uk.php.net/download-docs.php
I use it all the time, especially on my development PCs that don't
have constant net access (my laptop, f
> I've found a little problem that's not explicitly a php problem but I was
> hoping that php may be the solution.
>
> Someone is shown an image and then asked if they wish to change that
> image. If they answer yes they are taken to an upload form and the new
> image is upload to the server overw
On Thursday, Nov 7, 2002, at 14:49 Europe/London,
<[EMAIL PROTECTED]> wrote:
I've found a little problem that's not explicitly a php problem but I
was
hoping that php may be the solution.
Someone is shown an image and then asked if they wish to change that
image. If they answer yes they are tak
Maybe use the random functions to generate a random file name
which wouldn't be cached, I.E.:
c83jsdbd732jd.png or whatever.
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-11-07 at 09:49, [EMAIL PROTECTED] wrote:
>
> I've found a little problem that's not explicitly a php problem but I was
> hoping
But I don't think headers would work because I would be using it on a
page that has already had output before the images would and also multiple
images which means multiple header statements.
Ed
On Thu, 7 Nov 2002, 1LT John W. Holmes wrote:
> > I've found a little problem that's not explicit
How do I extract only the first eight characters (alpha-numeric) in a string.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You're just doing a regular , right? Or do you have
a PHP script creating the image for you .
If it's the first one, header()s at the top of that page may prevent the
page and it's images from being cached. I'm not sure on the specifics of
what is/is not cached, sorry.
The random number solution
Umm, this won't check, only blindly pull the first 8, but:
$cutsring = substr($originalstring,0,8);
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-11-07 at 10:06, John Meyer wrote:
> How do I extract only the first eight characters (alpha-numeric) in a string.
>
> --
> PHP General Mailing List (htt
Of course you are correct.
I forgot to remove the $row["orderid"] etc..
I was just testing the function and thought I'd post the code rather
than waste someones time answering me.
However thanks for the help. Much appreciated.
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystem
how about this:
$cutstring = substr(preg_replace("\W","",$originalstring),0,8);
-Original Message-
From: Adam Voigt [mailto:adam@;cryptocomm.com]
Sent: Thursday, November 07, 2002 8:10 AM
To: John Meyer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Extracting first eight characters of a strin
I have seen a few things where PHP can get IMAP email, but can PHP get POP3 email as
well? I want to write a PHP application to get my POP3 email from my server. Can I do
it with PHP? Or no?
Thanks for your time.
Last I heard, PHP and Apache 2 were not yet ready for production
environments. Are there any further updates?
What is the best way to keep up on the status of this? Any good sites in
particular?
TIA
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
If you want to keep non-alphanumeric characters and remove first 8
alphanumeric
characters, use
$cutstring = preg_replace("[0-9a-zA-Z]","",$originalstring,8);
or use \w if you want to remove underscore also
John Meyer wrote:
how about this:
$cutstring = substr(preg_replace("\W","",$originalst
It the same, you only call imap_open("{server:110/pop3}INBOX",
some function are available only to imap
Nick Hird wrote:
I have seen a few things where PHP can get IMAP email, but can PHP get POP3 email as well? I want to write a PHP application to get my POP3 email from my server. Can I do
Hi Nick,
You can actually use the imap extension to pick up POP3 mail (although,
in my experience, it's pretty slow).
There are also POP3 classes available... here's an example:
http://www.thewebmasters.net/php/POP3.phtml
Marco
--
php|architect - The magazine for PHP Professional
Hi!
does someone know how to find an exact word in a content with html tags ?
I'm using a regexp like this :
$searchRegEx = "'\b".$word_search."\b'msi";
to get boundary word results, but... if the searched word is like 'word or
word. or anything else, the
regular expression doesn't work..
if I
I think the random number query will work but I have a problem with the
context of the echo line.
Here's how I get the image path.
How would I use the rand function in the above statement?
Ed
> When you create the src tag in for the image, add a random number query
> string - that wil
I need to use PHP to dencrypt a file with GPG (which was encrypted with
a public key generated on the server) I would normally use the exec
command to just execute the proper GPG command, but I can't seem to get
the password for the key (to decrypt the file) into GPG, I have tried:
exec("/usr/bin/
At 16:57 07.11.2002, [EMAIL PROTECTED] spoke out and said:
[snip]
> I think the random number query will work but I have a problem with the
>context of the echo line.
>
>Here's how I get the image path.
>
>$root_path = "/www/special_projects/Elkhart";
>$agent
Ok, here's what I ended up with, and it worked:
exec("HOME=\"/home/apache\";/bin/echo \"MYPASS\" | /usr/bin/gpg --no-tty
--passphrase-fd 0 -o /path/to/decrypted/file -d
/path/to/encrypted/file");
I had to do the HOME variable setting because according
to the log file, GPG was looking for it's .gp
On a PHP event, does the onLoad event in a document run before or after the
page is parsed, created, and sent to the user?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
After--that's client-side stuff.
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmer
Come visit us at http://www.phparch.com!
--- Begin Message ---
On a PHP event, does the onLoad event in a document run be
At 17:24 07.11.2002, John Meyer spoke out and said:
[snip]
>On a PHP event, does the onLoad event in a document run before or after the
>page is parsed, created, and sent to the user?
[snip]
Hmm - maybe I should a lit
On Thu, 7 Nov 2002, Ernest E Vogelsinger wrote:
> At 16:57 07.11.2002, [EMAIL PROTECTED] spoke out and said:
> [snip]
> > I think the random number query will work but I have a problem with the
> >context of the echo line.
> >
> >Here's how I get the image
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
The reason pgsql is not mentioned is that the document began as me trying to
convince my boss to use LAMP (P==PHP, not PostgreSQL). I only posted when I
realized how much time I had spent on the thing.
I have decided to create a list that I'll post
You still have to put the password on the command line... Very insecure. I
keep waiting for gpgme so I can work on a --enable-gpgme
What you have is prolly the best solution right now, though. And good hack w/
the home directory.
On Thursday 07 November 2002 08:19 am, Adam Voigt wrote:
> Ok,
Well if the server gets hacked and there able to read the script, I
have bigger problems. The pass doesn't matter too much since it's just
for passing a single file between two servers, not like it's multiple
recipients or anything. Plus the public key isn't even published and
the file isn't even s
onLoad is Javascript, and thus AFTER page was parsed.
--
Maxim Maletsky
[EMAIL PROTECTED]
"John Meyer" <[EMAIL PROTECTED]> wrote... :
> On a PHP event, does the onLoad event in a document run before or after the
> page is parsed, created, and sent to the user?
>
>
> --
> PHP General Mailin
I heard mentioning a few more month for them to get working stably.
--
Maxim Maletsky
[EMAIL PROTECTED]
"Johnson, Kirk" <[EMAIL PROTECTED]> wrote... :
> Last I heard, PHP and Apache 2 were not yet ready for production
> environments. Are there any further updates?
>
> What is the best way t
Try looking for search engine scripts - they have this feature very
simple.
--
Maxim Maletsky
[EMAIL PROTECTED]
"BAROILLER Pierre-Emmanuel" <[EMAIL PROTECTED]> wrote... :
> Hi!
>
> does someone know how to find an exact word in a content with html tags ?
> I'm using a regexp like this :
>
>
Because then you get to separate the content from layout. It is the main
reason.
--
Maxim Maletsky
[EMAIL PROTECTED]
"1LT John W. Holmes" <[EMAIL PROTECTED]> wrote... :
> No offense, but it looks pretty useless to me. It looks like a wrapper for
> PHP. You have to learn all of the "template"
Here's the situation:
httpd-2.0.40-8
php-4.2.2-8.0.5
The application is SquirrelMail 1.2.8; everything else works, but
it's limited to about 512Kbytes of upload. My first impulse was to
investigate the FAQ on Squirrelmail.org, and it had it, but the text was
kinda...spastic. Go read
Add to it the Italian Government:
Ministry of the Economy and Finance of Italy - National Territory
Database:
runs:
Linux, Apache, PHP, Ruby for Interface
--
Maxim Maletsky
[EMAIL PROTECTED]
Evan Nemerson <[EMAIL PROTECTED]> wrote... :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
Also, here is a list i once used myself to convince some of my clients:
http://news.php.net/article.php?group=php.evangelism&article=121
--
Maxim Maletsky
[EMAIL PROTECTED]
Evan Nemerson <[EMAIL PROTECTED]> wrote... :
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Okay, it took me a
doesn't it have its own mailing list or forum? You'd get better chances
there
--
Maxim Maletsky
[EMAIL PROTECTED]
Pushpinder Sngh Garcha <[EMAIL PROTECTED]> wrote... :
> Hello Everyone
>
> I am unable to send mail using the SMTP mode in phpmailer.
> I keep getting "Error: Could not authentic
SELECT * FROM table ORDER BY date DESC
--
Maxim Maletsky
[EMAIL PROTECTED]
"Stephen" <[EMAIL PROTECTED]> wrote... :
> Sorry, I'm using MySQL.
>
>
> - Original Message -
> From: "Marco Tabini" <[EMAIL PROTECTED]>
> To: "Stephen" <[EMAIL PROTECTED]>
> Cc: "PHP List" <[EMAIL PROTECTED
Hello,
If i set display_errors = on and error_reporting = E_ALL
in my php.ini file, then i get this warning:
Warning: Call-time pass-by-reference has been deprecated - argument passed
by value; If you would like to pass it by reference, modify the declaration
of [runtime function name](). If
Which functions are you using to do the regex stuff...
That might help...also check out...
On Thu, 2002-11-07 at 15:42, BAROILLER Pierre-Emmanuel wrote:
> Hi!
>
> does someone know how to find an exact word in a content with html tags ?
> I'm using a regexp like this :
>
> $searchRegEx = "'\b
change the function declaration to
function myTestFunction(&$x) {
funtion stuff here
}
R B wrote:
Hello,
If i set display_errors = on and error_reporting = E_ALL
in my php.ini file, then i get this warning:
Warning: Call-time pass-by-reference has been deprecated - argument
pass
You should also take a look at some of the case studies on zend.com as
well. I seem to remember articles on the Navy and the Indy500.
Also, search the archives for "Yahoo Moves to PHP" for some articles and
slides on Yahoo's decision to start using PHP for new stuff.
-philip
On Wed, 6 Nov 2002,
Philip Hallstrom <[EMAIL PROTECTED]> wrote... :
> Also, search the archives for "Yahoo Moves to PHP" for some articles and
> slides on Yahoo's decision to start using PHP for new stuff.
oh yeah, that is indeed convincing.
here is the link:
http://groups.google.com/groups?q=yahoo+group:php.gene
I work with
preg_match_all to get all matching words
and preg_replace_callback to replace found sentences...
before runing the php pass, I take results from a mysql table
with a query like this : select * from mytable where content REGEXP
'[[:<:]]theword[[:>:]]
But... I can't get al
Personally, I like the idea of a static site. I have a dynamic,
database-driven site that handles documentation for an engineering project.
When the project is over, I would like to archive the entire site, including
the database and all document directories, onto a static, html-only, CD.
Has anyo
And when i call the myTestFunction function, i have to put & in the
variable?
ex:
function myTestFunction(&$x) {
funtion stuff here
}
myTestFunction(&$x)
or
myTestFunction($x) ?
Thanks,
RB
From: Marek Kilimajer <[EMAIL PROTECTED]>
To: PHP <[EMAIL PROTECTED]>
Subject: Re: [PHP
Hello,
I'm using array_change_key_case to return an array with all string keys
uppercased.
ex:
$myArray = array_change_key_case($result,CASE_UPPER);
If i have the display_errors = on and error_reporting = E_ALL in my
php.ini then i get the warning:
"Warning: Wrong datatype in array_change_
Ernest E Vogelsinger wrote...
> or, if you have FTP support built in:
Yeah, a much better option if it's available.
It isn't for me, and I can't use it as a final solution, so I'm still
looking for a way to write files locally without using it. I wish PHP just
gave me the ability read and write
Are you sure you don't have something different from strings and
integers in one of your keys?
Anyway, you can still quiet the error up by prepeding the function with
an at-mark:
$myArray = @array_change_key_case($result,CASE_UPPER);
--
Maxim Maletsky
[EMAIL PROTECTED]
"R B" <[EMAIL PROTECT
Is there a function to check up the transmission speed when sending a file?
thx a lot
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
I have a script that makes a file, and then includes it. Sometimes I get
this error:
Warning: open_basedir restriction in effect. File is in wrong directory
in /home/.pix/cwiltgen/coremessaging.com.scripts/pageServer.php on line
59
Warning: Failed opening '/home/cwiltgen/
On Friday 08 November 2002 02:35, R B wrote:
> And when i call the myTestFunction function, i have to put & in the
> variable?
>
> ex:
> function myTestFunction(&$x) {
> funtion stuff here
> }
>
> myTestFunction(&$x)
No.
> or
>
> myTestFunction($x) ?
Yes.
--
Jason Wong -> Gremlin
use system calls. exec(), `` etc if you can do it somehow... Otherwise
add yourself a logic calculating it.
--
Maxim Maletsky
[EMAIL PROTECTED]
"ªüYam" <[EMAIL PROTECTED]> wrote... :
> Is there a function to check up the transmission speed when sending a file?
> thx a lot
>
>
>
> --
> PHP
hey I'm trying to make dynamic database queries using
sprintf
any way I can get around this error?
$sql = "SELECT * FROM Vacation where StartDate LIKE '%s/" .
'\%' . "/%s'";
$sql = sprintf($sql, $_GET["month"], $_GET["year"] );
I want just a literal slash between the month and year,
printf seem
1 - 100 of 213 matches
Mail list logo