Hello list
hello php
hello bearded
I just finished partially implement the google snippets about wordpress
I say partially
Indeed j arrives to recover as the author and date
No I can not seem to recover to recover the image and description of
the subject
Here is the code that uses the j page
Daniel,
I get: URL: /net1003/people
Thoughts on what I am doing wrong.
Yeah. Not R'ing TFM. dirname() gives you the name of the
directory ABOVE what you pass.
http://php.net/dirname
Thanks for the pointer. You are indeed correct.
-Jason
--
PHP General Mailing List (http://ww
Hi Micah,
dirname($_SERVER['REQUEST_URI']);
I have tried that and I dont get the proper URI:
Example running print_r($_SERVER); I get: [REQUEST_URI] => /net1003/
people/jason/
But then doing:
$jason = dirname($_SERVER['REQUEST_URI']);
echo "URL:
Hi PHP'ers,
PHP 4.4.8 and 5.
say I have a url like:
http://www.mydomain.tld/jason/index.php
In that index.php I want to have a piece of code that runs that tells
me the 'jason' part of the URL so that I can run some custom read only
queries for 'jason'
How can I do this? I know how to do
Hi Preethi
> Kindly suggest me the good online tutorial for PHP5.
> Am already working on php4.
> Need to migrate from php4 to php5.
i think this is very important for OOP:
http://www.php.net/manual/en/language.oop5.php
and this one:
http://www.php.net/manual/en/language.exceptions.php
rega
Everything is possible :)
And in this case, it seems, that lines are delimited by ... i'm not quite
sure, whether "" can be used in explode as a delimiter, if so, you have no
problem and you just read all the file into variable, $lines = explode('',
$variable) and you have lines in $lines... if
I think, the point, Curt wanted to point out was, that URI CAN NOT contain SPACE
character and all SPACE characters (ord 32) are converted to %20 ... thus, space
character in rewrite rule will lead to bogus URI... thus, browser will send %20
instead and... dunno if apache will convert it to " "
m.
Henri Marc wrote:
Hello,
I woudlike to use a loop:
for ($i=1;$i<11;$i++)
But instead of incrementing with 1, I would like to
increment by 2. So $i would be 1,3,5,7,9. I tried to
find the answer may be with "step" but couldn't find
anything.
Thank you for your help.
Dave
Vous manquez d
Vi or ViM :)
m.
Peter Risdon wrote:
I have been using emacs/tramp for editing files on remote machines, but
I find it can be flaky - no doubt I am doing something wrong. Can anyone
suggest a good programmers' text editor that at least has syntax
highlighting and can use ssh for accessing files d
I have a certain difficulties in case of processing large images thru GD2
library. GD2 has some problems with image processing and it results in some
exception and GD just crashes. I have to mention, that the crash causes whole
php interpreter to crash and execution of the script is terminated w
This could happpen when the file is open by another process,... then
file is deleted, but filename is still there until the file is not free
of any open filedescriptors... I don't know exactly what processes
happens in kernel when deleting the file, but it's something like
that... and it could
Have you added the line with the hash mark (#) ??? if so, then it's
commented out... that's the first point.
The second one is, that when using Apache 2.0.50, you should use
php4apache2 module instead (I'm not ABSOLUTELLY sure of it, while for a
longer time using PHP5, but I hope, that somewhat
Hi!
This is what you need :)
You have hidden frame (FRAME not layer!!!) (it means )...
then in check.php would be something like this:
$id = $myid; //myid will be stored in session after user logs in
Connect to database, pair ID with a row in table and
update mytable set endtime = UNIX_TIMESTAMP()
I would do it this way:
- open the page and create hidden iframe (or frame with 0% width/height)
which will be refreshing itself every ... let's say ... 2 minutes...
then you'll get up to 2 minutes accurate numbers... the refreshed page
would write timestamp to database every refresh... when the
hello!
use output buffering...
regards,
m.
Maris wrote:
Hi!
Let's say my index.php consists of the following:
PHP says Hello World"; ?>
HTML says Hello World
..some other HMTL output..
My question is:
how can I make the whole index.php generated output put in one PHP variable?
It is also importan
Pardon me for the strtolower line, i've just forgot there... it's 4:30AM
here in Slovakia... :/
correct listing follows...
$authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert',
'alfred', 'amadeus', 'elen');
function usort_callback($a, $b) {
$a = str_replace(array('á', 'é'), array
this is slightly changed function of yours, written for better
readability...
$authors = array('élen', 'Élen', 'Elison', 'ámadeus', 'albert',
'alfred', 'amadeus', 'elen');
function usort_callback($a, $b) {
$a = strtolower($a); $b = strtolower($b);
$a = str_replace(array('á', 'é'), arra
Dunno the original question, but this obviously should be escaped...
So the correct code follows...
usort($authors, create_function('$a,$b','
$a = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $a);
$b = str_replace(array(\'é\', \'a\'), array(\'e\', \'a\'), $b);
return strc
this all seems just fine to me, aren't you sending some Header:
Content-type -s?
could you post that init.php script source? and is that apache server
working well for other scripts that are called from the forms?
AND ... just to be sure,... are you calling that html which contains the
form thru
When trying to create files/directories with PHP, in terms of the system,
who would be the user actually performing those actions?
Would it be the nobody user which runs the apache web daemons? I am trying
to figure out a safe way to make files writeable,
but hopefully chown-ing those files/dirs th
How exactly would I go about fixing my current php/sendmail setup so that it
uses the value specified in my php input form in the
from box instead of always setting the email from address as :
[EMAIL PROTECTED] ???
Any help would be greatly appreciated. Thanks!
--
PHP General Mailing List (htt
I am unable to send emails, and there are no errors being generated or
populated in the $php_errormsg variable, since I enabled track errors in the
php.ini. So I have no idea why the mail send is failing. Am I supposed to
specify
a mail server to use for sending mail? My sendmail was setup automati
)
it failed and I wanted to know how I can get a more descriptive error from
the failure of this function...
any ideas?
Thanks again, I really appreciate the help.
-ML
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
") or die(mysql_error());
>
> - Original Message -
> From: "ML" <[EMAIL PROTECTED]>
> To: <>
> Sent: Friday, February 21, 2003 9:33 AM
> Subject: [PHP] Re: Mysql DB connect failure
>
>
> Where exactly would I put the print mysql_erro
t; from PHP itself regarding the error returned when the mysql_connect
> failed.
> >
> > Here's a snippet from:
> > http://www.php.net/manual/en/language.operators.errorcontrol.php
> >
> > If the track_errors feature is enabled, any error message generated by
>
You were right Prins, I got the error:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
So I guess I need to investigate what this means now...
Thanks!
-ML
"Hans Prins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:
Where exactly would I put the print mysql_error() ?
Here is the code...
");
"Hans Prins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> did you try:
> print mysql_error();
&
Currently I have some php code that displays a message if a connect to my
database fails. Is there anyway I
can get a more descriptive error message? So I can see exactly why my php
can't connect to the Database?
I am pretty sure that the username and password are correct and the username
exists as
Hello all. Im having a strange problem. My php outputs html correctly, and
Ive tried other builtin functions like date and that works too. But when I
try to do something as simple as passing a value from a form to a php file
and display that value, no go.
the HTML:
Enter Your Name
> Take a look at http://cvs.php.net/co.php/php4/php.ini-dist
> The part that should you look at is Resource Limits
> (max_execution_time,memory_limit) and
> set up your php.ini accordingly.
Nope i can't find any solution... It goes well with memory_limit=8M
for a 12Ko file, but won't work for a
Here is what i do to parse a file with a perl script from PHP to get a
formatted output from the file :
error_reporting(E_ALL);
$cmd="/pathto/dump.pl \"".$HTTP_POST_VARS["filename"]."\" 2>&1";
$res=exec($cmd,$tab,$err);
With small files all goes fine, but when parsing a big file i get the
155 er
Here is what i do to parse a file with a perl script from PHP to get a
formatted output from the file :
error_reporting(E_ALL);
$cmd="/pathto/dump.pl \"".$HTTP_POST_VARS["filename"]."\" 2>&1";
$res=exec($cmd,$tab,$err);
With small files all goes fine, but when parsing a big file i get the
155 er
Here is what i do to parse a file with a perl script from PHP to get a
formatted output from the file :
error_reporting(E_ALL);
$cmd="/pathto/dump.pl \"".$HTTP_POST_VARS["filename"]."\" 2>&1";
$res=exec($cmd,$tab,$err);
With small files all goes fine, but when parsing a big file i get the
155 er
hi,
i've got the possibility to create alias subdomains, which redirect all
to the document-root...
e.g.:
http://adam.domain.com redirects to http://domain.com
i want to redirect the users who access http://adam.domain.com to
http://domain.com/home/adam
how to do this best in php??
reguards,
hi!
i've got the following problem and hope one of you is able to help me
solving that:
i've got a system in php that writes data (e.g. variable-name = $data)
to a mysql database. there are two more scripts: one for displaying the
data and one for writing the data into a formular. the displaying
> In setting up a form to allow a user to upload a file,
> upon submission of that form, you can get the actual
> file name that is being uploaded by accessing the
> variable:
>
> $userfile_name
>
> (assuming the form element's name where the user
> specifies the file is "$userfile").
>
> Is th
How to close persistance connection to MySQL server ?
Luboslav Gabal
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
- Pôvodná správa -
Od: "Luboslav Gabal ml." <[EMAIL PROTECTED]>
Komu: "Daniel Alsén" <[EMAIL PROTECTED]>; "PHP" <[EMAIL PROTECTED]>
Odoslané: 17. zárí 2001 23:39
Predmet: RE: [PHP] Help with database queries
> > Hi,
> >
>
> OK I am trying to write a script that will bring data out of a database
into
> a select box. But what I need it to do is repeat 5 times or more depending
> on what it brings out. I can only get it to display one select box. Here
is
> what I got so far:
>
> require 'common.inc';
> // Connect to
> I'm using php/mysql. I want to be able to count the number of records that
> match something.
> I've used mysql_num_rows() and it does work, but is there a better way?
> Something like COUNT(*)? I've tried to use it, but all I get is Resource
ID
> #1 or something similar. Any ideas for the best
> Hi,
>
> need some help with the code below. I am thinking of reusing this for
> building a thumbnail gallery from a database.
>
> First, is the code actually good? Do i do something that will slow down
the
> responses?
>
> Second, can anyone help me with a code sample to implement that will limi
> Greetings to All:
>
> I'm inexperienced, although enthusiastic about using PHP. I want to write
> data more effectively to a file.
>
> This doesn't work: fputs($frank, "Testing " $whatever " more testing
> \n\n\n");
> Right now, all I know is using three separate fputs statements. I'd like
t
> What I want to do is have a drop-down menu where the options are files
This is matter of HTML or JavaScript
> located in a folder on the server that changes as items are added to or
> removed. Then the user can select an item from the menu, submit, and that
> page will load.
This is script f
I have script for getting header of article from NNTP server using sockets:
";
}
?>
output have look so:
...
Path: csnews.vslib.cz!not-for-mail
From: "Antonin Mohaupt" <[EMAIL PROTECTED]>
Newsgroups: cz.comp.lang.php
...
but it is only
...
Path: csnews.vslib.cz!not-for-mail
From: "Antonin Moh
44 matches
Mail list logo