weetat wrote:
Hi all ,
I have data which have value in bytes for example ,
$bytes = 33554432;
How to convert this to MB ?
THanks
- weetat (PHP Novice)
1GB = 1024 * 1MB = 1024 * (1024 * 1KB) = 1024 * (1024 * (1024 * 1byte))
--
PHP General Mailing List
Hello,
I have to join more pdf files into single one (that will be available
for download) and i must to that from PHP. I have read the documentation
from php.net/pdf adn php.net/clibpdf but no ring.
How can I do that?
Thanks in advance, cheers.
--
PHP General Mailing List
Hello,
It seems that virtual_root_level is not working with PHP version 5.1.6!
I tried to aply the patch designed for 4.3.4 but there was no changes..
Is there any patch for that designed for PHP version 5.1.x? How can I
make virtual_root_level working on my server?
Thanks in advance,
cajbecu
touch /var/mysql/mysql.sock
chmod 777 /var/mysql/mysql.sock
On 11/14/06, James Tu [EMAIL PROTECTED] wrote:
I'm running a php script from the command line (I'm on OS X) and I'm
getting ...
Warning: mysql_connect(): Can't connect to local MySQL server through
socket '/var/mysql/mysql.sock' (2)
well, there are more reasons you should use cURL ..
- control and flexibility of the output,
- post variables,
- can interact with secure servers (ssl - supports certificates)
- can use with proxys (http/socks)
- set timeouts
- easily modify headers :)
- use different ip`s of the server when it`s
i suggest you:
database.conf (the file on another server)
host=localhost
user=test
pass=test
anothervar=anothervalue
on your script:
$temp = file(http://../database.conf);
foreach($temp as $val) {
$temp2 = explode(=,$val);
$$temp2[0] = $temp[1];
}
after that, you`ll have:
$host =
Hello. I need some help. I set my php to run script.php before any php
script. I want to drop uploaded files, so I did
?php
if ($_SERVER[SERVER_NAME]==some.host.on.my.server) {
if ((isset($_SERVER['REQUEST_METHOD']))
($_SERVER['REQUEST_METHOD']==POST)) {
unset($_FILES);
?php
print number_format('0.5',2,'.','');
// 0.50
?
Merlin wrote:
Hi there,
I am searching for a command on how to format 0.5 to 0.50
thanx for any help,
merlin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
thanks for your posting, but I have:
table1
id
name
value
table2
id
x
y
i want to
id name value x y
but there is no id from table 2 that is in table2.id and i want the
resource to bu something like this:
id(from table 1) name value (empty) (empty)
Jay Blanchard wrote:
[snip]
$sql =
]
pay attention to: - *, t1.id -
cheers,
cajbecu
Jay Blanchard wrote:
[snip]
$sql = SELECT * FROM `table1` LEFT JOIN `table2` USING `id` WHERE ...
GROUP BY `table1`.`id`;
mysql_query($sql);
the problem is, that, when in table2 is not matching data using that id,
i lose
In your script, $js will be false false!
Chrome wrote:
How about
?php $js = true; ?
noscript
?php $js = false; ?
/noscript
?php
if ($js) {
// whizzy Ajax code (or file include)
} else {
// generic warning (or include non-JS base file)
}
?
I know that
Hello,
Check your php.ini configuration, there is an option to activate this
option.
[EMAIL PROTECTED] wrote:
Dear List,
The shorthand form ?=$printthis? worked fine for me in PHP4, but I
cannot make it work in PHP5. (?php print($printthis); ? works ok,
however).
Could anybody please tell
Hello,
Try generating your own session id and the problem will be solved ;)
cheers,
João Cândido de Souza Neto wrote:
Hi everyone.
I hope someone here can help me.
When i start a session in a php page, this session receives an unique id.
If you think about this, if i call a
Hello,
Search for file: libssleay32.dll and copy it in windows\system32 folder.
The problem will be solved.
Laszlo Nagy wrote:
Hello Richard,
I hope you remember my question.
Richard Lynch wote:
On Tue, April 11, 2006 11:45 am, Laszlo Nagy wrote:
I have a problem with a Win2003
$300 / hr
8 hr minimum per day
available 0800 - 0900EST
it`s a joke, right?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Is there any posibility to extract all text from a PDF file? (I have
read all the documentation about PHP PDF-Lib but no answer...)
Thanks in advance,
cajbecu
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$var = file (http://www.some.server.net:someport;);
then $var=explode ... bla bla..
that never crash.
cheers,
cajbecu
On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote:
On 5/14/06, Fourat Zouari [EMAIL PROTECTED] wrote:
ok
this is returning the retrived data from open sockets :
http
yup, psacln is the group of the user ancientstones who`s owner of the files.
tedd wrote:
Hi Gang:
When I list one of my directories, via:
echo(pre);
system(ls -l);
echo(/pre);
I get:
-rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif
-rw-r--r-- 1
this shoul work:
while ($count count($salespersons)) {
foreach ($salespersons[$count] AS $key = $value) {
echo htmlentities($key).' - '.$value;
$count++;
}
}
On 5/23/06, Jonas Rosling [EMAIL PROTECTED] wrote:
I got the code as follows
Merlin wrote:
Hi there,
I am somehow lost when it comes to regex. I am trying to remove ! and ?
characters from a string. Could somebody please help me to get a working
regex running for that?
I tried: $str = preg_replace('/\!\?\./', ' ', $str);
Thank you for any help,
Merlin
Hello,
Try ... ORDER BY `movie`.`movie_type_id`;
Mark Sargent wrote:
Hi All,
I get this,
Column 'movie_type_id' in order clause is ambiguous
for this code,
$query = SELECT movie.movie_name, movietypes.movie_type_label FROM
movie, movietypes WHERE movie.movie_type_id =
Hello,
for ($i=0; $i 10; $i++) {
$output = ccc2;
print pre;
echo $output;
print /pre;
ob_flush();
flush();
sleep(1);
}
I want to show on the browser, ccc2 (example) every 1 second, but it
shows all the text when the for stops... any
option value=Niagara FallsNiagara Falls/option
replace with
option value=Niagara FallsNiagara Falls/option (note the quotes)
because you will post only Niagara instead Niagara Falls
cheers,
On 5/31/06, Beauford [EMAIL PROTECTED] wrote:
Thanks - Done that though. It shows the way it should
http://www.clickatell.com/brochure/products/developer_solutions.php
Ryan A wrote:
Hey,
Right now I am using PSWIN to send SMS messages from
my php scripts, can anybody recommend a (reliable)
company that i can use instead?
We fill up on 25euros everytime on pswin, so i am
not looking
function stransform($string) {
for ($i=0;$ilength($string);$i++) {
$data .= #.ord(substr($string,$i,1)).;;
}
return $data;
}
Juanjo Pascual wrote:
Do you know any way to convert any string to ascii characters??
I mean:
*abcdefgh*
to
That`s true, my mistake.. (length is in pascal)
cheers,
Juanjo Pascual wrote:
Ok. Thanks.
You only have to change the function *length() *by the function *strlen()*
cajbecu escribió:
function stransform($string) {
for ($i=0;$ilength($string);$i++) {
$data .= #.ord(substr
Please give us output of the error that mysql returns.
cheers,
BBC wrote:
hi all...
I have the problem about this syntax:
$db-query(INSERT INTO `products`
(`code`,`size`,`description`,`material`,`ads`,`price`,`new`,`categorynr`)
VALUES
('$code',
'$size',
If the content of that variable is secret please don`t use GET or POST
method to send it in CLEAR. beacuse somebody who know a little bit PHP
or can break your code. You can hide that by hashing it, or crypt it
with password. or something... using POST method.. of course.
kristianto adi
button on the browser (Internet Explorer) it displays me:
page expired. (There are some momments when i must click twice to go
back, and i don`t know why in firefox work perfect.)
Did you had similar problems in past?
Thanks in advance,
cajbecu
--
PHP General Mailing List (http://www.php.net
Hello Aras!
my /etc/resolv.conf is ok - a host google.com works and i can reach
google.com with lynx.
There are no firewall or dns issues on the server.
try: var_dump(file('http://ip_google/'));
replace ip_google with google`s main ip.
cajb.
--
PHP General Mailing List
Ok, I could store actual security code in a hidden text field of the form,
but then it wold be visible to spam bots, isn't it?
Or maybe there's another way to do this?
it`s not very good ideea to keep the security code in a hidden text
field. keep it in a session var.
cajb.
--
PHP
[EMAIL PROTECTED] wrote:
Dear All,
Which version of phpmyadmin is suitable for php 5.1.6 ?
Edward.
the latest :)
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[EMAIL PROTECTED] wrote:
Dear All,
Which version of phpMyadmin are you using with FC6 ?
Edward.
Always the latest.
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
try:
mysql_query (INSERT INTO tmphitsmag (magazine) VALUES
('{$magazine_path[2]}'));
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ross wrote:
Can I put post values directly into insert statements?
$query = INSERT INTO categories (category_name) VALUES
('$_POST['cat_name']);
Yes you can, but it is not secure to do that!
use (insecure):
$query = INSERT INTO categories (category_name) VALUES
are you sure $_POST['Submit'] is set? i mean, do you have an input named
Submit that is set in your form?
Rahul Sitaram Johari wrote:
Ave,
Does anyone know what I¹m doing wrong?
?php
//Add Record Function
if($_POST['Submit']) {
$db = mysql_connect(localhost,usr,pwd);
Angelo Zanetti wrote:
$result = mysql_query($sql) or die(Fatal Error :.mysql_error());
where do you define $sql?
or that...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
if($_POST eregi(getenv(SERVER_NAME),getenv(HTTP_REFERER))) {
// This is a safe POST
} elseif(!eregi(getenv(SERVER_NAME),getenv(HTTP_REFERER))) {
die(Illegal access. Your IP has been logged.\n);
}
?
it is not safe. i can use curl (www.php.net/curl) and modify
And even then, some smart programmers are probably going to find a way
to read your image code :)
that, of course, if your app will be an interface to client`s bank
account, with online management. :)
cajb.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Mário Gamito wrote:
Hi,
I have this very straight forward code to send an e-mail:
$subject_users_subscription_confirmation = Subscription confirmation;
$message_users_subscription_confirmation = 'Please, click this link to
confirm your subscritpion:
clive wrote:
Me2resh Lists wrote:
the query is :
$SQL = SELECT DISTINCT(EMail) FROM mena_guests WHERE Voted = 'yes'
LIMIT $startingID,$items_numbers_list;
the only php I see it $SQL,$startingID,$items_numbers_list. This is a
mysql question.
so, you don`t know the answer, right?
Hello,
I was wondering if some of you use any framework in your application.
If you do that, can you post the name of the framework and
advantages/disadvantages of it?
2 weeks ago I started to learn symfony framework
(www.symfony-project.com) wich apears to be a good and reliable
framework.
42 matches
Mail list logo