Re: [PHP] remote fopen not working, despite allow_url_fopen = on

2007-02-15 Thread cajbecu
> > 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 (htt

Re: [PHP] anti-spam GD security image code validation

2007-02-21 Thread cajbecu
> > 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

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread cajbecu
[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

Re: [PHP] phpmyadmin for FC6

2007-02-23 Thread cajbecu
[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

Re: [PHP] db query not working as expected

2007-03-07 Thread cajbecu
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

Re: [PHP] syntax question

2007-03-26 Thread cajbecu
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 ('{$_POST['cat_na

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
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? > > //Add Record Function > if($_POST['Submit']) { > $db = mysql_connect("localhost","usr","p

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread cajbecu
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

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread cajbecu
> > 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

Re: [PHP] Form Handler Script Security Discussion

2007-03-29 Thread cajbecu
> > 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: http:

Re: [PHP] Problems with mail

2007-04-02 Thread cajbecu
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: > http://www.telbit.pt/subscrib

Re: [PHP] php-mysql problem

2007-04-03 Thread cajbecu
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,

[PHP] Do you use any framework in your applications?

2007-05-12 Thread cajbecu
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. cajb

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread cajbecu
function stransform($string) { for ($i=0;$i Do you know any way to convert any string to ascii characters?? > > I mean: > > > *"abcdefgh"* > > to > > *"abcdefgh"* > > > Juanjo. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] STRING TO ASCII CHARACTERS

2006-06-23 Thread cajbecu
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;$i> $dat

Re: [PHP] uploading...

2006-06-26 Thread cajbecu
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', > '$

Re: [PHP] page redirecting

2006-06-28 Thread cajbecu
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 widiatmoko

[PHP] "page expired" - problem

2006-07-06 Thread cajbecu
on, and when I click back 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 Genera

Re: [PHP] convert byte to MB

2006-07-25 Thread cajbecu
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 (http://

[PHP] PDF: Join more pdf files into one

2006-09-04 Thread cajbecu
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 (http://www.php.net/)

[PHP] PHP 5.1.6 - virtual_root_level

2006-09-05 Thread cajbecu
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

Re: [PHP] php cli and mysql

2006-11-14 Thread 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)

Re: [PHP] cURL uses

2006-11-15 Thread cajbecu
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

Re: [PHP] Remote MySQL connection via PHP file

2006-12-01 Thread cajbecu
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 = 'loc

Re: [PHP] how to convert 0.5 to 0.50

2006-04-13 Thread cajbecu
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

Re: [PHP] php - mysql problem

2006-04-14 Thread cajbecu
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 = "SE

Re: [PHP] php - mysql problem

2006-04-14 Thread cajbecu
luated *after* the LEFT JOIN. [/cut] 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); > &

Re: [PHP] 2 questions: Search in array and detect JS

2006-04-15 Thread cajbecu
In your script, $js will be false false! Chrome wrote: > How about > > > > > > > > if ($js) { > // whizzy Ajax code (or file include) > } else { > // generic warning (or include non-JS base file) > } > ?> > > I know that would work but does it give the desired effec

Re: [PHP] Can't make shorthand work in PHP5

2006-04-16 Thread cajbecu
Hello, Check your php.ini configuration, there is an option to activate this option. [EMAIL PROTECTED] wrote: > Dear List, > The shorthand form worked fine for me in PHP4, but I > cannot make it work in PHP5. ( works ok, > however). > Could anybody please tell me if this form is still available

Re: [PHP] session

2006-04-20 Thread cajbecu
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 sess

Re: [PHP] MS SQL extension not loading

2006-04-27 Thread cajbecu
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

Re: [PHP] we are looking for experienced php programmers full time freelance...

2006-04-28 Thread cajbecu
>> > > $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

[PHP] extract text from pdf

2006-05-11 Thread cajbecu
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

Re: [PHP] Is it a bug ?

2006-05-14 Thread cajbecu
$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

Re: [PHP] What's this in my dir list?

2006-05-18 Thread cajbecu
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(""); > system("ls -l"); > echo(""); > > I get: > > -rw-r--r-- 1 ancientstones psacln 6980 Apr 28 18:46 ancientstones.gif > -rw-r--r-- 1 an

Re: [PHP] Getting an advanced foreach to work

2006-05-23 Thread cajbecu
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

Re: [PHP] problems with regex

2006-05-27 Thread cajbecu
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, > > Mer

Re: [PHP] Column 'movie_type_id' in order clause is ambiguous

2006-05-28 Thread cajbecu
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 = mov

[PHP] ob_flush() problems

2006-05-31 Thread cajbecu
Hello, for ($i=0; $i < 10; $i++) { $output = "ccc2"; print ""; echo $output; print ""; 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 idee

Re: [PHP] Session variables and words with spaces

2006-05-31 Thread cajbecu
Niagara Falls replace with Niagara Falls (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 be. Example: Niagara Falls -Original Message- From

Re: [PHP] SMS with php recommendation (a bit 0T i guess)

2006-06-18 Thread cajbecu
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 l

[PHP] droping upload files

2005-08-24 Thread cajbecu
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 if ((isset($_SERVER['REQUEST_METHOD'])) && ($_SERVER['REQUEST_METHOD']=="POST")) { unset($_FILES); unset($HTTP_POST_FILES); } } else { } ?>