and how I can format the text properly??
not, with any look at your code or results
try
preg_replace( '|\s*|', ' ', $string );
it will replaces any occurence of one or more white-space-characters
with one single space
http://www.php.net/manual/en/reference.pcre.pattern.syntax.php
--
Sebastian
Thomas wrote:
Is there an app out there that can easily create a relationship (flow)
diagram of a given database?
DBDesigner at
http://www.fabforce.net/dbdesigner4/
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP
the field where PRIMARY key(news_id) is
the highest auto_increment number.
This works just as excpected on localhost but not on remote.
Does anybody know the right syntax?
SELECT `newstitle`
FROM `news`
ORDER BY `news_id` DESC
LIMIT 1
--
Sebastian Mendel
www.sebastianmendel.de
to mention, you need only the second example, the first ist just to
explain the step toward the final ocde.
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
? or does it report any errors?
what says phpinfo() about gd?
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, $string);
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sebastian Mendel wrote:
; Directory in which the loadable extensions (modules)
reside.
extension_dir = C:\PHP\extensions
I have also uncommented the
extension = php_gd2.dll
I have in the c:\php\extension folder the php_gd2.dll
I have restarted IIS but still nothing
I am using
checked the even view but no help there. What dll do you
think i would need? Please I appreciate your help.
extension_dir = c:\php\extensions\
http://www.php.net/manual/en/install.windows.extensions.php
Please do not forget the last backslash
--
Sebastian Mendel
www.sebastianmendel.de
Dotan Cohen wrote:
On 6/15/05, Sebastian Mendel [EMAIL PROTECTED] wrote:
Dotan Cohen wrote:
Hi gurus. I'm having fun replacing the text within [ and ] to XML
format on 4000+ files on a windows XP machine. I installed php (and an
apache server) on the machine because it is the only language
() with $_GET ( or $_REQUEST ) ?
foreach ( $_GET as $key = $var )
{
echo $key . ' = ' . $var;
}
but this is not incrementing a register global but 'accessing a
superglobale array'
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP
?
--
Sebastian Mendel
www.sebastianmendel.de
www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sebastian Mendel wrote:
Gustav Wiberg wrote:
Hi there!
I have a script that runs about 10 minutes... Localy on my computer
(Windows XP 2.6Ghz, Apache) the computer hangs a little now and then
when the script is running. Is there any good way of releasing more
memory while the script
Sebastian Mendel wrote:
Hi,
how can i check if a method is called statically when called from inside
another object? (without debug_bactrace())
class foo
{
function bar()
{
if ( isset( $this ) )
{
return 'not static';
}
return
']) ) {
$where[] = 'Date_Sub(Curdate(), interval ' . (int) $_POST['Days'] .
' day) = PostStart';
}
$sql = '
SELECT ...
FROM vendorjobs
WHERE ' . implode( ' AND ', $where );
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects
'];
// is the same as:
global $my_var
echo $my_var;
// 'global' just creates a local reference to the global variable
// global $my_var; is the same as:
$my_var = $GLOBALS['my_var'];
echo $my_var;
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
?
- what does var_dump( $_GET['getvar'] );
- do you tried urlencode();
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
= password );
/* Database connection */
function db() {
global $defined;
if( connection_status() != 0 ) {
$db = @mysql_pconnect( $defined[9], $defined[1], $defined[2] ) or die();
is this a typo???
@mysql_pconnect( $defined[9]
shouldnt it be
@mysql_pconnect( $defined[0]
--
Sebastian Mendel
a certain input and
complains, or returns false, if it doesn't get it.
yes, and of course shouldnt every function check it parametres before
proceeding?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects
Segmentation fault.
try without modules
if it works try one module check again and so on...
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
Jerry Swanson wrote:
What variable header use? If I send something in header, what GLOBAL
variable header use?
do you mean $_SERVER ?
$_SERVER holds some header-information sent by the client to the webserver
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
and? is it a typo in the message or in your source and solves this typo
your problem?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
']][$array['teacher']][$array['class']]++;
// or by whatever is relevant for you
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
instead of
if SELECT INSERT ELSE UPDATE
logs()
{
db( $defined[9], $defined[1], $defined[2], $defined[3] );
$sql = 'REPLACE INTO logs VALUES ( ... )';
mysql_query( $sql ) or die( '...' );
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
are
all mysql_passwords stored in the db, thats why you have to run
mysql_fix_privilege_tables
read carefully through all 4.1. changelogs!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
because the
browser just thought it was accessing a direct link to a file.
But now download.php/30/file.torrent results in a 404.
Is this something I can change back?
this is an apache related thing
http://httpd.apache.org/docs-2.0/mod/core.html#acceptpathinfo
--
Sebastian Mendel
Mario Bittencourt wrote:
I could not compile php 5.0.2 with the latest mysql 4.1.7.
I've installed the rpms (server,max,client,devel,shared) from mysql.com.
./configure --with-mnogosearch --with-xml --with-mysql=/usr
--with-mysqli=/usr/bin/mysql_config --with-apxs2 --enable-soap
When I compile I
the project at last by today...
This is a javascript related problem!
Why not just take a look add any driver-section of a web-page from a
hardware-manufacturer?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net
can easily do this by writing an function myself.
But are there any built in functions for this? I have looked at usort,
uksort and more, but they do not seem to solve my problem.
uksort() or array_multisort() should do fine
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
/photos/.$_GET['page']./);
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[moduleStatus] = 1
)
)
So, the question, how resort the numeric values to 1,2,3,4?
which numeric values ?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General
.
Did anybody have this experience before?
quota?
free space?
try setting display_errors and startup_errors on
try track_errors with on
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
.
and whats the problem? did you tried uksort() ?
what did you tried? post the code, and someone will take a look and give
a hint!
sorry, but if you want a complete solution, go hire a php-programmer!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net
with javascript before sending and decode with
a decode-key when recieving!
just what you need is key who can encode but not decode! und the
appropriate decode key on the server, to decode it.
just try to look for some javascript in the web!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
to upload a large file is This
document contains no data
The specified log file is empty.
did you check $php_errormsg ?
track_errors boolean
If enabled, the last error message will always be present in the
variable $php_errormsg.
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
!
f.e. with classes.php in /webroot/
/webroot/index.php:
require 'lang/en.php';
/webroot/lang/en.php:
//WRONG:
require '../classes.php';
//RIGHT:
require 'classes.php';
// or
require '/webroot/classes.php';
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
Peter Lauri wrote:
If you use the Autority HTTP that pops up a login window by default, is that
safe against listeners?
IMHO, the login-data is sent as plain text also, and this with every
subsequent request! and not only with the first!
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de
Peter Lauri wrote:
Best groupmember,
What editor do you use when working with websites (php) connected directly
to the FTP?
I like Eclipse 3.0 with the PHP plugin, but it do not have the future to
connect to the FTP.
did you tried the FTP-WebDAV plugin?
--
Sebastian Mendel
www.sebastianmendel.de
( $element_2 ) ) {
return 1;
}
elseif ( max( $element_1 ) max( $element_2 ) ) {
return -1;
}
elseif ( max( $element_1 ) max( $element_2 ) ) {
return 1;
}
return 0;
}
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net
'] = $current_array_key; // f.e. 0 on the first page
echo $_SESSION['ses_csv_files'][$_SESSION['key']];
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net
of the base class would have been
called, printing 'I am the constructor of A.br /'.
Is this an error in the manual?
Or a bug in php 4.3.9?
Or just me being stupid?
as i understand it exactly as you, it must be a bug/error
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de
engine 1.3 compatiblity on ?
--
Sebastian Mendel
www.sebastianmendel.de www.warzonez.de www.tekkno4u.de www.nofetish.com
www.sf.net/projects/phpdatetimewww.sf.net/projects/phptimesheet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
41 matches
Mail list logo