f thinking and it is my style as
well.
But I though that the point of the thread was to present ways of putting
vars inside strings...
--
Thodoris
Using the same type way as before in this thread.
This was supposed to come out as "using the same way of thinking".
But the English->Nerdish dictionary came out...
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oing to be made into the string. So you can put them anywhere as
long as it is meaningful.
See some examples:
http://php.net/manual/en/language.types.string.php
in the complex (curly) syntax section.
--
Thodoris
hey are not meant to go around. You can use them this way as well.
--
Thodoris
the braces for
everything, but nobody has ever accused me of making too much sense
before!
Thanks,
Ash
http://www.ashleysheridan.co.uk
This will also work (shell like style):
print "Test: ${var[0]}";
but this won't based on the same principle you mention above:
print "Test: ${var[0][0]}";
--
Thodoris
http://php.net/manual/en/language.operators.errorcontrol.php ?
A better idea would be suppressing the error messages in a production site:
ini_set('display_errors',0);
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
oduce a warning or an error.
--
Thodoris
;t and that is vital to me.
I wasn't able to print greek for example with some other classes I 've
tried. I am not sure if ezpdf does that.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
wnloading PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634 bytes)
..done: 291,634 bytes
Segmentation fault
Manually is the best solution as far as I can tell:
http://pear.php.net/manual/en/installation.getting.php
Eddie is right. Give it a try.
-
Thodoris wrote:
Is there a good reason for needing this pear package?
http://pear.php.net/package/DB
It is old and it has been replaced with MDB2 some time ago. Why don't
you use it instead of trying to install DB.
The issue here isn't what package is being installed. The issu
the whole thread as you will all understand.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thodoris wrote:
Was, by any chance, PHP installed as binary before you install it
from source?
If this is the case try uninstalling the binary and then configure
and compile the source again running 'make clean' before.
PHP was not installed at all on this machine. I grabbed
ary and then configure and
compile the source again running 'make clean' before.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
setting the date.timezone setting in your php.ini and see what
happens (don't forget to restart the web server to make changes take
effect) or use the ini_set().
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ot;\n";
print_r($matches);
to test preg_match's behavior and when the above string has Latin
characters the pattern matches when it's in greek. Can someone explain
this? Is there a workaround?
PS all are in UTF-8.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
P 5.3.0 to test it)?
http://www.php.net/manual/en/function.date-create-from-format.php
--
Thodoris
Thodoris wrote:
2009/7/28 Thodoris :
Hi gang,
I've been looking for a str_to_date (mysql) equivalent in PHP. I've
noticed that these are matching the description:
http://www.php.net/manual/en/datetime.createfromformat.php
http://www.php.net/manual/en/function.date-c
On Tue, 2009-07-28 at 20:10 +0300, Thodoris wrote:
> 2009/7/28 Thodoris mailto:t...@kinetix.gr>>:
>
>> Hi gang,
>> I've been looking for a str_to_date (mysql) equivalent in PHP. I've
>> noticed that these are matching the descrip
2009/7/28 Thodoris :
Hi gang,
I've been looking for a str_to_date (mysql) equivalent in PHP. I've
noticed that these are matching the description:
http://www.php.net/manual/en/datetime.createfromformat.php
http://www.php.net/manual/en/function.date-create-from-format.php
b
.0 installed in any of my systems to test it and
the function/method is not well documented yet. So I will have to write
a workaround this.
Has anybody tried this?
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thodoris wrote:
I've used it for some time but never needed to lock a cell. Here is a
piece of code that shows how to apply a format to a cell:
> Hope it helps. I think that by doing something like this:
$format_bold->setLocked();
while creating the format could do the trick bu
P for starters?
http://www.wampserver.com/en/
It gives you all you need in one package.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Why not just compile it yourself?
Why not let the ports system compile it for you and then have the choice
to remove it as package whenever you like...
You get it compiled and packaged the same time...
:-)
I guess BSD is the way to make your life easier...
--
Thodoris
--
PHP
ient=firefox-a
besides the first hit which is tizag there others you could look into
for info.
I know I've stated the *obvious* but I think you should try it nonetheless.
--
Thodoris
lose();
?>
Hope it helps. I think that by doing something like this:
$format_bold->setLocked();
while creating the format could do the trick but it is not tested.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
o use quotes in all fields and there are several other
reasons that I want to avoid quoting the values. In addition to that PHP
5.3 (which fixes this) is not stable yet and thus I can't install it in
a production machine.
So does anybody know any workarounds??
--
Thodoris
--
PHP General Ma
of the $fi object
fails for some reason.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thodoris wrote:
Is fileinfo pecl extension installed as a package or with pecl? In
case it is installed as an rpm try to remove it and install it as an
extension in case the package is broken for some reason.
I installed it with PECL:
/usr/share/pear/bin/pecl install fileinfo
Other
I am sure that someone more experienced than me will reply when the time
is right.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r some reason.
Have in mind that you will need the magic_open library for this to work.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Tue, 2009-05-12 at 18:05 +0300, Thodoris wrote:
Still curious about the right script though (if this is possible of
course).
Of course it's possible... but you're probably not going to get the
results you want since you're taking 3 dimensions and trying to push
them
/ . It will
remove any existing keys that may have been assigned, rather than just
reordering the keys
http://www.php.net/manual/en/function.sort.php
Forgot to mention this of course which was my point on the first place:
Be careful when sorting arrays with mixed types values because *sort()*
can produce unpredictable results.
--
Thodoris
emove any existing keys that may have been assigned, rather than just
reordering the keys
http://www.php.net/manual/en/function.sort.php
--
Thodoris
Thodoris wrote:
דניאל דנון wrote:
I've tried to make a color table, but I am missing something. not in the
color-table-code itself, but in somewhere else... I just can't find...
untested but try..
// 4096*4096 = 16777216 = FF+1
$im = imagecreate(4096, 409
Thodoris wrote:
hi
I was trying to read a file from Desktop (Centos),
Simply saying (php code file is in /var/www/html/ )
if (file_exists("/root/Desktop/conf_files_linux"))
echo "yes file is there";
else
echo "no none";
It gives me none.
If i place conf_fil
}
$b = 0;
$g++;
}
$g = 0;
$r++;
}
header("Content-Type: image/png");
imagepng($im);
imagedestroy($im);
Never used image manipulation with PHP but this is giving me a black image.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ded. You could always run this script from
command line being root or whatever user is the owner of the Desktop
directory. Read this if you are not aware of how this can be done:
http://www.php.net/features.commandline
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Hello,
on 05/11/2009 12:25 PM Thodoris said the following:
This script seems to work ok in a freebsd development server I have but
a linux production machine breaks the subject's encoding for some
unexpected reason. The subject has a mix of English and Greek characters
that FreeBSD
On 11 May 2009 at 18:25, Thodoris wrote:
Hi gang,
I am using phpmailer to send some mail notifications in an intranet
I've made. This is a sample code:
$e->Subject = "This is δφκξγκδφη garbidge κηδφκξγσ";
Hi,
I have had success with this in t
bstring).
Has anyone had a similar experience? Is it possible that sendmail (which
is the underlying tool) breaks the mail encoding?
Please any help would be appreciated because this is really driving me
crazy.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cess.
I don't know if this is an expected behavior though. Can anyone else
confirm this??
--
Thodoris
es it work?
In addition to this heck your apache configuration to see if you allow
.htaccess to be parsed.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
e your table's fields .
Try to include more info about your system, php version etc in case you
reply. It will help us to help you.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
Finding nothing with those, I'd grep the whole stinkin' drive and go grab a
coffee. :)
On Wed, Apr 15, 2009 at 10:39 AM, Thodoris wrote:
Hi all,
I've just started looking at the code of an e-commerce site we are taking
over the development of, that another company
that you use.
You can check the user and internal functions using the
get_defined_fumctions():
http://us.php.net/manual/en/function.get-defined-functions.php
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If you want to use UTF-8 fonts with FPDF then switch to TCPDF
(www.tcpdf.org)
Thanks Tony I think that it will do what I really need.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello sample:\n" .
"[" . $e->get_errnum() . "] " . $e->get_apiname() . ": " .
$e->get_errmsg() . "\n");
}
catch (Exception $e) {
die($e);
}
Although greek are printed normally the characters are overlapping on
each other. The script in encoded in UTF-8.
Does anybody have any suggestions on this? Please any help would be
appreciated.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it doesn't work as expected. The font is not
being although I am following the fpdf's directions step-by-step.
Does anybody know another way to generate pdf files with greek properly
or can help me with the fpdf??
Thanks in advance.
--
Thodoris
--
PHP General Mailing List (htt
P in
order to use Smarty. Think it just like a class used for displaying the
output (simply put).
At least I've been doing this for some time now (the non-OOP part).
I have a feeling that someone coming from the procedural way of
programming would have problems probably with the templates instead of
the development part.
--
Thodoris
which make them faster to process.
Nevertheless you need time to get familiar with the smarty way of
thinking as with all frameworks and template engines you need to use.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
works for as many categories as needed. Manipulating each value
should not be a problem once it is in a string variable using switch and
preg_replace() as each category needs to be stripped of spaces, commas
and &s.
Perhaps extract() ??
http://www.php.net/manual/en/function.extract.
Thodoris wrote:
Hi gang,
I am trying to run a script from cli which goes like this:
#!/usr/bin/php
The error I get is this:
/usr/bin/php^M: bad interpreter: Permission denied
the php binary is indeed in this location and when I run the same script
like this:
php -f test.php
it works
On Fri, Mar 13, 2009 at 10:23, Thodoris wrote:
[snip!]
Both commands return the same path.
and that path, I'll presume, is the same you have set in the
script, right? Please offer as much information as you can with each
email to speed up the troubleshooting process.
which php
whereis php
The first will tell you which PHP CLI binary is preferred by the
current $PATH settings, while the second will tell you where in $PATH
'php' is located.
Both commands return the same path.
--
Thodoris
have to mention that the executable flag is
set in the file's permissions.
Any ideas why is this happening?
php -v gives me:
PHP 5.1.6 (cli) (built: Nov 12 2008 11:22:34)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
--
Thodoris
-
Thodoris wrote:
Didn't have the time to read the whole thread. Sorry for being so lame.
Obviously, or you would have known that this thread has very little if
anything to do with whoami! :-)
Indeed nonetheless it will be something useful for the archives (at
least I think
ns AFAIK can give you only the ids
(uid,gid etc) about a process.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
y exceed. So if you use either you may need to fine-tune
PHP by increasing the per process memory (memory_limit in php.ini) or MySQL.
In case you use unbuffered queries you cannot use transactions as far as
I can recall.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d my
life.
it also has very nice scripts for working with wsdl including an
automatic wsdl2php and a full WSDL generation API :)
Many Regards,
Nathan
ps: I'm no affiliation :)
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
and it is possible to produce something similar to byte-code.
You can some solutions to this and here is one of them (open source):
http://www.php.net/manual/en/ref.bcompiler.php
http://pecl.php.net/package/bcompiler
and there is a script to make "byte-code":
http://bencoder.urdada.net/
I have used and it works.
--
Thodoris
ot;?
You may want to consider these functions:
|func_get_args
||func_get_arg|
|func_num_args|
to make the functions input more loose and have it accept multiple
formats as needed like one dimensional, two dimensional or simple
parameters the same time.
--
Thodoris
On Tue, 2009-02-17 at 18:54 +0200, Thodoris wrote:
Hi,
This is probably a bit stupid, but I've been having issues getting any
of the good FTP servers running on my Ubuntu 6.06 (LTS) box.
I've tried Pro-FTP, Pure-FTP, and briefly installed some others, but
the versions availa
u abstract each time
and what term you choose to use.
An example that comes in mind is about networks. You can say that the
http protocol is a framework of underlying tcp protocol although it is
comes as an abstraction.
--
Thodoris
memory_limit = 128M
and the last one I have just noticed (that is why it reports the leak):
report_memleaks = On
In case I set this to Off it just stops bugging me. But is there a
memory leak?
And if yes should I report this as a bug ?
--
Thodoris
tless" discussion as you like to call it.
Virgil
http://www.jampmark.com
I prefer calling C and C++ as Framework of Assembly language.
Hahaha that was a good one Shawn. I almost fall of the chair :-) .
--
Thodoris
Thodoris wrote:
Hi gang,
I am trying to run a simple PHP script using the cli and I get a
weird memory leak error. The script goes like this:
#! /usr/local/bin/php
The problem is that when I run the script I get this error:
Script: './bcom.php'
/usr/ports/lang/php5/work
Thodoris wrote:
When I make something wrong like syntax error; I get blank pages.
Because the PHP code is not running (because of the syntax error), and
thus not setting the error reporting as desired. You'll need to aither
use a .htaccess file (if you're running
perhaps load into the session to avoid overhead.
--
Thodoris
t where something is located and that's
the point of the whole conversation. If you hardcode the values then you
need to change them while renaming or moving files and directories
So what someone should do to accomplish such a behavior? Without being
vulnerable to injection attacks of course.
--
Thodoris
ain.c(2015) : Freeing
0x2871F2A8 (43 bytes), script=./bcom.php
=== Total 1 memory leaks detected ===
This is hosted on a FreeBSD 7 machine with:
PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli)
Anyone knows what is happening ??
I have to mention that the array is printed as expected.
--
Thodoris
--
P
h is:
/etc/php5/apache2/php.ini
As far as I can see from you phpinfo page.
So that you don't need to set it in every script during runtime as you
mentioned.
--
Thodoris
tion (mysql, ldap etc) if you compile the proper module.
Thanks.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ch more limited, simple, and somewhat
inconsistent."
That of course was PHP and you probably have a point.
Then surely what is described is just a way of abstracting parts of
the language to make it "easier" to code.
This was mentioned about a framework not PHP of cour
milar to
that of Perl, albeit much more limited, simple, and somewhat
inconsistent."
Then surely what is described is just a way of abstracting parts of
the language to make it "easier" to code.
2009/2/16 Thodoris :
I'd personally say that PHP was originally intended to esse
2009/2/16 Thodoris :
In addition to this there is an API for C that can be used to code web
applications and it is known as CGI (it is provided by many languages)
CGI is a protocol not an API and has no specific connection to C.
-Stuart
I stand corrected on this.
But what I
to mention that there is a difference between a framework and an API.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mon, Feb 16, 2009 at 07:39:29PM +0200, Thodoris wrote:
Here's a question related to my last post. When specifying a link in a
HTML file (like to the css or an image file), there are two ways of
doing it. One is to simply include the relative path to the file
(relative to the doc
ers won't need to do anything special if you encode the PHP
projects that you host (in case I am getting this right). But there are
no magical solutions to anything.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t are useless.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
t least one other MVC framework. What am I
doing wrong?
Paul
I assume that in order for this to work you will have to use mod_rewrite
for apache to work properly. Check the framework's installation
instructions to see if you configured mod_rewrite correctly for this to
work properly
syntax and style but
this is the only relation I can find between the two.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
perhaps there are solutions to this using search engines but you
can't know for sure.
This is the way it works.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
at you are right about using a specific language and you
should strongly insist on that. Someone needs to see how objects are
taking flesh and bones in real life and not just theoretically.
You could consider Java as well before taking your final decision.
--
Thodoris
--
PHP General Mailing
probably parse the xls using a reader and then write
the data in a pdf with a module (like fpdf or pdflib) but I will get
into complications I cannot resolve.
So is there another way to do such a transformation. Give me your light...
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To
2009/2/6 Thodoris :
2009/2/5 Thodoris :
I think that the OP mentioned the word fedora somewhere above...
Oh sorry, I'm so stupid... Anyways, if you want to send mail to large
providers you'll need to use a relay. I found a nice tutorial about
how to set it up with google ap
";
$var2 = $var1;
$var3 &= $var1;
$var1 = "test2";
echo var1; // "test2"
echo var2; // "test1"
echo var3; // "test2"
The manual does describe these as "combined operators" in the assignment
operators section. See the last example:
http://www.php.net/manual/en/language.operators.assignment.php
--
Thodoris
Thodoris napsal(a):
Y
In cgi i can use perl ,c etc
suppose i use perl
now how efficiency differs?
How cgi written in perl and php is differ in working in context of web
service?
other difference?.
but their differ.
On Thu, Feb 5, 2009 at 6:45 PM, Jay Blanchard
wrote:
[snip]
can
2009/2/5 Thodoris :
I think that the OP mentioned the word fedora somewhere above...
Oh sorry, I'm so stupid... Anyways, if you want to send mail to large
providers you'll need to use a relay. I found a nice tutorial about
how to set it up with google apps.
It was for Ubun
orary, tables and transactions but
you will find it useful because I think it is relevant with your case.
http://dev.mysql.com/tech-resources/articles/mysql-db-design-ch5.pdf
Why don't you give it a try.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
it is a good one. I don't remember if fedora is truly doing that but if
it does that is cool I will check with my laptop (the only piece of
hardware that has fedora installed).
--
Thodoris
b5-workstation-1.6.1-25.el5_2.2
pam_krb5-2.2.14-1.el5_2.1
krb5-devel-1.6.1-25.el5_2.2
And then I run into this:
http://pecl.php.net/bugs/bug.php?id=15196&thanks=3
I have already reported the bug and lets hope it will get fixed.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to do.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
development to make
some things clear before start asking questions in the lsit. This will
improve your understanding and it help us to make suggestions.
--
Thodoris
ulting page or
something like that "Path to sendmail".
If this is set then everything will work like a charm.
--
Thodoris
t being developed any more.
So by the end of this year (I hope) we will start using a stable PHPv6.
IMHO you should consider changing your code (if this is possible) to a
more mainstream version.
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
r Email Address.";
}
else {
echo "Cannot send password to your e-mail address";
}
?>
There must be something that I am doing wrong. Otherwise I could have always
gotten the password in my mailbox. Please help.
Thanks in advance,
Chris
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
http://www.icdsoft.com/
--
Thodoris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ause of the flexibility provided by the ports system and the way that
PHP is divided into small parts that can be added or removed easily.
Not to mention that you are compiling PHP (as a port) and you can update
it or remove it like a package the same time.
Again this is my point of view that I wanted to share.
---
Thodoris
Shawn McKenzie wrote:
Thodoris wrote:
2009/2/3 Thodoris :
I was wondering if there is way to find out what is the time that
every
day ends? I am planning to add this to the first page on an
interface I am
developing.
Most days end at midnight, but there
Try:
echo date("H:i:s", mktime(23-date("H"), 59-date("i"), 59-date("s"));
This is I guess how much time we have to reach midnight. But the
question is how to calculate the time that sun stops showing its
refreshing light.
BTW try not to top po
1 - 100 of 214 matches
Mail list logo