Jump to content

neugi

Members
  • Posts

    63
  • Joined

  • Last visited

    Never

Everything posted by neugi

  1. got the error, fucking notepad on windows is making a space in front of the code, but it don't shows it in the editor, changing now to notepadd++ thx
  2. Hi, could it be that apache is adding a newline? i'm shure that there is no newline char in front of my code and there is also no other include in the thest files. in the test file there are only 3 lines (see top, nothing else) best
  3. Hi, i've got a strange problem: i get this errors: Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at e:\Internet\pmtopagents\test.php:1) in e:\Internet\pmtopagents\test.php on line 3 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at e:\Internet\pmtopagents\test.php:1) in e:\Internet\pmtopagents\test.php on line 3 but in my test.php is nothing else than: <?php session_start(); ?> there is no space in front of <?php where could be the error? best
  4. i've read the manual. but some sources on the internet do stuff with javascript,but as it seems that don't work in modern browsers (securety, file:///) best
  5. Hi, i got a costumer that wants to know the size of the file and if it is a image die dimension of it during the upload of the file. is there a way in php? as i know all this info is only avalible after the file has been uploaded, or? best
  6. Hi, i've got a costumer that uploads images to his homepage. the problem ist that he uploads images in print quality and it seems that gd can't handle the image. is there a way to eg resize such images with php? best
  7. Hi, i'm working on a method to merge 2 pngs with alpha chanel. the problem is if i merge the 2 images (attached) the result ist noch okay. one solution makes the eg 50% alpha to 0%alpha and the other method make the parts that are 50% to 100% and i cant see the part of the image below maybe somebody knows a solution. thx
  8. hi, if i replace @imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight); widht @imagecopymerge($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight,100); the transparent part disapear but the letters look bad. is there a way to render the letters on the image so that the brackground is beeing shown behind the transparent parts of the letters? best
  9. Hi, i've got 2 png 8 with alpha. i want to merge this 2 images. everything seems to be okay. i got the background with some parts transparent and the numbers i want to render on it. but if i take a close look i can see that at the boundary of the numbers there is no background, even no background form the image below. how can i fix this. attached is the image that has been renderd. my code is : $stoerer = imagecreatefrompng('image/neu/1er.png'); $letter = imagecreatefrompng($norm[$this->vorWert[$i]]); @imagecopy($stoerer, $letter, $left,$top,0,0,$letterWidth,$letterHeight); maybe somebody can give me a hint how to get this working. best
  10. hi, got the the problem solved. i'll use the get_headers() function so the the redirect link best
  11. okay here is an eg from a nother page that explains such problem: http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/constructing_youtube_1.php on this page they are entering a url from youtube to get the real url of the flv file. they create the new url with the action script an i would need something like this in php. i hope this will help best
  12. my problem is, i got an url with an id, an this url will be redirected to some new url with some unkonwn id. is there a way to get the new url with the new id? i need a script where i can enter a url and the script returns me the new url where this page will be redirected best
  13. hi, is there a way go get the new url of a redirection from an external server? for eg.: http://www.test.com/red=addItem will be redirected to this url: http://www.test.com/additem.php is there a way go get this url with php? thx
  14. Hi, i think the problem is in your clean function: try to use is this: function clean($input, $maxlength){ $input = substr($input, 0, $maxlength); $input = addslashes($input); return ($input); } best
  15. Hi, in the mysql database there are many sleep processes for the same user. Problem is that it is slowing the database. is there a way to fix this? currently if set the timeout to 600 sec, but is this the only way to close the processes? version of mysql is 4.0.24 on Debian best
  16. right now there is only one variable that has to be shown, so i can do this with something like this str_replace. the problem would be only if somebody wants so show an unknown number of variables in the text from the db best
  17. hi, thx, so there is no other way? best
  18. Hi, is there a way to parse php code from a mysql result. e.g. i've a text in the mysql db: "This is a sample text in file: ".$_SERVER[php_SELF]." < br >"; thanks
  19. but how transfer the session if no cookies are allowed? best
  20. Hi, i've a little problem i've written a little script that should make my urls "search friendly". the only problem now it how i can handle the session without cookies? old url index.php?page=1&newsID=2&PHPSID=2384234... new url index/1/2/??? how can i handle the session_id in such urls i've tried to attache them in de last part but after every call of a page a new SID is calculated. maybes somebody has an idea thx
  21. Hi, i got a db where a entry is a serialized array: the entry looks like this: a:1:{s:6:"banner";s:9:"r7_c3.jpg";} i try now to fetch the data and  unserialize it, but i only get the string array back from the data base. here is my code: $querySonstiges = mysql_query("SELECT sonstiges FROM pages WHERE id = 5",$link); $data =  mysql_fetch_assoc($querySonstiges); if i echo the $data it returns me "Array" but not the string to unserialize. What i'm doing wrong? thx for help
  22. yes, all files are on the server best
  23. check if the amount of the y & n are correct, seems there is one more or less in your query. best
  24. Hi, i found out that there are 2 ways: in the mysql Tool type: SORUCE file.sql or mysql -u USER -p PASWWORD DATABASE < file.sql my problem is now that after a few secounds i get this error: [code]ERROR 2006 (HY000): MySQL server has gone away No connection. Trying to reconnect... Connection id:    155 Current database: cd1_gmunden[/code] only the structure of the table is created, but no data in it. sql file is generated with phpmyadmin best
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.