Questions tagged as 'php'

1
answer

Return php values with javascript

In java I did a project that in several parts of the program called a function to go to the database to fetch a value and return, of type String nome = acessocliente.obtemnome(id); , where in the accesclient class I had a parameter called...
asked by 11.05.2016 / 11:12
1
answer

How to generate barcode as image and save on my server?

I'm creating a landing page where the user signs up and will be generated a bar code that is sent via email to the user on a discount coupon, barcode.inc.php to generate the barcode image, I need to save that image on my server to use when se...
asked by 12.05.2016 / 16:44
1
answer

Data loss in session

I'm doing a form with steps in Ajax. The idea is at every step to get the form data, play an array, and store the array in the session, so I can manipulate all the data in the last step: Ajax form1: $('.next').click(function(){ $.post(...
asked by 18.05.2016 / 18:18
2
answers

E-mail curriculum attachment in Codeigniter not working

Good afternoon, I am using this code to receive some data from alleged candidates who subscribe to the site. I would like the candidate to send the attached file. The views are ok .. and I think the problem is in my code for this controlle...
asked by 19.05.2016 / 15:39
1
answer

How to use the ParamConverter inside the controller or in service

The ParamConverter is a note I use constantly in Symfony to retrieve the data sent already in object, so the parse is made automatic, in my case, just add comment in the method of the respective controller and when receiving the parameter sy...
asked by 18.05.2016 / 21:08
0
answers

Datafiles do not load six blocks as in "ALL"

Entering a category does not load six blocks coming from the database as in the "ALL" only those that have already been loaded at all. I need you to load the same in ALL, each category load six blocks according to the blocks with the $ menu c...
asked by 23.03.2016 / 18:17
0
answers

Generate accents and ç for PDF with PDFlib + PHP

I made the following code to pass a sequence and generate my lines in pdf with PDFlib: função text_block ( $ p , $ text , $ xcrd , $ ycrd ) { $ FONT_SIZE = 24 ; // tamanho da fonte, usada para linhas de espaço no eixo y $ tmplines...
asked by 22.03.2016 / 20:38
0
answers

Keep active session for multiple requests using CURL is very slow

I made a script to automatically post ads to a classified site for a particular user. I store the ads ID locally in the database, then with the CURL, I login, and then loop through each ad ID to activate it on the corresponding date. But this...
asked by 01.07.2016 / 18:24
1
answer

Excluding symbol from the last position of a string, optimally with PHP [closed]

I would like to delete the last character of a string if it is a symbol. I know I could do it in a complex way like the following function: $string = "minha_string_com_simbolo_no_final_"; function excluir($string){ $simbolos = ["'","\"",...
asked by 06.07.2016 / 22:47
1
answer

Paging in SQL

I'm having a question here, not for code, but for what logic. I have a table with 6000 records in MySQL. I have a PHP script that returns 50 records per page, using the SQL "LIMIT" function. Now I need to fetch a single record from this ta...
asked by 04.04.2016 / 13:50